Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18467

fping interval detection breaks ICMP when IPv6 is disabled

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.0.4
    • Proxy (P), Server (S)
    • None
    • CentOS 7 x86_64

      The new detection of the minimum interval is breaking all pings (even IPv4) if IPv6 is disabled on the server/proxy. Here's an extract of the logs on my EL7 proxy, with DebugLevel=4

      oct. 08 08:39:22 adm zabbix_proxy[21669]: testing interval 1 using command "/usr/sbin/fping6 -c1 -t50 -i1 sw1.lapiole.org"
      oct. 08 08:39:22 adm zabbix_proxy[21669]: In zbx_popen() command:'/usr/sbin/fping6 -c1 -t50 -i1 sw1.lapiole.org'
      oct. 08 08:39:22 adm zabbix_proxy[21669]: End of zbx_popen():8
      oct. 08 08:39:22 adm zabbix_proxy[21683]: zbx_popen(): executing script
      oct. 08 08:39:22 adm zabbix_proxy[21669]: In zbx_waitpid()
      oct. 08 08:39:22 adm zabbix_proxy[21669]: zbx_waitpid() exited, status:4
      oct. 08 08:39:22 adm zabbix_proxy[21669]: End of zbx_waitpid():21683
      oct. 08 08:39:22 adm zabbix_proxy[21669]: testing interval 10 using command "/usr/sbin/fping6 -c1 -t50 -i10 sw1.lapiole.org"
      oct. 08 08:39:22 adm zabbix_proxy[21669]: In zbx_popen() command:'/usr/sbin/fping6 -c1 -t50 -i10 sw1.lapiole.org'
      oct. 08 08:39:22 adm zabbix_proxy[21669]: End of zbx_popen():8
      oct. 08 08:39:22 adm zabbix_proxy[21688]: zbx_popen(): executing script
      oct. 08 08:39:22 adm zabbix_proxy[21669]: In zbx_waitpid()
      oct. 08 08:39:22 adm zabbix_proxy[21669]: zbx_waitpid() exited, status:4
      oct. 08 08:39:22 adm zabbix_proxy[21669]: End of zbx_waitpid():21688
      oct. 08 08:39:22 adm zabbix_proxy[21669]: Cannot detect the minimum interval of /usr/sbin/fping6
      oct. 08 08:39:22 adm zabbix_proxy[21669]: End of zbx_ping():NOTSUPPORTED
      oct. 08 08:39:22 adm zabbix_proxy[21669]: In process_values()
      oct. 08 08:39:22 adm zabbix_proxy[21669]: host [sw1.lapiole.org] Cannot detect the minimum interval of /usr/sbin/fping6
      

      Then, no more pings are sent. Running the fping6 command manually fails, not because of privileges issue, but because IPv6 is completly disabled :

       

      [root@adm ~]# /usr/sbin/fping6 -c1 -t50 -i10 sw1.lapiole.org
       (null): can't create raw socket (must run as root?) : Address family not supported by protocol
      [root@adm ~]#

       

      To work arround this, I must add in my zabbix_proxy.conf :

      Fping6Location=/usr/sbin/fping

      This way, zabbix only tries to use the IPv4 variant, and pings works again

            dimir dimir
            dani Daniel Berteaud
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: