I have zoneminder working propertly and wanted to use zmNinja with it with notifications. I followed the instructions to install and configure zmeventnotification and when running it I get the following error and cannot find what is causing it:
Code: Select all
06/23/2020 10:24:57.032589 zmeventnotification[11503].INF [main:881] [PARENT: using config file: /etc/zm/zmeventnotification.ini]
06/23/2020 10:24:57.049419 zmeventnotification[11503].INF [main:881] [PARENT: using secrets file: /etc/zm/secrets.ini]
06/23/2020 10:24:57.187602 zmeventnotification[11503].INF [main:881] [PARENT: Push enabled via FCM]
06/23/2020 10:24:57.218382 zmeventnotification[11503].INF [main:881] [PARENT: MQTT Enabled]
06/23/2020 10:24:57.275316 zmeventnotification[11503].INF [main:881] [PARENT: |------- Starting ES version: 5.13 ---------|]
Can't ignore signal CHLD, forcing to default.
06/23/2020 10:24:57.406541 zmeventnotification[11503].INF [main:881] [PARENT: Event Notification daemon v 5.13 starting]
06/23/2020 10:24:57.417083 zmeventnotification[11503].INF [main:881] [PARENT: Initializing MQTT connection...]
06/23/2020 10:24:57.454017 zmeventnotification[11503].INF [main:881] [PARENT: Re-loading monitors]
06/23/2020 10:24:57.492540 zmeventnotification[11503].INF [main:881] [PARENT: Secure WS(WSS) is enabled...]
06/23/2020 10:24:57.527984 zmeventnotification[11503].INF [main:881] [PARENT: Web Socket Event Server listening on port 9000]
/usr/bin/zmeventnotification.pl: connect: Connection refused
Code: Select all
06/23/2020 10:27:25.420532 zmeventnotification[11667].INF [main:881] [PARENT: using config file: /etc/zm/zmeventnotification.ini]
06/23/2020 10:27:25.437743 zmeventnotification[11667].INF [main:881] [PARENT: using secrets file: /etc/zm/secrets.ini]
Configuration (read /etc/zm/zmeventnotification.ini):
Secrets file.......................... /etc/zm/secrets.ini
Base data path........................ /var/lib/zmeventnotification
Restart interval (secs)............... (undefined)
Use admin interface .................. yes
Admin interface password.............. (defined)
Admin interface persistence file ..... /var/lib/zmeventnotification/misc/escontrol_interface.dat
Port ................................. 9000
Address .............................. 0.0.0.0
Event check interval ................. 5
Monitor reload interval .............. 300
Skipped monitors...................... (undefined)
Auth enabled ......................... yes
Auth timeout ......................... 20
Use API Push.......................... no
API Push Script....................... (undefined)
Use FCM .............................. yes
FCM Date Format....................... %I:%M %p, %d-%b
FCM API key .......................... (defined)
Token file ........................... /var/lib/zmeventnotification/push/tokens.txt
Use MQTT ............................. yes
MQTT Server .......................... 127.0.0.1
MQTT Username ........................ mqtt_zm
MQTT Password ........................ (defined)
MQTT Retain .......................... no
MQTT Tick Interval ................... 15
SSL enabled .......................... yes
SSL cert file ........................ /etc/letsencrypt/rsa-live/kilonga.net/cert.pem
SSL key file ......................... /etc/letsencrypt/rsa-live/kilonga.net/privkey.pem
Verbose .............................. no
ES Debug level.........................2
Read alarm cause ..................... yes
Tag alarm event id ................... yes
Use custom notification sound ........ no
Send event end notification............yes
Use Hooks............................. yes
Hook Script on Event Start ........... '/var/lib/zmeventnotification/bin/zm_event_start.sh'
Hook Script on Event End.............. '/var/lib/zmeventnotification/bin/zm_event_end.sh'
Hook Skipped monitors................. (undefined)
Notify on Event Start (hook success).. all
Notify on Event Start (hook fail)..... none
Notify on Event End (hook success).... fcm,web,api
Notify on Event End (hook fail)....... none
Notify End only if Start success...... yes
Use Hook Description.................. yes
Keep frame match type................. yes
Store Frame in ZM......................yes
Picture URL .......................... https://kilonga.net/zm/index.php?view=image&eid=EVENTID&fid=objdetect&width=600
Include picture....................... yes
Picture username ..................... admin
Picture password ..................... (defined)
Thanks!