Ad Widget

Collapse

trigger for certain time period

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adil
    Junior Member
    • Oct 2010
    • 3

    #1

    trigger for certain time period

    How can I setup a trigger that would only activate during certain time period of the day (from 10:40 am till 10:30 am next day).
    I am using the following but the trigger is never fired:

    {server04: proc.num[ntpd].last(0)}<1 & {server04: proc.num[ntpd].time(0)}<103000 & {server04: proc.num[ntpd].time(0)}>104000
    Last edited by adil; 21-06-2011, 17:57.
  • JBo
    Senior Member
    • Jan 2011
    • 310

    #2
    Hi,

    Hi,

    What you have defined actually means:
    Code:
    10:40:00 < time AND time < 10:30:00
    It will never happen

    You should try:
    Code:
    time < 10:30:00 OR time > 10:40:00
    With Zabbix syntax:
    Code:
    {server04:proc.num[ntpd].last(0)}<1 & ({server04:proc.num[ntpd].time(0)}<103000 | {server04:proc.num[ntpd].time(0)}>104000)
    Regards,
    JBo

    Comment

    Working...