Ad Widget

Collapse

How works ping.nodata value?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ittec
    Member
    • Mar 2008
    • 73

    #1

    How works ping.nodata value?

    I read yesterday some post about agent.ping.nodata. I tested this value, I made a new trigger and created a new send-mail action. I tested with one windows host. The exactly value is

    Windows :agent.ping.nodata(30)}= 1

    Then I modified Windows Firewall to close "Allow incoming ping". So when I do a ping from my pc, Windows Server returns no data. So if I understand more or less how zabbix control these, the trigger must change to "TRUE" because Windows Server is now returning nothing. And after that, the action must be send email to user or group.

    But not happen is this way. Trigger dont' change and obviously don't send mail. Am I doing properly or Am I totally wrong ?

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

    #2
    Your trigger:
    if agent.ping returns no data for 30 secs or more, this trigger will be true and thus fire.
    Please take into account that agent.ping is not icmpping.
    Agent.ping is a zabbix server->client client->server procotolg thingy, created (i think) mainly for active checks where the server never polls the agent, and the agent just lets the server know its still there.

    If you want to icmp ping the windows box, use simplecheck - icmpping

    Comment

    • ittec
      Member
      • Mar 2008
      • 73

      #3
      doubt

      Thanks XS-

      I haven't a clearly idea about make new items, triggers and actions. I had installed fping in Zabbix Server. But currently when I check the status of icmping the value is not True or False else UNKNOWN. The setup of zabbix_server.conf is ok but I'll suppose I have a bad configuration of triggers.

      I create a new Item(simple check - icmping) for Linux Template, and then I created a new Trigger( I selected icmping) for one host. When I go to Monitoring, I see the trigger with UNKNOWN value

      Is there a clearly guide to make new triggers and items? I think is some difficult if you didn't know Zabbix from first versions.

      Thanks!

      Edit: Im cheking another items and "Server Template_Linux is unreachable" is showed as UNKNOWN too. Can I do some test on bash to solve or find the problem for this?
      Last edited by ittec; 17-03-2008, 17:52.

      Comment

      • ittec
        Member
        • Mar 2008
        • 73

        #4
        Unknown in docu

        UNKNOWN In this case, ZABBIX cannot evaluate trigger expression. This may happen because of several reasons:

        - server is unreachanble
        - trigger expression cannot be
        evaluated
        - trigger expression has been recently
        changed
        But server is reachanble

        Comment

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

          #5
          copy/paste your trigger here

          Comment

          • ittec
            Member
            • Mar 2008
            • 73

            #6
            Trigger setup

            Hi again

            Thanks for help Xs-, I'll start from creation of trigger.

            1) Login as Admin. Go to Trigger, Select Template Group, and Template Linux Host, now pick up "Create Trigger".

            Name: Check ping response
            Expression:{Template_Linux:icmpping.last(0)}=0
            Type: Information
            Status: Enabled

            Then I go to Monitoring > Triggers and "Check ping response" appears as "Unknown". I checked permissions on fping and are these;

            -rwx--x--T 1 root zabbix 29497 Mar 7 2007 /usr/sbin/fping

            Any idea?

            Edit: Before i created the icmping in Item section

            Description: icmpping
            Key: icmpping
            Interval: 1
            History: 90
            Trends: 365
            Type: Simple check
            Status: Active
            Applications:Network
            Last edited by ittec; 20-03-2008, 17:12.

            Comment

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

              #7
              A couple of things.
              - Permissions for fping. just 'su - zabbix' and try to run fping, if this works, its ok.
              - Item interval of 1 is a bit low i think (1 sec), i'd use a minimum of 30 secs.
              - Zabbix_server.conf you need to set a value of at least 1 for StartPingers and StartPollersUnreachable

              Comment

              • ittec
                Member
                • Mar 2008
                • 73

                #8
                glups

                - Permissions for fping. just 'su - zabbix' and try to run fping, if this works, its ok.
                Code:
                #[zabbix@47 /]$ fping
                #This program can only be run by root, or it must be setuid root.
                #[zabbix@47 /]$
                I find first trouble. Im going to try to repair it.

                Thanks!

                Comment

                • ittec
                  Member
                  • Mar 2008
                  • 73

                  #9
                  1. http://zabbix.com/forum/showthread.p...ighlight=fping

                  2. http://www.zabbix.com/forum/showthread.php?t=60

                  Im following the advices of X-Sec and these two links but unfortunately icmpping dont' works yet. When I create the item, Trigger appears like "Unknown". I did the chmod and chown as James Wells explain and then reboot the zabbix server. Any ideas?

                  Comment

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

                    #10
                    Did you get fping working for the user zabbix?
                    You must set the suid bit on root so zabbix can run it as root.

                    chown root /path/to/fping
                    chmod 4755 /path/to/fping

                    Comment

                    • technow0rker
                      Junior Member
                      • Apr 2006
                      • 26

                      #11
                      Originally posted by ittec
                      Hi again

                      [skipped]

                      Then I go to Monitoring > Triggers and "Check ping response" appears as "Unknown". I checked permissions on fping and are these;

                      -rwx--x--T 1 root zabbix 29497 Mar 7 2007 /usr/sbin/fping
                      ^^^^^^^^^
                      AFAIK Zabbix requires fping to be SUID root. Execute chmod u+s /usr/sbin/fping;chmod g+r /usr/sbin/fping.

                      Here are my fping permissions:
                      -rwsr-x--x 1 root adm 27687 Feb 15 2005 /usr/sbin/fping

                      (yes, I have +x for all users, but this is not required in general). And do not forget to define fping location in zabbix_server.conf file if it is not in default place (/usr/sbin).

                      [skipped]
                      Last edited by technow0rker; 28-03-2008, 12:26.

                      Comment

                      • ittec
                        Member
                        • Mar 2008
                        • 73

                        #12
                        Yeah, it worked

                        Thanks again X-Sec

                        Finally I logged as Zabbix

                        #su zabbix

                        and then I use fping and didn't see errors anymore. So is a step. Now Im going to test again the item and trigger because icmpping still not work! Appear las UNKNOWN

                        AFAIK Zabbix requires fping to be SUID root. Execute chmod u+s /usr/sbin/fping;chmod g+r /usr/sbin/fping.
                        I have some doubt about SUID bit. I need to find more information.

                        Thanks!
                        Last edited by ittec; 28-03-2008, 14:13.

                        Comment

                        • ittec
                          Member
                          • Mar 2008
                          • 73

                          #13
                          trying again

                          Hi again

                          Im trying to use icmpping with zabbix 1.4 but I have no luck One question, When I go to create "New Item", I select "Simple Check" value and then select "icmpping". But I don't know how value is ok to "Units" field. Any idea?

                          Thanks.

                          Comment

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

                            #14
                            icmpping has no need for a unit definition. Its just 1 or 0.
                            If you want ping response times you need icmppingsec (i think). A warning though: if the returned value is too low (e.g. your network is too fast), you will get 0 returned, so dont put any triggers on it being 0.

                            Comment

                            • vrtareg
                              Senior Member
                              • May 2006
                              • 293

                              #15
                              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

                              Comment

                              Working...