Ad Widget

Collapse

ICMP Ping Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lleahu
    Junior Member
    • May 2007
    • 6

    #1

    ICMP Ping Help

    Hello,

    I am relatively new to Zabbix, and I am using version 1.3.7.

    We currently have a custom home-grown monitoring system which works like this:
    - if a host is not able to be pinged, then:
    - record that the host is down
    - if the down time is >= 5 mintes, send a "down for 5 minutes" page.
    - if the down time is >= 10 mintes, send a "down for 10 minutes" page.
    - if the down time is >= 20 mintes, send a "down for 20 minutes" page.
    - If a host is able to be pinged, then:
    - record that the host is up.
    - if a down page had been sent, then send a "host is up" page.

    I would like to implement this functionality in Zabbix, but I'm not entirely sure how to set this up.

    I've tried some attempts using triggers / actions, but Zabbix would send me notifications for all my triggers each time something happened.

    Please help.
    - Lee
  • lleahu
    Junior Member
    • May 2007
    • 6

    #2
    Here is the template that I've been trying to get working.

    I'm trying to define a "base template" that can be used across all of my servers.
    (for testing purposes, I've decreased from 5, 10, 20, to 1, 2, 3)

    I have updated my template and this is revision two.

    The behaviour that I see is this:

    1. I have 1 item - (ICMP Ping).
    2. I have 3 triggers
    - first trigger (for ICMP Ping) goes true after 1 minute, priority warning
    - second trigger (for ICMP Ping) goes true after 2 minutes, priority high
    - third trigger (for ICMP Ping) goes true after 3 minutes, priority disaster
    3. I have 3 actions
    - first action send email 'host down for 1 minutes' when first trigger (for ICMP PING, 1 minute down) in the template is true.
    - second action send email 'host down for 2 minutes' when second trigger (for ICMP PING, 2 minute down) in the template is true.
    - third action send email 'host down for 3 minutes' when third trigger (for ICMP PING, 3 minute down) in the template is true.

    The problem is that when each trigger goes true, instead of sending 1 email (showing which trigger went true), I get 3 emails each time (showing all three triggers going true, even though only 1 trigger might be true).

    It looks like that when a trigger goes true, Zabbix activates all the actions that a *related* to the item, *even though* each action is pointed its own trigger (and some of those triggers might be false).

    Does this make sense?

    Here are some screen shots, showing my Items, Triggers, and Actions.








    Any help that anyone can offer would be greatly appreciated.

    Here is the updated template:

    <?xml version="1.0"?>
    <zabbix_export version="1.0" date="17.05.07" time="03.18">
    <hosts>
    <host name="Template_Connectivity">
    <ip>0.0.0.0</ip>
    <port>10050</port>
    <status>3</status>
    <groups>
    <group>Templates</group>
    </groups>
    <items>
    <item type="3" key="icmpping" value_type="3">
    <description>ICMP Ping</description>
    <delay>30</delay>
    <history>90</history>
    <trends>365</trends>
    <formula>1</formula>
    <snmp_community>public</snmp_community>
    <snmp_oid>interfaces.ifTable.ifEntry.ifInOctets. 1</snmp_oid>
    <snmp_port>161</snmp_port>
    <valuemap>Host status</valuemap>
    </item>
    </items>
    <triggers>
    <trigger>
    <description>ICMP Ping - Down 5 Minutes</description>
    <expression>{{HOSTNAME}:icmpping.max(#2)}=0</expression>
    <priority>2</priority>
    <comments>Host is down for 5 minutes.</comments>
    </trigger>
    <trigger>
    <description>ICMP Ping - Down 10 Minutes</description>
    <expression>{{HOSTNAME}:icmpping.max(#4)}=0</expression>
    <priority>4</priority>
    <comments>Host is down for 10 minutes.</comments>
    </trigger>
    <trigger>
    <description>ICMP Ping - Down 20 Minutes</description>
    <expression>{{HOSTNAME}:icmpping.max(#6)}=0</expression>
    <priority>5</priority>
    <comments>Host is down for 10 minutes.</comments>
    </trigger>
    </triggers>
    </host>
    </hosts>
    </zabbix_export>
    Last edited by lleahu; 17-05-2007, 22:32.

    Comment

    • lleahu
      Junior Member
      • May 2007
      • 6

      #3
      Bump...

      Does anyone have any thoughts on this?

      Comment

      Working...