Hello!
I hope sb. can help, I am running out of options here.
Situation is like this: I want to monitor a retail store customer counter system through zabbix. I have a bash script that makes a mysql query and reports back the result with number of visitors. So from zabbix I am looking for information when there is 0 data from mysql or there is no data change between 2 last checks (about 2-3hour intervals)
I am doing a External check to the script like this:
counter.sh[-shop 1]
Problem is that it's not possible to use flexible intervals. I need to exclude hours that are not working time because the counters report 0 data in the nights and make triggers go off.
I have tried:
Interval 3600sec
0, 1-7,21:00-12:00
or
Interval 0sec
3600,1-7, 12:00-21:00
nothing works, it still checks during the offline hours. From the forums I found that it is not possible to do this with flexible intervals. Is there any other suggestion how to deal with this situation? Using UserParameters or zabbix_sender is not very good idea. I'd like that it would be easy to add a new shop so that there is no need to connect to shell and edit configs.
Rene
I hope sb. can help, I am running out of options here.
Situation is like this: I want to monitor a retail store customer counter system through zabbix. I have a bash script that makes a mysql query and reports back the result with number of visitors. So from zabbix I am looking for information when there is 0 data from mysql or there is no data change between 2 last checks (about 2-3hour intervals)
I am doing a External check to the script like this:
counter.sh[-shop 1]
Problem is that it's not possible to use flexible intervals. I need to exclude hours that are not working time because the counters report 0 data in the nights and make triggers go off.
I have tried:
Interval 3600sec
0, 1-7,21:00-12:00
or
Interval 0sec
3600,1-7, 12:00-21:00
nothing works, it still checks during the offline hours. From the forums I found that it is not possible to do this with flexible intervals. Is there any other suggestion how to deal with this situation? Using UserParameters or zabbix_sender is not very good idea. I'd like that it would be easy to add a new shop so that there is no need to connect to shell and edit configs.
Rene
Comment