Ad Widget

Collapse

monitor only at working days

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chojin
    Member
    Zabbix Certified Specialist
    • Jul 2011
    • 64

    #1

    monitor only at working days

    I have a few applications which are known to stop working from time to time, so I check their last activity time (based on last change timestamp of log-file) them using zabbix. And I get a triggered alarm when there is no activity for 15 min. as that is not normal during working days

    However, during the weekend, that is normal. The application just hasn't anything to do in the weekend. Hence zabbix starts complaining about it due to the trigger.

    Is there a way to tell zabbix not to monitor certain item, or not to trigger certain triggers during the weekend.
    I've already tried flexible intervals, but I can't seem to skip a whole weekend with it.

    Have others already configured simular things? how did you solve it? what could be a good way to solve this?
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    You can use the dayofweek-function in your trigger. This way you can use the AND operand to check if dayofweek() returns something below 6 (day 6 = saturday, day 7 = sunday).

    Have a look at: http://www.zabbix.com/documentation/...onfig/triggers

    Comment

    • chojin
      Member
      Zabbix Certified Specialist
      • Jul 2011
      • 64

      #3
      Fantastic ! That is what I was looking for. Thanks!

      Only problem I now have are holidays.. but I don't think there is an easy solution for that?

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Another solution is to use host-level maintenance. In this case you could define all weekends and holidays as maintenance periods.

        Note that you may choose to collect or do not collect historical data within maintenances. Make sure that you have action condition "not in maintenance" in place.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • chojin
          Member
          Zabbix Certified Specialist
          • Jul 2011
          • 64

          #5
          Originally posted by Alexei
          Another solution is to use host-level maintenance. In this case you could define all weekends and holidays as maintenance periods.
          Thanks for the suggestion. I have been thinking about that too, however I do need to receive alerts about other errors on the host in the weekends and on holidays. (and not during a real maintenance)

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Originally posted by chojin
            Thanks for the suggestion. I have been thinking about that too, however I do need to receive alerts about other errors on the host in the weekends and on holidays. (and not during a real maintenance)
            That's fine. You may have two actions: one with your application and not in maintenance, another with other applications regardless of maintenance status.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • chojin
              Member
              Zabbix Certified Specialist
              • Jul 2011
              • 64

              #7
              Originally posted by Alexei
              That's fine. You may have two actions: one with your application and not in maintenance, another with other applications regardless of maintenance status.
              But then I will also get the alerts of the other applications when there is a real maintenance?

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                Originally posted by chojin
                But then I will also get the alerts of the other applications when there is a real maintenance?
                I misread your message, sorry. Please ignore my previous comment.

                Anyway, you may use time related trigger functions as suggested or use filtering by time period in configuration of actions (look at all supported conditions there!). It is also possible.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                Working...