Hello so ive deployed Zabbix using Docker Compose and its running fine, but i cant access the API using:
curl --request POST \
--url 'http://example.com/zabbix/api_jsonrpc.php' \
--header 'Content-Type: application/json-rpc' \
--data '{"jsonrpc":"2.0","method":"apiinfo.version","pa ra ms":{},"id":1}'
Obviously I have replaced example.com with my ip where I also access the webfront from.
Looking in my Docker container I can find the Physical file api_jsonrpc.php.
When I try to open the URL http://example.com/zabbix/api_jsonrpc.php it just says file not found which is odd. The path of the file is /usr/share/zabbix/.
I have tried the other solutions suggesting removing the /zabbix/ which also doesnt work
Im using Postgresql with Nginx(the ubuntu version) on Docker Desktop on Windows 10
curl --request POST \
--url 'http://example.com/zabbix/api_jsonrpc.php' \
--header 'Content-Type: application/json-rpc' \
--data '{"jsonrpc":"2.0","method":"apiinfo.version","pa ra ms":{},"id":1}'
Obviously I have replaced example.com with my ip where I also access the webfront from.
Looking in my Docker container I can find the Physical file api_jsonrpc.php.
When I try to open the URL http://example.com/zabbix/api_jsonrpc.php it just says file not found which is odd. The path of the file is /usr/share/zabbix/.
I have tried the other solutions suggesting removing the /zabbix/ which also doesnt work
Im using Postgresql with Nginx(the ubuntu version) on Docker Desktop on Windows 10
Comment