Ad Widget

Collapse

fping6 error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ItTech
    Junior Member
    • Jun 2014
    • 3

    #1

    fping6 error

    Hello,
    I'm new in Zabbix, and I have experienced an error that drives me crazy.
    I've tried both Hyper-V and VmWare virtual machines, but I always get the same error.
    I need to check some computer and server using the ICMP template (a simple ping), I can't install an agent on the clients at this time.
    But in the "Triggers" page of my client I always get this error "fping failed: "/usr/sbin/fping6: can't create raw socket (must run as root?) : Operation not permitted"

    I cannot understand what should I do, can you help me?

    Thank you
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    What you should do, is actually read the documentation



    5.3 ICMP pings

    Zabbix uses external utility fping for processing of ICMP pings.

    The utility is not part of Zabbix distribution and has to be additionally installed. If the utility is missing, has wrong permissions or its location does not match the location set in the Zabbix server configuration file ('FpingLocation' parameter), ICMP pings (icmpping, icmppingloss, icmppingsec) will not be processed.

    fping must be executable by the user Zabbix daemons run as and setuid root. Run these commands as user root in order to set up correct permissions:

    shell> chown root:zabbix /usr/sbin/fping
    shell> chmod 4710 /usr/sbin/fping
    Please let us know if this fixes your issue...

    Comment

    • ItTech
      Junior Member
      • Jun 2014
      • 3

      #3
      Hello,
      I've tried the solution you quoted, but it didn't works, I still get the same error.
      I've also tried to run the commands for "/usr/sbin/fping6".

      Is it possible to run the zabbix service as "root" user, as the message says?

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Does yours look like this?

        Code:
        # ls -l /usr/sbin/fping
        -rws--x---. 1 root zabbix 37079 Nov 10  2010 /usr/sbin/fping

        Comment

        • ItTech
          Junior Member
          • Jun 2014
          • 3

          #5
          Hi!

          Here's the output of the command "ls -l /usr/sbin/fping"

          -rwxrwxrwx 1 root zabbix 31400 Jan 31 2013 /usr/sbin/fping

          The command "ls -l /usr/sbin/fping6" give me the same output.

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #6
            Take a look on article describes "sticky bit permissions"

            And then compare the output of your command
            Code:
            -rw[B]x[/B]rwxrwx 1 root zabbix 31400 Jan 31 2013 /usr/sbin/fping
            and the output from tchjts1
            Code:
            -rw[B]s[/B]--x---. 1 root zabbix 37079 Nov 10  2010 /usr/sbin/fping
            Then read again the instruction about command
            Code:
            chmod 4710 /usr/sbin/fping
            Tell us how it works.
            Sincerely yours,
            Aleksey

            Comment

            • whizzy42
              Junior Member
              • Oct 2014
              • 1

              #7
              Fping 6

              The only way I got it to work on the 2.2 appliance was by running the chmod commands on /usr/sbin/fping6

              I'd already tried the:
              chown root:zabbix /usr/sbin/fping
              chmod 4710 /usr/sbin/fping

              and even after a reboot the ICMP pings still threw up an error on the console.

              Ran again on the fping6 and everything then started to work

              Might help somebody else.

              Comment

              • rafael.macedo2
                Junior Member
                • Nov 2014
                • 1

                #8
                Fping

                Hi,

                I have the same problem in zabbix 2.4 appliance with opensuse, and the command work for me:

                chown root:zabbixs /usr/sbin/fping
                chmod 4710 /usr/sbin/fping

                Note the group of zabbix server is zabbixs.

                Comment

                • rferreira
                  Junior Member
                  • Jan 2012
                  • 6

                  #9
                  Originally posted by rafael.macedo2
                  Hi,

                  I have the same problem in zabbix 2.4 appliance with opensuse, and the command work for me:

                  chown root:zabbixs /usr/sbin/fping
                  chmod 4710 /usr/sbin/fping

                  Note the group of zabbix server is zabbixs.
                  Correct answer!!

                  Why the appliance images are not coming with this fixed? It's only needed to add these commands to suse studio startup script. The download page still refers to appliance images as "pre-configured for trouble free deployment".

                  Thank-you anyway!

                  Comment

                  • Husabuse
                    Junior Member
                    • Aug 2015
                    • 18

                    #10
                    Originally posted by rafael.macedo2
                    Hi,

                    I have the same problem in zabbix 2.4 appliance with opensuse, and the command work for me:

                    chown root:zabbixs /usr/sbin/fping
                    chmod 4710 /usr/sbin/fping

                    Note the group of zabbix server is zabbixs.
                    MUCH appreciated, I simply cannot believe how this can be let through on the prepackaged appliances.

                    This is the core issue why I constantly just get fed up with fiddly linux software, I just haven't got the time to deal with it.

                    Thanks mate, now I can use my icmp template.

                    Comment

                    Working...