Ad Widget

Collapse

icmpping not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vrtareg
    Senior Member
    • May 2006
    • 293

    #1

    icmpping not working

    Hi

    I noticed that icmpping stops to work when i upgrade zabbix from 1.4.2 to 1.4.4.
    Even after upgrade from 1.4.4 to 1.4.5 situation does not change.

    I try to create fake host "aaaaabbbbbb" or "blablabla" and zabbix always reports that this hosts are available, even when fping is runnable from zabbix user and reports that these hosts are unreachable or not resolvable.

    I am going to compare source codes for pinger.c, may be this will help to find problem.

    Regards
    Areg
  • vrtareg
    Senior Member
    • May 2006
    • 293

    #2
    I checked logs and se following:

    14985:20080416:104921 In get_pinger_hosts()
    14985:20080416:104921 DNS name [yahoo.com]
    14985:20080416:104921 DNS name [google.com]
    14985:20080416:104921 DNS name [yandex.ru]
    14985:20080416:104921 DNS name [aaaaaaaaaaaaabbbbbbbbb]
    14985:20080416:104921 End of get_pinger_hosts()
    14985:20080416:104921 In do_ping() [hosts_count:4]
    14985:20080416:104922 Update IP [google.com is alive (787 ms)]
    14985:20080416:104922 Mseconds [787.000000]
    14985:20080416:104922 Update IP [yandex.ru is alive (891 ms)]
    14985:20080416:104922 Mseconds [891.000000]
    14985:20080416:104922 Update IP [yahoo.com is alive (1135 ms)]
    14985:20080416:104922 Mseconds [1135.000000]
    14985:20080416:104923 Host [yahoo.com] alive [1]
    14985:20080416:104923 In process_value([email protected])
    14985:20080416:104923 In process_value([email protected])
    14985:20080416:104923 Host [google.com] alive [1]
    14985:20080416:104923 In process_value([email protected])
    14985:20080416:104923 In process_value([email protected])
    14985:20080416:104923 Host [yandex.ru] alive [1]
    14985:20080416:104923 In process_value([email protected])
    14985:20080416:104923 In process_value([email protected])
    14985:20080416:104923 Host [aaaaaaaaaaaaabbbbbbbbb] alive [0]
    14985:20080416:104923 In process_value(icmpping@aaaaaaaaaaaaabbbbbbbbb)
    14985:20080416:104923 In process_value(icmppingsec@aaaaaaaaaaaaabbbbbbbbb)
    14985:20080416:104923 End of do_ping()
    14985:20080416:104923 Sleeping for 58 seconds
    And as you can see from attached images host "aaaaaaaaaaaaabbbbbbbbb" is available and other hosts are unknown.

    This is very strange.

    Areg
    Attached Files

    Comment

    • xs-
      Senior Member
      Zabbix Certified Specialist
      • Dec 2007
      • 393

      #3
      Doesnt the availability state also require either a zabbix_agent or snmp poll besides the ping?
      I see you dont have any templates linked to the example hosts. Do you have any checks at all defined for those? Try to add an extra icmpping item for them.

      Comment

      • vrtareg
        Senior Member
        • May 2006
        • 293

        #4
        Hi

        This was the upgrade issue. When i upgrade from older version to new one some hosts links with templates don't upgrade correctly.
        Actually there are items configured for these hosts: icmpping and icmppingsec and i see collected data.

        I want to understand why if i add some host that linked to template with only 2 items - icmpping and icmppingsec become available immediately even i add non existent host.

        Regards
        Areg

        Comment

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

          #5
          The icmpping does not change host availability in any way.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • vrtareg
            Senior Member
            • May 2006
            • 293

            #6
            How can i check the host availability if i had only 2 items for checking - icmpping and icmppingsec?

            Comment

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

              #7
              Originally posted by vrtareg
              How can i check the host availability if i had only 2 items for checking - icmpping and icmppingsec?
              Well, it depends how you define host availability. I believe you need something like: {host:icmpping.max(300)}=0
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • vrtareg
                Senior Member
                • May 2006
                • 293

                #8
                Alexei

                I try to find place where i can define availability check.
                Can you help me to find it ?
                Where i can define this check to see on hosts page if this host available or not?

                Thanks
                Areg

                Comment

                • BHG_2008
                  Junior Member
                  • Jan 2008
                  • 23

                  #9
                  icmpping not working...correctly

                  I have 5 Zabbix servers in use now, but now I have added 967 hosts to a new server, in which some (approx. 35%) I require T1 throughput analysis, while the others only need icmpping monitoring.

                  544 hosts show "available", the others below that do not, but show "unknown".
                  If it were a "bug" internal to Zabbix, why do some work while others do not? I imported all 967 hosts from the same XML import routine. I have further investigated my OS limits, all are more than sufficient for the zabbix unix user.
                  I have also checked the mysql connection and throughput limits, all were found acceptable. System appears to be running at 45% utilization.

                  2 Quad Core Intel Processors @ 2.8GHz, with 8GB DDR2 RAM 75GB mirrored array.
                  RedHat EL 5.2
                  Zabbix 1.4.4

                  Comment

                  • BHG_2008
                    Junior Member
                    • Jan 2008
                    • 23

                    #10
                    icmpping not working...work around for "availability"

                    Found work around for icmpping partially working.
                    Add another item besides a "Simple Check" item to controlling template and save. (even if you don't care about that item.)
                    Then update template's triggers.
                    Give Zabbix a moment to catch up, then look at the host screen again.
                    You should not see "Unknown" for any item with a reachable address anymore.

                    Comment

                    • dan.trainor
                      Junior Member
                      • Apr 2008
                      • 11

                      #11
                      Hi, BHG -

                      I'm interested in learning more about what you did.

                      No matter what combination of triggers I use to get an alarm, I can only get the trigger to show "Unknown" or be the exact opposite of what I'm looking to get.

                      Would you mind throwing down some of the triggers that you've used, so I can compare mine and see where I went wrong? It would be a great help.

                      Thanks
                      -dant

                      Comment

                      • BHG_2008
                        Junior Member
                        • Jan 2008
                        • 23

                        #12
                        Trigger example

                        {myhostname:icmpping.last(0)}=0
                        where myhostname is defined as a host, and reachable from Zabbix.

                        You cannot simple declare a host in a trigger.
                        It took me awhile to learn the most efficient order, but it finally clicked.
                        Setup
                        1) Create Templates (option under Hosts)
                        2) Add Items of importance to a group of hosts
                        3) Create triggers FROM template items
                        4) Create Actions from triggers
                        5) Create a host for each box you setup the Items for in 2), link to template
                        Your host inherets Items, Triggers and Actions.

                        Make Pretty
                        1) Create Graphs in Template from item(s)
                        2) Create Screens or Maps from Items and Graphs
                        3) Create Slideshows from Screens and Maps (flips through each)

                        -BHG_2008-

                        Comment

                        Working...