API was working from zmNinja, but has stopped

Forum for questions and support relating to the 1.30.x releases only.
Locked
akg1508
Posts: 26
Joined: Sun Aug 02, 2015 9:06 am

API was working from zmNinja, but has stopped

Post by akg1508 »

Hi Everyone,

I'm trying to get zmNinja 1.2.504 working again with my ZoneMinder
1.30.0 installation. (It was working up to a while ago, and has
inexplicably stopped working.) Operating system patches have been
applied regularly, but no ZM updates since then.
  • The normal ZM web interface works without any problems - I can view individual cameras, montage, etc.
  • zmNinja says it has authenticated correctly, but the montage view just displays the no-video-stream image.
  • The API tests listed at https://github.com/pliablepixels/zmNinj ... work-on-ZM pass - see below (I've hand edited out credentials and IP addresses)
  • All testing is done on the local 192.168.x.x network (it used to work from the internet as well, but one thing at a time).
  • The zm user has view stream, edit events, edit control, edit monitors, edit groups and edit system privileges set.
I've tried to include all the information I think might be relevant
in replies below (there's a lot :-)).

The one thing that seems unusual is that the apache access logs show
numerous 401 failures, but the same URL is subsequently tried and
succeeds (if I'm reading the logs correctly).

I'm out of ideas on what to try, and will very much appreciate any help.

Thanks!
Alistair


ZoneMinder configuration extract:

OPT_USE_AUTH not checked
AUTH_TYPE built in
AUTH_RELAY hashed
AUTH_HASH_SECRET not set
AUTH_HASH_IPS checked
AUTH_HASH_LOGINS not checked
OPT_USE_API checked
PATH_ZMS /zm/cgi-bin/nph-zms


zmNinja configuration:


low bandwidth mode on
auto switch bandwidth on
use ZM authentication not selected
ZM portal url: https://***:***@example.com/zm
path to cgi-bin: https://***:***@example.com/zm/cgi-bin
ZM api url: https://***:***@example.com/zm/api

Typing the first URL (with username / password) in to a browser brings
up the normal web interface.


The email log option in zmNinja isn't working for me, a partial extract
of the log (hand copied):

Code: Select all

Disabling strict SSL checking
All init over, going to portal login
Entering Portal Main
Inside Portal login Enter handler
User credentials are provided
...
auth-success emit: Successful
...
PortalLogin: auth success
getAPIversion called
...
Monitor load was successful, loaded 6 monitors
...
Monitor 1 will use fid for direct image access
...
DataModel: Setting MID:1 to show
...
DataModel: Getting auth from https://user:password@domain.name/zm/index...
DataModel: Did not find a stream auth key, looking for user=
Data Model: Did not find any stream mode of auth
Stream authentication construction:
found a packery layout
...
~~loaded image is loaded for file:///android_asset/www/img/novideo.png
...
akg1508
Posts: 26
Joined: Sun Aug 02, 2015 9:06 am

Re: API was working from zmNinja, but has stopped

Post by akg1508 »

The ZoneMinder logs don't show any errors (the logon was at 11:23):

Code: Select all

2017-10-20 11:22:22.075821 zmc_m1[676].INF-zm_monitor.cpp/3116 [Kam61: 5000 - Capturing at 5.00 fps]
2017-10-20 11:22:22.180138 zmc_m2[690].INF-zm_monitor.cpp/3116 [Kam62: 5000 - Capturing at 5.00 fps]
2017-10-20 11:22:23.406442 zmc_m3[705].INF-zm_monitor.cpp/3116 [Kam63: 5000 - Capturing at 5.00 fps]
2017-10-20 11:22:24.215048 zmc_m4[725].INF-zm_monitor.cpp/3116 [Kam64: 5000 - Capturing at 5.00 fps]
2017-10-20 11:22:26.090148 zmc_m6[765].INF-zm_monitor.cpp/3116 [Kam66: 7000 - Capturing at 6.99 fps]
2017-10-20 11:22:27.341871 zmc_m5[745].INF-zm_monitor.cpp/3116 [fdmon: 5000 - Capturing at 4.98 fps]
2017-10-20 11:22:27.751916 zma_m5[755].INF-zm_monitor.cpp/1287 [fdmon: 5000 - Analysing at 4.98 fps]
2017-10-20 11:22:35.936698 zma_m6[775].INF-zm_monitor.cpp/1287 [Kam66: 7000 - Analysing at 7.04 fps]
2017-10-20 11:23:02.535014 zma_m3[716].INF-zm_monitor.cpp/1287 [Kam63: 5000 - Analysing at 4.93 fps]
2017-10-20 11:23:14.693007 zma_m4[735].INF-zm_monitor.cpp/1287 [Kam64: 5000 - Analysing at 4.78 fps]
2017-10-20 11:23:49.407014 zma_m2[697].INF-zm_monitor.cpp/1287 [Kam62: 5000 - Analysing at 4.63 fps]
2017-10-20 11:23:54.510214 zma_m1[683].INF-zm_monitor.cpp/1287 [Kam61: 5000 - Analysing at 4.61 fps]
2017-10-20 11:24:48.742460 zmc_m6[765].INF-zm_monitor.cpp/3116 [Kam66: 8000 - Capturing at 7.04 fps]
2017-10-20 11:24:58.734842 zma_m6[775].INF-zm_monitor.cpp/1287 [Kam66: 8000 - Analysing at 6.99 fps]
2017-10-20 11:25:41.886851 zmc_m1[676].INF-zm_monitor.cpp/3116 [Kam61: 6000 - Capturing at 5.03 fps]
2017-10-20 11:25:42.023959 zmc_m2[690].INF-zm_monitor.cpp/3116 [Kam62: 6000 - Capturing at 5.00 fps]
2017-10-20 11:25:43.273997 zmc_m3[705].INF-zm_monitor.cpp/3116 [Kam63: 6000 - Capturing at 5.00 fps]
2017-10-20 11:25:44.029319 zmc_m4[725].INF-zm_monitor.cpp/3116 [Kam64: 6000 - Capturing at 5.00 fps]
2017-10-20 11:25:48.219127 zmc_m5[745].INF-zm_monitor.cpp/3116 [fdmon: 6000 - Capturing at 4.98 fps]
2017-10-20 11:25:48.652681 zma_m5[755].INF-zm_monitor.cpp/1287 [fdmon: 6000 - Analysing at 4.98 fps]
akg1508
Posts: 26
Joined: Sun Aug 02, 2015 9:06 am

Re: API was working from zmNinja, but has stopped

Post by akg1508 »

The apache error log doesn't contain any errors near that time. The
access log shows:

Code: Select all

192.168.0.1 - - [20/Oct/2017:11:23:48 +0200] "GET /zm/api/host/getVersion.json HTTP/1.1" 401 3962 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:48 +0200] "GET /zm/api/host/getVersion.json HTTP/1.1" 200 357 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:48 +0200] "GET /zm/api/configs/viewByName/ZM_EVENT_IMAGE_DIGITS.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:48 +0200] "GET /zm/api/host/getTimeZone.json HTTP/1.1" 401 929 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:48 +0200] "GET /zm/api/configs/viewByName/ZM_EVENT_IMAGE_DIGITS.json HTTP/1.1" 200 350 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:48 +0200] "GET /zm/api/monitors.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:48 +0200] "GET /zm/api/host/getTimeZone.json HTTP/1.1" 404 4008 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:48 +0200] "GET /zm/api/monitors.json HTTP/1.1" 200 16277 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:48 +0200] "GET /zm/api/servers.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:48 +0200] "GET /zm/api/servers.json HTTP/1.1" 200 331 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:49 +0200] "GET /zm/index.php?view=watch&mid=1&connkey=334214 HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:49 +0200] "GET /zm/index.php?view=watch&mid=1&connkey=334214 HTTP/1.1" 200 2653 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 929 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 929 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 929 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:54 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:23:59 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:04 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:09 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:14 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:19 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:22 +0200] "GET /zm/index.php HTTP/1.1" 200 3571 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:24 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:29 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:34 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:39 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:44 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:49 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - - [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 401 791 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:1/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:3/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:4/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:24:54 +0200] "GET /zm/api/monitors/alarm/id:2/command:status.json HTTP/1.1" 200 325 "-" "Mozilla/5.0 (Linux; Android 7.1.1; ONEPLUS A3003 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:25:24 +0200] "GET /zm/index.php HTTP/1.1" 200 3571 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:26:25 +0200] "GET /zm/index.php HTTP/1.1" 200 6604 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:27:27 +0200] "GET /zm/index.php HTTP/1.1" 200 3571 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:28:29 +0200] "GET /zm/index.php HTTP/1.1" 200 3570 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:29:31 +0200] "GET /zm/index.php HTTP/1.1" 200 3571 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:30:32 +0200] "GET /zm/index.php HTTP/1.1" 200 3569 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
192.168.0.1 - zm [20/Oct/2017:11:31:34 +0200] "GET /zm/index.php HTTP/1.1" 200 6603 "https://hmcz.duckdns.org/zm/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"

akg1508
Posts: 26
Joined: Sun Aug 02, 2015 9:06 am

Re: API was working from zmNinja, but has stopped

Post by akg1508 »

Code: Select all

$ curl https://user:password@hmcz.duckdns.org/zm/api/host/getVersion.json

{
    "version": "1.30.0",
    "apiversion": "1.0"
}




$ curl https://user:password@hmcz.duckdns.org/zm/api/monitors.json
{
    "monitors": [
        {
            "Monitor": {
                "Id": "1",
                "Name": "Kam61",
                "ServerId": "0",
                "Type": "Ffmpeg",
                "Function": "Mocord",
                "Enabled": "1",
                "LinkedMonitors": "",
                "Triggers": "",
                "Device": "\/dev\/video0",
                "Channel": "0",
                "Format": "255",
                "V4LMultiBuffer": false,
                "V4LCapturesPerFrame": "1",
                "Protocol": "",
                "Method": "rtpRtsp",
                "Host": "",
                "Port": "80",
                "SubPath": "",
                "Path": "rtsp:\/\/...\/videoMain",
                "Options": "",
                "User": "",
                "Pass": "",
                "Width": "1280",
                "Height": "720",
                "Colours": "4",
                "Palette": "0",
                "Orientation": "0",
                "Deinterlacing": "0",
                "RTSPDescribe": false,
                "Brightness": "-1",
                "Contrast": "-1",
                "Hue": "-1",
                "Colour": "-1",
                "EventPrefix": "Event-",
                "LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
                "LabelX": "0",
                "LabelY": "0",
                "LabelSize": "2",
                "ImageBufferCount": "50",
                "WarmupCount": "25",
                "PreEventCount": "25",
                "PostEventCount": "25",
                "StreamReplayBuffer": "1000",
                "AlarmFrameCount": "1",
                "SectionLength": "600",
                "FrameSkip": "0",
                "MotionFrameSkip": "0",
                "AnalysisFPS": "15.00",
                "AnalysisUpdateDelay": "0",
                "MaxFPS": "15.00",
                "AlarmMaxFPS": "15.00",
                "FPSReportInterval": "1000",
                "RefBlendPerc": "6",
                "AlarmRefBlendPerc": "6",
                "Controllable": "0",
                "ControlId": "0",
                "ControlDevice": null,
                "ControlAddress": null,
                "AutoStopTimeout": null,
                "TrackMotion": "0",
                "TrackDelay": "0",
                "ReturnLocation": "-1",
                "ReturnDelay": "0",
                "DefaultView": "Events",
                "DefaultRate": "100",
                "DefaultScale": "100",
                "SignalCheckColour": "#0000c0",
                "WebColour": "red",
                "Exif": false,
                "Sequence": "1"
            }
        },
        {
            "Monitor": {
                "Id": "2",
                "Name": "Kam62",
                "ServerId": "0",
                "Type": "Ffmpeg",
                "Function": "Mocord",
                "Enabled": "1",
                "LinkedMonitors": "",
                "Triggers": "",
                "Device": "\/dev\/video0",
                "Channel": "0",
                "Format": "255",
                "V4LMultiBuffer": false,
                "V4LCapturesPerFrame": "1",
                "Protocol": "",
                "Method": "rtpRtsp",
                "Host": "",
                "Port": "80",
                "SubPath": "",
                "Path": "rtsp:\/\/...\/videoMain",
                "Options": "",
                "User": "",
                "Pass": "",
                "Width": "1280",
                "Height": "720",
                "Colours": "4",
                "Palette": "0",
                "Orientation": "0",
                "Deinterlacing": "0",
                "RTSPDescribe": false,
                "Brightness": "-1",
                "Contrast": "-1",
                "Hue": "-1",
                "Colour": "-1",
                "EventPrefix": "Event-",
                "LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
                "LabelX": "0",
                "LabelY": "0",
                "LabelSize": "2",
                "ImageBufferCount": "50",
                "WarmupCount": "25",
                "PreEventCount": "25",
                "PostEventCount": "25",
                "StreamReplayBuffer": "1000",
                "AlarmFrameCount": "1",
                "SectionLength": "600",
                "FrameSkip": "0",
                "MotionFrameSkip": "0",
                "AnalysisFPS": "15.00",
                "AnalysisUpdateDelay": "0",
                "MaxFPS": "15.00",
                "AlarmMaxFPS": "15.00",
                "FPSReportInterval": "1000",
                "RefBlendPerc": "6",
                "AlarmRefBlendPerc": "6",
                "Controllable": "0",
                "ControlId": "0",
                "ControlDevice": null,
                "ControlAddress": null,
                "AutoStopTimeout": null,
                "TrackMotion": "0",
                "TrackDelay": "0",
                "ReturnLocation": "-1",
                "ReturnDelay": "0",
                "DefaultView": "Events",
                "DefaultRate": "100",
                "DefaultScale": "100",
                "SignalCheckColour": "#0000c0",
                "WebColour": "red",
                "Exif": false,
                "Sequence": "2"
            }
            "Monitor": {
                "Id": "3",
                "Name": "Kam63",
                "ServerId": "0",
                "Type": "Ffmpeg",
                "Function": "Mocord",
                "Enabled": "1",
                "LinkedMonitors": "",
                "Triggers": "",
                "Device": "\/dev\/video0",
                "Channel": "0",
                "Format": "255",
                "V4LMultiBuffer": false,
                "V4LCapturesPerFrame": "1",
                "Protocol": "",
                "Method": "rtpRtsp",
                "Host": "",
                "Port": "80",
                "SubPath": "",
                "Path": "rtsp:\/\/...\/videoMain",
                "Options": "",
                "User": "",
                "Pass": "",
                "Width": "1280",
                "Height": "720",
                "Colours": "4",
                "Palette": "0",
                "Orientation": "0",
                "Deinterlacing": "0",
                "RTSPDescribe": false,
                "Brightness": "-1",
                "Contrast": "-1",
                "Hue": "-1",
                "Colour": "-1",
                "EventPrefix": "Event-",
                "LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
                "LabelX": "0",
                "LabelY": "0",
                "LabelSize": "2",
                "ImageBufferCount": "50",
                "WarmupCount": "25",
                "PreEventCount": "25",
                "PostEventCount": "25",
                "StreamReplayBuffer": "1000",
                "AlarmFrameCount": "1",
                "SectionLength": "600",
                "FrameSkip": "0",
                "MotionFrameSkip": "0",
                "AnalysisFPS": "15.00",
                "AnalysisUpdateDelay": "0",
                "MaxFPS": "15.00",
                "AlarmMaxFPS": "15.00",
                "FPSReportInterval": "1000",
                "RefBlendPerc": "6",
                "AlarmRefBlendPerc": "6",
                "Controllable": "0",
                "ControlId": "0",
                "ControlDevice": null,
                "ControlAddress": null,
                "AutoStopTimeout": null,
                "TrackMotion": "0",
                "TrackDelay": "0",
                "ReturnLocation": "-1",
                "ReturnDelay": "0",
                "DefaultView": "Events",
                "DefaultRate": "100",
                "DefaultScale": "100",
                "SignalCheckColour": "#0000c0",
                "WebColour": "red",
                "Exif": false,
                "Sequence": "3"
            }
        },
        {
            "Monitor": {
                "Id": "4",
                "Name": "Kam64",
                "ServerId": "0",
                "Type": "Ffmpeg",
                "Function": "Mocord",
                "Enabled": "1",
                "LinkedMonitors": "",
                "Triggers": "",
                "Device": "\/dev\/video0",
                "Channel": "0",
                "Format": "255",
                "V4LMultiBuffer": false,
                "V4LCapturesPerFrame": "1",
                "Protocol": "",
                "Method": "rtpRtsp",
                "Host": "",
                "Port": "80",
                "SubPath": "",
                "Path": "rtsp:\/\/...\/videoMain",
                "Options": "",
                "User": "",
                "Pass": "",
                "Width": "1280",
                "Height": "720",
                "Colours": "4",
                "Palette": "0",
                "Orientation": "0",
                "Deinterlacing": "0",
                "RTSPDescribe": false,
                "Brightness": "-1",
                "Contrast": "-1",
                "Hue": "-1",
                "Colour": "-1",
                "EventPrefix": "Event-",
                "LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
                "LabelX": "0",
                "LabelY": "0",
                "LabelSize": "2",
                "ImageBufferCount": "50",
                "WarmupCount": "25",
                "PreEventCount": "25",
                "PostEventCount": "25",
                "StreamReplayBuffer": "1000",
                "AlarmFrameCount": "1",
                "SectionLength": "600",
                "FrameSkip": "0",
                "MotionFrameSkip": "0",
                "AnalysisFPS": "15.00",
                "AnalysisUpdateDelay": "0",
                "MaxFPS": "15.00",
                "AlarmMaxFPS": "15.00",
                "FPSReportInterval": "1000",
                "RefBlendPerc": "6",
                "AlarmRefBlendPerc": "6",
                "Controllable": "0",
                "ControlId": "0",
                "ControlDevice": null,
                "ControlAddress": null,
                "AutoStopTimeout": null,
                "TrackMotion": "0",
                "TrackDelay": "0",
                "ReturnLocation": "-1",
                "ReturnDelay": "0",
                "DefaultView": "Events",
                "DefaultRate": "100",
                "DefaultScale": "100",
                "SignalCheckColour": "#0000c0",
                "WebColour": "red",
                "Exif": false,
                "Sequence": "4"
            }
        },
        {
            "Monitor": {
                "Id": "5",
                "Name": "fdmon",
                "ServerId": "0",
                "Type": "Remote",
                "Function": "Record",
                "Enabled": "1",
                "LinkedMonitors": "",
                "Triggers": "",
                "Device": "\/dev\/video0",
                "Channel": "0",
                "Format": "255",
                "V4LMultiBuffer": false,
                "V4LCapturesPerFrame": "1",
                "Protocol": "http",
                "Method": "simple",
                "Host": "192.x.x.x",
                "Port": "8080",
                "SubPath": "",
                "Path": "\/?action=stream",
                "Options": "",
                "User": "",
                "Pass": "",
                "Width": "1280",
                "Height": "768",
                "Colours": "3",
                "Palette": "0",
                "Orientation": "0",
                "Deinterlacing": "0",
                "RTSPDescribe": false,
                "Brightness": "-1",
                "Contrast": "-1",
                "Hue": "-1",
                "Colour": "-1",
                "EventPrefix": "Event-",
                "LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
                "LabelX": "0",
                "LabelY": "0",
                "LabelSize": "2",
                "ImageBufferCount": "50",
                "WarmupCount": "25",
                "PreEventCount": "25",
                "PostEventCount": "25",
                "StreamReplayBuffer": "1000",
                "AlarmFrameCount": "1",
                "SectionLength": "600",
                "FrameSkip": "0",
                "MotionFrameSkip": "0",
                "AnalysisFPS": "15.00",
                "AnalysisUpdateDelay": "0",
                "MaxFPS": "15.00",
                "AlarmMaxFPS": "15.00",
                "FPSReportInterval": "1000",
                "RefBlendPerc": "6",
                "AlarmRefBlendPerc": "6",
                "Controllable": "0",
                "ControlId": "0",
                "ControlDevice": null,
                "ControlAddress": null,
                "AutoStopTimeout": null,
                "TrackMotion": "0",
                "TrackDelay": "0",
                "ReturnLocation": "-1",
                "ReturnDelay": "0",
                "DefaultView": "Events",
                "DefaultRate": "100",
                "DefaultScale": "100",
                "SignalCheckColour": "#0000c0",
                "WebColour": "red",
                "Exif": false,
                "Sequence": "5"
            }
        },
        {
            "Monitor": {
                "Id": "6",
                "Name": "Kam66",
                "ServerId": "0",
                "Type": "Ffmpeg",
                "Function": "Record",
                "Enabled": "1",
                "LinkedMonitors": "",
                "Triggers": "",
                "Device": "\/dev\/video0",
                "Channel": "0",
                "Format": "255",
                "V4LMultiBuffer": false,
                "V4LCapturesPerFrame": "1",
                "Protocol": "",
                "Method": "rtpRtsp",
                "Host": "",
                "Port": "80",
                "SubPath": "",
                "Path": "rtsp:\/\/...\/videoMain",
                "Options": "",
                "User": "",
                "Pass": "",
                "Width": "1280",
                "Height": "720",
                "Colours": "4",
                "Palette": "0",
                "Orientation": "180",
                "Deinterlacing": "0",
                "RTSPDescribe": false,
                "Brightness": "-1",
                "Contrast": "-1",
                "Hue": "-1",
                "Colour": "-1",
                "EventPrefix": "Event-",
                "LabelFormat": "%N - %d\/%m\/%y %H:%M:%S",
                "LabelX": "0",
                "LabelY": "0",
                "LabelSize": "2",
                "ImageBufferCount": "50",
                "WarmupCount": "25",
                "PreEventCount": "25",
                "PostEventCount": "25",
                "StreamReplayBuffer": "1000",
                "AlarmFrameCount": "1",
                "SectionLength": "600",
                "FrameSkip": "0",
                "MotionFrameSkip": "0",
                "AnalysisFPS": "7.00",
                "AnalysisUpdateDelay": "0",
                "MaxFPS": "7.00",
                "AlarmMaxFPS": "7.00",
                "FPSReportInterval": "1000",
                "RefBlendPerc": "6",
                "AlarmRefBlendPerc": "6",
                "Controllable": "0",
                "ControlId": "0",
                "ControlDevice": null,
                "ControlAddress": null,
                "AutoStopTimeout": null,
                "TrackMotion": "0",
                "TrackDelay": "0",
                "ReturnLocation": "-1",
                "ReturnDelay": "0",
                "DefaultView": "Events",
                "DefaultRate": "100",
                "DefaultScale": "100",
                "SignalCheckColour": "#0000c0",
                "WebColour": "red",
                "Exif": false,
                "Sequence": "6"
            }
        }
    ]
}
kenworth
Posts: 52
Joined: Tue Feb 11, 2014 1:04 pm

Re: API was working from zmNinja, but has stopped

Post by kenworth »

Sounds like you are using Chrome on your mobile. See this thread....I had the same problem.

viewtopic.php?f=33&t=26493
akg1508
Posts: 26
Joined: Sun Aug 02, 2015 9:06 am

Re: API was working from zmNinja, but has stopped

Post by akg1508 »

kenworth wrote: Wed Nov 01, 2017 11:45 am Sounds like you are using Chrome on your mobile. See this thread....I had the same problem.

viewtopic.php?f=33&t=26493
Thanks, @kenworth!

That was indeed the problem. Disabling basic authentication and only using zoneminder's internal authentication means that zmNinja is working again, and I've also got the kodi plugin working (except for montage, but I'll look in to that separately).

The zm documentation states:
Authenticated mode alone should not be relied up for securing Internet connected ZoneMinder.
What is the recommended security for an internet facing installation now that apache basic authentication can't be used?

If the only answer is to switch to the crosswalk version of zmNinja, how would you handle the kodi plugin? Have apache listen on two ports, the internet facing one with basic authentication enabled and the internal one without basic authentication?

Thanks again for all your help,
Alistair
kenworth
Posts: 52
Joined: Tue Feb 11, 2014 1:04 pm

Re: API was working from zmNinja, but has stopped

Post by kenworth »

I believe OAuth2 based authentication would be best practice (I could be wrong, not an expert in this space), but your client would have to support it and zmninja does not to my knowledge....it only does basic or ZM authentication. In my case, I'm still using basic auth but I force all connections to HTTPS to at least prevent network snooping. It is possible to configure Apache to do different things on different network interfaces, so you might want to look into that to support Kodi on your local network.
akg1508
Posts: 26
Joined: Sun Aug 02, 2015 9:06 am

Re: API was working from zmNinja, but has stopped

Post by akg1508 »

Hi @kenworth,

Thanks for your reply.

I've also got HTTPS only access. If the crosswalk version ever becomes the default I'll look at re-enabling basic auth and re-configuring Apache so that it is only enabled on the internet interface.

For now I'll rely on the ZM authentication and that it is running inside a container, so the potential damage is limited.

Thanks again,
Alistair
Locked