The nagios plugin check_dhcp dies with a segfault on some (not all!) systems. Mar 5 15:20:45 lilith kernel: pid 8543 (check_dhcp), uid 0: exited on signal 11 This seems to be an off-by-one in the command line parser. Note that this cannot be reproduced by running check_dhcp directly from the command line, it only happens when run by a nagios worker. --- check_dhcp.c.orig 2015-03-05 15:25:55.000000000 +0000 +++ check_dhcp.c 2015-03-05 15:26:33.000000000 +0000 @@ -1185,7 +1185,7 @@ } } - return i; + return i+1; }
committed to both nagios-plugins and monitoring-plugins
A commit references this bug: Author: mat Date: Tue Mar 10 11:39:19 UTC 2015 New revision: 380908 URL: https://svnweb.freebsd.org/changeset/ports/380908 Log: Fix a segfault in check_dhcp. PR: 198318 Submitted by: Ian Pallfreeman Sponsored by: Absolight Changes: head/net-mgmt/monitoring-plugins/Makefile head/net-mgmt/monitoring-plugins/files/patch-plugins-root_check__dhcp.c head/net-mgmt/nagios-plugins/Makefile head/net-mgmt/nagios-plugins/files/patch-plugins-root_check__dhcp.c