Page 1 of 1

/zm/api/host/monitors.json doesn't return monitors

Posted: Tue Sep 15, 2020 7:26 pm
by TechDroid
I'm trying to get zmNinja to integrate into ZM but /zm/api/host/monitors.json fails (when executing it from Chrome). The error I receive is:
{"success":false,"data":{"name":"Not Found","message":"Not Found","url":"\/zm\/api\/host\/monitors.json","exception":{"class":"MissingActionException","code":404,"message":"Action HostController::monitors() could not be found."}}}

/zm/api/host/getVersion.json works fine by returning:
{"version":"1.34.20","apiversion":"2.0"}

Any guidance will be appreciated.

Re: /zm/api/host/monitors.json doesn't return monitors

Posted: Tue Sep 15, 2020 9:55 pm
by knight-of-ni

Re: /zm/api/host/monitors.json doesn't return monitors

Posted: Wed Sep 16, 2020 8:21 am
by TechDroid
Thx for the prompt response and correcting the url I was testing. I unfortunately still have an issue though. This is the error i'm receiving.
{"name":"An Internal Error Has Occurred.","message":"An Internal Error Has Occurred.","url":"\/zm\/api\/monitors.json"}

I'm a noob to ZM so rather lost to which logs would be relevant to include to get help with-out wasting people's time.

Re: /zm/api/host/monitors.json doesn't return monitors

Posted: Wed Sep 16, 2020 12:30 pm
by knight-of-ni
Internal error message sounds like http 500, so check your web server logs for clues.

Re: /zm/api/host/monitors.json doesn't return monitors

Posted: Thu Sep 17, 2020 9:57 am
by TechDroid
knight-of-ni, you are correct. I found the following in the web server logs.

[17/Sep/2020:11:37:31 +0200] "GET /zm/api/monitors.json HTTP/1.1" 500 313 "-" "curl/7.58.0"