Ad Widget

Collapse

Repetitive Email Notifications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cbidwell
    Senior Member
    • Aug 2006
    • 127

    #1

    Repetitive Email Notifications

    Hi all,

    Does anyone know of a way to where zabbix will continually send out notifications every x minutes when a server/service is down or action is triggered? And also, to determine how long that service has been down?

    i.e.

    192.168.0.5 has been unreachable for 113 minutes.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    That feature was removed in 1.4. You could setup multiple triggers, ie xyz has been down for 10 minutes... xyz has been down for 30 minutes and so forth. I've tried this a few times, but there seems to be a bug as I get all triggers at the same time after the first one goes. For instance I set one up once that said server unreachable which went after 5 minutes... then a disaster level one saying server down at 10 minutes. After 5 minutes I get both triggers.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • cstackpole
      Senior Member
      Zabbix Certified Specialist
      • Oct 2006
      • 225

      #3
      I scripted mine.


      It works. I can't say anything better about it then that. It has it's problems (especially when there are a ton of systems using it) but it works.

      In that blog post I talk about a second version. It doesn't exist anymore. I just couldn't get it stable enough that I felt good with running it.

      Anyway, if you want to use it then go for it. If you want to customize your own, I encourage it. Just please post back with what you did for others

      Comment

      • knarfling
        Member
        • Sep 2006
        • 47

        #4
        Repeats

        Although it takes more triggers, and should not be done for every trigger, fuzzytime is your friend.

        I have a few systems that need to receive data from an outside source. I have 4 triggers set up for each system that checks for data. The first fires off if a file has not changed in 15 minutes, the next at 30 and so on every 15 minutes.

        The trigger looks something like this:
        {server:vfs.file.time[/path/to/file].fuzzytime(1800)}=0

        Before fuzzytime showed up, I had to set up an item that only pulled the system time, then create a trigger that pulled a vfs.file.time and subtract it from the current time. That was a big pain.

        I haven't played with it too much, and I don't use it for system outages, but it works well when checking to see when I last got data.

        Comment

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

          #5
          Originally posted by cbidwell
          Hi all,

          Does anyone know of a way to where zabbix will continually send out notifications every x minutes when a server/service is down or action is triggered? And also, to determine how long that service has been down?

          i.e.

          192.168.0.5 has been unreachable for 113 minutes.
          This is part of escalations already implemented in pre-1.6 (1.5.x) code.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...