[Pkg-nagios-devel] Bug#751866: check_fping don't work with IPv6 address

Nicolas DEFFAYET nicolas at deffayet.com
Tue Jun 17 10:33:49 UTC 2014


Package: nagios-plugins
Version: 1.5-3
Severity: normal


Issue
-----

# /usr/lib/nagios/plugins/check_fping -6 -H ::1
FPING UNKNOW - ::1 not found


Where is the bug ?
------------------
>From check_fping.c
---
#ifdef PATH_TO_FPING6
  if (address_family == AF_INET6)
    fping_prog = strdup(PATH_TO_FPING6);
  else
    fping_prog = strdup(PATH_TO_FPING);
#else
  fping_prog = strdup(PATH_TO_FPING);
#endif
---
If PATH_TO_FPING6 is not defined its fail to fping.


How fix the issue ?
-------------------

Rebuild nagios-plugins package with --with-fping6-command.
This will define PATH_TO_FPING6 and so check_fping will call fping6
instead of fping for IPv6 address.


-- 
Nicolas DEFFAYET



More information about the Pkg-nagios-devel mailing list