PDA

View Full Version : Time-sensitive trigger


rts
14-09-2007, 19:03
I've got a service which only runs during office hours, but when it's running, it must run smoothly. I've got a trigger on it, but currently it fires every evening, then turns off in the morning. Can someone suggest how to say, for example:

trigger if:

{our_monitors:serviceZZ.queuelength.last(0)}>20 AND (hour of day>6am) AND (hour of day < 9pm)

Alexei
16-09-2007, 17:04
This should work:

{our_monitors:serviceZZ.queuelength.last(0)}>20 & {our_monitors:serviceZZ.queuelength.time(0)}>060000 & {our_monitors:serviceZZ.queuelength.time(0)}<210000

rts
16-09-2007, 21:13
Thanks - I've now found the documentation for this. Section 5.14.1 of http://www.zabbix.com/downloads/ZABBIX%20Manual%20v1.4.pdf lists all the expressions that can be used.