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

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
TechDroid
Posts: 3
Joined: Tue Sep 15, 2020 7:07 pm

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

Post 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.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

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

Post by knight-of-ni »

Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
TechDroid
Posts: 3
Joined: Tue Sep 15, 2020 7:07 pm

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

Post 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.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

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

Post by knight-of-ni »

Internal error message sounds like http 500, so check your web server logs for clues.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
TechDroid
Posts: 3
Joined: Tue Sep 15, 2020 7:07 pm

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

Post 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"
Post Reply