Ad Widget

Collapse

Zabbix API end point "/zabbix/api_jsonrpc.php" gives "File not found"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tozden
    Junior Member
    • May 2023
    • 2

    #1

    Zabbix API end point "/zabbix/api_jsonrpc.php" gives "File not found"

    I have recently installed Zabbix server as a ready VMware appliance which I downloaded from Zabbix.com and successfully integrated a host with an agent installed on it.
    My problem is with the API. Following the documentation at: https://www.zabbix.com/documentation...ual/api?hl=API
    when I try to access API, I receive only "File not found" response from my server:
    curl --request POST \
    --url 'http://192.168.1.223/zabbix/api_jsonrpc.php' \
    --header 'Content-Type: application/json-rpc' \
    --data '{"jsonrpc":"2.0","method":"apiinfo.version","pa ra ms":{},"id":1}'

    File not found.​

    Do you have any idea what might be problem?
    Thanks in advance for your support.
  • tozden
    Junior Member
    • May 2023
    • 2

    #2
    I have solved the problem. It seems, in the my Zabbix server (latest VMware appliance on the Zabbix.com) the RPC endpoint address does not include /zabbix/ in the path. So for my case, http://192.168.1.223/api_jsonrpc.php works fine

    Comment

    Working...