Ad Widget

Collapse

Another fping problem...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • McCall
    Junior Member
    • Oct 2007
    • 10

    #1

    Another fping problem...

    Hi Folks,

    I have looked around the forums and found a few problems with people getting fping to return data, I have followed everything I can find but still can't seem to get it working!

    Fping location is /usr/bin/fping, but there is also a symlink in /usr/sbin/fping
    I have changed to /usr/bin/fping location in /etc/zabbix_server.conf
    I have run the following on the binary:

    chown root:zabbix /usr/bin/fping
    chmod 710 /usr/bin/fping
    chmod ug+s /usr/bin/fping

    The version of fping I am using supports the -S option.

    I still get a flat "0" data line to a host I know is reachable from my command line.

    Can anyone help please?
  • McCall
    Junior Member
    • Oct 2007
    • 10

    #2
    I am still having this problem... does anyone have any clues for me please?

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      chmod 4750
      Zabbix 3.0 Network Monitoring book

      Comment

      • cgroothius
        Member
        • Sep 2008
        • 37

        #4
        I am also having the exact same issue...get a 0 flat line to a host that I am able to ping from the command line...i have configured per the manual and have also chmod per this post with the same results..anyone have any other suggestions r was this post ever resolved??
        Thaks
        Colin

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          did you try 'su - zabbix' and running the exact sudo line for fping launching ? any errors displayed that way ?
          Zabbix 3.0 Network Monitoring book

          Comment

          • cgroothius
            Member
            • Sep 2008
            • 37

            #6
            what might that "exact sudo line" be?

            thanks
            C.

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              ahh, i mixed up with other commands, just plain fping line
              as you have a different system, it might be useful to list all things you have checked :

              1. fping location in zabbix_server.conf (including server restarting after config change);
              2. fping permissions;
              3. whether you can use fping as 'su - zabbix';
              4. whether you have source address set for zabbix server and whether your copy of fping supports -S flag in that case.

              and maybe something else i have forgotten
              Zabbix 3.0 Network Monitoring book

              Comment

              • cgroothius
                Member
                • Sep 2008
                • 37

                #8
                location of fping.

                ^[[A[zabbix@zabbix etc]$ locate fping
                /usr/sbin/fping
                /usr/sbin/fping6
                /usr/share/doc/fping-2.4b2
                /usr/share/doc/fping-2.4b2/COPYING
                /usr/share/doc/fping-2.4b2/ChangeLog
                /usr/share/doc/fping-2.4b2/README
                /usr/share/man/man8/fping.8.gz
                [zabbix@zabbix etc]$


                -------

                Is source IP set in zabbix_server.conf. No.

                # Listen port for trapper. Default port number is 10051. This parameter
                # must be between 1024 and 32767

                ListenPort=10051

                # Source IP address for outgouing connections
                #SourceIP=

                --------------------
                Does fping support -S? No

                [zabbix@zabbix etc]$ fping -S 192.168.20.20
                fping: invalid option -- 'S'

                but you imply its irrelevant as sourceip is not set in zabbix_server.conf right??

                --------------------
                I carried out these instructions.

                chown root:zabbix /usr/sbin/fping
                chmod 710 /usr/sbin/fping
                chmod ug+s /usr/sbin/fping

                stop/start. No Change
                ------
                chmod 4750 /usr/sbin/fping

                stop/start. No Change
                ------
                Can I run as zabbix user...yep

                [zabbix@zabbix etc]$ fping 192.168.20.20
                192.168.20.20 is alive

                Comment

                • cgroothius
                  Member
                  • Sep 2008
                  • 37

                  #9
                  Version of fping is

                  Package fping-2.4b2-8.fc9.i386 already installed and latest version
                  Nothing to do
                  [root@zabbix sbin]#

                  C.

                  Comment

                  • richlv
                    Senior Member
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Oct 2005
                    • 3112

                    #10
                    at a quick glance, it seems ok.
                    have you tried setting zabbix server debug to 4 and observing the logfile when fping check fails ?
                    Zabbix 3.0 Network Monitoring book

                    Comment

                    • cgroothius
                      Member
                      • Sep 2008
                      • 37

                      #11
                      I have not...I'm new to the app but I sure will.

                      Thanks (again)

                      Colin.

                      Comment

                      • cgroothius
                        Member
                        • Sep 2008
                        • 37

                        #12
                        OK I set debug=4 in zabbix_server.conf.

                        I still see no entries for that host in the log. Am I missing something? The manual states that all simple checks accept 2 parameters. I had NO parameters appended to my icmppingsec . WhenI added per the manual, then I got the following in the log.

                        3801:20090303:095858 Too many parameters in [icmppingsec,192.168.20.20,0]
                        3801:20090303:095858 Parameter [icmppingsec,192.168.20.20,0] is not supported by agent on host [MOL DB] Old status [0]

                        Which is something at least :O)

                        So I guess I have 2 outstanding questions. Does the simple check icmppingsec need parameters and if not how do we change the manual to reflect this?


                        Lastly, I read in the forums about setting "the port" to 0 for such simple checks. Is this at the host level where we would usually have port 10050 for agent monitored hosts?

                        Regardles of all of these thhings I have tried I STILL cannot return a value.

                        Thanks.
                        Again.
                        Colin.
                        Last edited by cgroothius; 03-03-2009, 17:25.

                        Comment

                        • richlv
                          Senior Member
                          Zabbix Certified Trainer
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Oct 2005
                          • 3112

                          #13
                          not sure about the parameters. could you provide full item configuration then ?
                          Zabbix 3.0 Network Monitoring book

                          Comment

                          • cgroothius
                            Member
                            • Sep 2008
                            • 37

                            #14
                            Hope this is right...
                            Attached Files

                            Comment

                            • richlv
                              Senior Member
                              Zabbix Certified Trainer
                              Zabbix Certified SpecialistZabbix Certified Professional
                              • Oct 2005
                              • 3112

                              #15
                              try setting type to numeric (float). and, of course, increasing period - 5 seconds is damn often, you'll overload the server soon
                              Zabbix 3.0 Network Monitoring book

                              Comment

                              Working...