/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 » Tue Sep 15, 2020 7:26 pm

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: 2306
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 » Tue Sep 15, 2020 9:55 pm

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 » Wed Sep 16, 2020 8:21 am

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: 2306
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 » Wed Sep 16, 2020 12:30 pm

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 » Thu Sep 17, 2020 9:57 am

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

Who is online

Users browsing this forum: No registered users and 4 guests