By checking that cameras are generating events every hour during business hours I can be sure that the camera and zoneminder is ACTUALLY working.
(This is not a step by step instruction, just a guideline)
1. Add a user with select permission to the events table in the zoneminder database
2. Create a file with lines like:
UserParameter=Server_Room.working,mysql --defaults-file=/etc/zabbix/.mysqlzabb -u zabbix -e 'select count(*) from zm.Events where Monitorid = "6" and EndTime between DATE_SUB(NOW(), INTERVAL 4 day) AND NOW()' | tail -n 1
to be included in the zabbix agent config. Modify the interval so that the cameras are checked only how often they need to be ensure they are still fully functional.
3. On the server using the attached file as en example create the items/triggers.
(This is not a step by step instruction, just a guideline)
1. Add a user with select permission to the events table in the zoneminder database
2. Create a file with lines like:
UserParameter=Server_Room.working,mysql --defaults-file=/etc/zabbix/.mysqlzabb -u zabbix -e 'select count(*) from zm.Events where Monitorid = "6" and EndTime between DATE_SUB(NOW(), INTERVAL 4 day) AND NOW()' | tail -n 1
to be included in the zabbix agent config. Modify the interval so that the cameras are checked only how often they need to be ensure they are still fully functional.
3. On the server using the attached file as en example create the items/triggers.