Ad Widget

Collapse

Recover message with calculated downtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orionweb
    Junior Member
    • Feb 2010
    • 17

    #1

    Recover message with calculated downtime

    After weeks of getting frustrated I am getting some where with Zabbix I will try to write a noob quick start tut some day

    One of the other monitoring system we were using (PRTG) when it sends a recovery message it also include stats of how long the host / service was down for.

    Example email subject: BRU : PINGBRUExt(PING) Up : Downtime: 234 s (OK)

    How can I achieve the same thing in Zabbix Action message? At the moment I have the below for the recovery message.

    {HOSTNAME} {TRIGGER.NAME} : {STATUS}

    Which give: HOSTNAME Down (using ICMP Host Alive Check): OK

    What I want: HOSTNAME Down (using ICMP Host Alive Check): OK : Downtime 2 mins

    What else do I need to add to get the downtime info. I can see the info int he web GUI so it is already calculated just needs to be retrieved

    Thank you for any pointer.
  • elvar
    Senior Member
    • Feb 2008
    • 226

    #2
    Originally posted by orionweb
    After weeks of getting frustrated I am getting some where with Zabbix I will try to write a noob quick start tut some day

    One of the other monitoring system we were using (PRTG) when it sends a recovery message it also include stats of how long the host / service was down for.

    Example email subject: BRU : PINGBRUExt(PING) Up : Downtime: 234 s (OK)

    How can I achieve the same thing in Zabbix Action message? At the moment I have the below for the recovery message.

    {HOSTNAME} {TRIGGER.NAME} : {STATUS}

    Which give: HOSTNAME Down (using ICMP Host Alive Check): OK

    What I want: HOSTNAME Down (using ICMP Host Alive Check): OK : Downtime 2 mins

    What else do I need to add to get the downtime info. I can see the info int he web GUI so it is already calculated just needs to be retrieved

    Thank you for any pointer.
    I am interested in this as well. Please post back if you figure it out.

    Comment

    • alixen
      Senior Member
      • Apr 2006
      • 474

      #3
      Hi,

      May be {EVENT.AGE} macro is what you are looking for; I haven't tried it yet.
      It is described in the manual : http://www.zabbix.com/documentation/.../config/macros

      Regards,
      Alixen
      http://www.alixen.fr/zabbix.html

      Comment

      • orionweb
        Junior Member
        • Feb 2010
        • 17

        #4
        Thank you will give that a try.

        Comment

        • zabbix_zen
          Senior Member
          • Jul 2009
          • 426

          #5
          Sorry to inform you the {EVENT.AGE} macro is intended for displaying age of the last event, so it will always return 0 for recovery messages.


          I've opened a new Request for it, please vote

          Comment

          • orionweb
            Junior Member
            • Feb 2010
            • 17

            #6
            I tried it myself and it didn't work. Looking at the macros page I couldn't see anything else close.

            Have placed my vote, the first to vote

            Comment

            • guertin
              Junior Member
              • Mar 2010
              • 9

              #7
              I would really like to see this too. I have also voted.

              Comment

              Working...