Hi,
I have trouble accessing Zabbix API.
Zabbix is set up on a virtual machine (ubuntu) in Azure.
I can access zabbix outside the rdp, just going to the ip adress of my virtual machine in azure: <adress>/zabbix.php
However I have problem sending requests to the API. When trying to access <address>/zabbix/api_jsonrpc.php - getting error 404
<address>/api_jsonrpc.php - getting error 412
In etc/nginx/sites-available/default
I have following setting:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /usr/share/zabbix;
index index.php index.html index.htm index.nginx-debian.html;
server_name <ipadress of azure virtual>;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Can someone please help me sort this issue out?
Thank you
Comment