Ad Widget

Collapse

Time constraints for triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tob
    Junior Member
    Zabbix Certified Specialist
    • Dec 2008
    • 25

    #1

    Time constraints for triggers

    Hi there,

    At the moment I am wondering if some people have experience with adding time constraints on triggers.

    Basically I'm monitoring big websites on special metrics, they need to be quite trigger happy since we need to know right away if something breaks. During business hours this works all fine, but outside business hours we sometimes get false positives (no new user registrations in the last 15 min at 4am in the morning

    So I need the triggers only to be active during certain hours. The first approach was to handle this in actions, simply not sending alerts during certain hours. But this turned out to be very suboptimal; some things I do want the alerts even at night, and things like 'top 100 most busy triggers' give the wrong information.

    So the solution is to make the triggers itself time depended, and here comes my issue: say I want to alerts between 2am and 7am, checking every 15min min - I could do something like this (hostsnames changed for the obvious reasons):

    {bla-ops001.intern.tldbla.com:dailyXcount.max(900)}<1 & {bla-ops001.intern.tldbla.com:dailyXcount.time(0)}<0100 00 & {bla-ops001.intern.tldbla.com:gumtree.dailyadcount.time (0)}>070000

    But this won't work since at 1pm (130000):
    >070000 is TRUE
    <010000 is FALSE

    I'm sure the solution must be easy, any hints/experiences would greatly be appreciated!
  • krcourser
    Junior Member
    • Oct 2009
    • 8

    #2
    Time Constraints

    I know your post was 2008 but if you create a Host Group for the hosts you only want to report at certain times and add a Time Period condition to your action with the days of the week and times of day and a condition for Host Group = that group you should be able to accomplish this.

    Comment

    Working...