Ad Widget

Collapse

ipv6 ping problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StZ
    Junior Member
    Zabbix Certified Specialist
    • Jan 2011
    • 2

    #1

    ipv6 ping problem

    Hi,

    after read and read and google and more google about it , i cant get the ipv6 pings working in zabbix... my config is the following :

    - Zabbix 1.8.5
    - fping and fping6 configured with -I option available.
    - dualstack config, ipv4 and ipv6 configured on eth0
    - ipv4 and ipv6 addresses configured as LISTEN IP on zabbix_server.conf

    ping6 and fping6 works ok from the command line but with zabbix i alway get "not supported" using a domain name or the ipv6 address for the host, using icmpping[IPV6 ADDRESS] i get the same result.

    and that is my big #fail with zabbix, and i really need to do ping to ipv6 adress...

    Some ideas???

    Help??

    Please v,v


    Thanks to all
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    Did you set the following parameter in your zabbix_server.conf ?

    Code:
    ### Option: Fping6Location
    #       Location of fping6.
    #       Make sure that fping6 binary has root ownership and SUID flag set.
    #       Make empty if your fping utility is capable to process IPv6 addresses.
    #
    # Mandatory: no
    # Default:
    # Fping6Location=/usr/sbin/fping6

    Comment

    • StZ
      Junior Member
      Zabbix Certified Specialist
      • Jan 2011
      • 2

      #3
      Hi,

      Yes, the fping and fping6 location is present in my zabbix_server.conf:

      Code:
      FpingLocation=/usr/local/sbin/fping
      
      Fping6Location=/usr/local/sbin/fping6
      and

      Code:
      [root@zabbix1 sbin]# ls -al
      total 3156
      drwxr-xr-x  2 root root      4096 Jul 19 00:44 .
      drwxr-xr-x 14 root root      4096 Jul 14 16:56 ..
      -rws--s---  1 root zabbix   61765 Jul 14 16:56 fping
      -rws--s---  1 root zabbix   61276 Jul 14 16:56 fping6

      ps axu

      Code:
      [root@zabbix1 sbin]# ps axu | grep fping
      zabbix   24724  0.0  0.0  63856  1076 ?        SN   08:34   0:00 sh -c /usr/local/sbin/fping -q -C3 2>&1 </tmp/zabbix_server_19864.pinger;/usr/local/sbin/fping6 -q -C3 2>&1 </tmp/zabbix_server_19864.pinger;
      zabbix   24725  0.0  0.0   5916   596 ?        SN   08:34   0:00 /usr/local/sbin/fping -q -C3
      zabbix   24727  0.0  0.0  63856  1076 ?        SN   08:34   0:00 sh -c /usr/local/sbin/fping -q -C3 2>&1 </tmp/zabbix_server_19862.pinger;/usr/local/sbin/fping6 -q -C3 2>&1 </tmp/zabbix_server_19862.pinger;
      zabbix   24728  0.0  0.0   5916   592 ?        SN   08:34   0:00 /usr/local/sbin/fping -q -C3
      zabbix   24729  0.0  0.0  63856  1076 ?        SN   08:34   0:00 sh -c /usr/local/sbin/fping -q -C3 2>&1 </tmp/zabbix_server_19861.pinger;/usr/local/sbin/fping6 -q -C3 2>&1 </tmp/zabbix_server_19861.pinger;
      zabbix   24730  0.0  0.0   5916   596 ?        SN   08:34   0:00 /usr/local/sbin/fping -q -C3
      Thanks for your help

      Comment

      • jmb
        Junior Member
        • Jul 2007
        • 14

        #4
        Possible workaround

        The problem with fping/fping6 ist that they are fed with the same temporary file created by zabbix. Example:

        sh -c /usr/sbin/fping -q -C3 2>&1 </tmp/zabbix_server_9647.pinger; /usr/sbin/fping6 -q -C3 2>&1 </tmp/zabbix_server_9647.pinger

        If the file contains IPv6 addresses, fping6 is fine, but if if the file contains IPv4 addresses or FQDN that do not resolve to IPv6 addresses, fping6 bails out.

        My workaround is to have a wrapper around fping6 that filter IPv4 addresses.
        I can now successfully monitor hosts that have IPv6 addresses :-)

        In zabbix_server.conf, you have to specify the path to the script:

        Fping6Location=/path/to/fping6.sh

        and restart zabbix server

        Hope this helps

        jm
        Attached Files

        Comment

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

          #5
          for the record, this problem tracked at https://support.zabbix.com/browse/ZBX-7209
          Zabbix 3.0 Network Monitoring book

          Comment

          Working...