Ad Widget

Collapse

Activate action in time period when trigger is still up

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • limo
    Senior Member
    • Dec 2004
    • 192

    #1

    Activate action in time period when trigger is still up

    Hello all,

    I have setup where action is configured to send email only during workhours (Time period in "1-7,08:00-20:59"). This works fine but there is one big problem for us. If triggers become true during night or weekend, nobody will know that problem exists.

    Is it possible to send actions which are still ON on timeperiod start?

    It means (Time period in "1-7,08:00-20:59"):
    - When server goes down at 22:00 and will be back at 23:00, , send nothing.
    - When server goes down at 22:00 and is not back until 08:00, send action at 8:00.

    Or did I miss something and it should work?

    Thank you,
    Lukas
  • zabbix_zen
    Senior Member
    • Jul 2009
    • 426

    #2
    Well.. you should never close your eyes to problems that occur recurrently during the night.

    Why don't you keep that initial action both for sms'ing and sending to some mailboxes of a list of people during the day and
    create a new one for the night period that only sends to a shared mailbox?

    That way, when people arrive at morning to the company they'd know something had happened.

    Comment

    • limo
      Senior Member
      • Dec 2004
      • 192

      #3
      I do not want to close my eyes, you are right. But think about two kind of users. Management and technicians.

      - Management people do not want to know any proble which was at night. Why ? They want to use their services and network during workhours.

      - Technicians should be fired any time when trigger becomes true. They can repair problem just before management wakes up

      Similar scenario for company which supports some network services. When there is time period in which service is monitored, why to fire customers with mails about problems? Yes, supporting company can be informed.

      Am I right ?

      Comment

      • zabbix_zen
        Senior Member
        • Jul 2009
        • 426

        #4
        "Technicians should be fired any time when trigger becomes true"
        Though I enjoyed visiting Praha and Ostrava I wouldn't enjoy working in a company that would do that
        (I bet you didn't intend to say the engineering team should be fired from their jobs but rather an alarm should be fired to them )

        "- When server goes down at 22:00 and is not back until 08:00, send action at 8:00."

        Well, the closest I'm thinking about is you could tweak a new Action meant only for the Managers (with Time period in "1-7,22:00-23:59 or 00:00-09:59 for example) to to that with Escalations:

        1) Activate Escalations;
        2) Setup the period between Scales(in your case, 36 000 sec (22h..8h) that means a message will be triggered if the problems isn't solved in 10h, of course if the problem arises at 23h47 the Managers will only know about it at 09h47, you'll have to tweak the Scale as you see it fit);
        3) Setup the Default Subject and Message;
        - In the config box on the right, clicking on 'New' you'll see 'Edit Operation'. The steps are setup using 'To', 'From' and 'Period'. A [0 - Default] 'Period' means "run next Step in: ..[0 - Default]"

        NOTE: The 'Delay' collum values are only computed using Default value and thus aren't correctly computed when using personalized Delay values. You can choose a 'Period Delay' different from the Default one for each Step, which allows a greater flexibility chosing the time windows which each 'user/group' receives a message.

        4) Activate ‘Recovery Message’;
        5) Setup the Default Subject and Message for Recovery(Eg: RECOVERED or OK);
        6) Setup the conditions and add “Trigger value = PROBLEM”. (Don't forget this one!)
        7) Setup the operations for each Step. Eg. If the detected problem wan't solved between 22h .. 8h scale the message to the Managers

        Comment

        • limo
          Senior Member
          • Dec 2004
          • 192

          #5
          Thank you for helping, sorry for my bad english. I did not know right meaning of "Fired"

          Your solution is possible, thank you but I think that zabix SHOULD take care of problems which exists in start of reporting period. It means, not only send action in time when it becomes ON/OFF. But in start of time period for action if problem still exists.

          Regards,
          Lukas

          Comment

          • rodrigo.root.rj
            Junior Member
            • Jun 2010
            • 26

            #6
            answer me one question

            hi,
            could make the exemple of trigger.

            create for time aftennon and night times.

            i create the trigger below :

            {host01:tcp,10050.last(0)}#0&{host01:tcp,10050.tim e(0)}>180000&{host01:tcp,10050.time(0)}<235959 - The the trigger is broken.

            i make the trigger whish reference at trigger in the guide of zabbix.

            {host01:tcp,10050.last(0)}#0&{host01:tcp,10050.tim e(0)}>000000&{host01:tcp,10050.time(0)}<060000 The radio work perfectly.

            if there is any difference between schedules before and after noon
            (eu gostaria de saber se existe alguma diferença em horarios antes e depois do meio dia - Portuguese )

            PS: my zabbix is 1.6.6 , please help me!!!
            Note: i don´t want create across of item, before i want give collect the traffic in all time, but don´t want given alarms of trigger.

            Comment

            Working...