[nagiosplug] Fix check_ping where output of ping6 when ...
"Nagios Plugin Development" <[email protected]> Sun, 24 Jun 2012 23:40:11 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: c69890a4b4e3b303ae82cc7eec773486e08c80bb Author: Jan Wagner <[email protected]> Date: Tue Apr 17 11:46:16 2012 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=c69890a Fix check_ping where output of ping6 when unreachable (Debian #662638) --- NEWS | 3 ++- plugins/check_ping.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/NEWS b/NEWS index ef6548a..1234178 100644 --- a/NEWS +++ b/NEWS @@ -14,12 +14,13 @@ This file documents the major additions and syntax changes between releases. FIXES Fix check_disk free space calculation if blocksizes differ within a disk group (Bekar - #2973603) - check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696) + check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly (Debian #601696) Make check_snmp work more like v1.4.14 with regard to using special values (Timeticks, STRING) as numeric thresholds Fix check_ldap overriding the port when --ssl was specified after -p Fix check_procs where regex input of '|' would get displayed in output - now replaced with ',' Fix segfault in check_host when hostname returns multiple IP addresses (Sebastian Harl) Fix check_smtp and check_tcp where duplicate messages were displayed for certificate errors + Fix check_ping where output of ping6 when unreachable (Debian #662638) 1.4.15 27th July 2010 ENHANCEMENTS diff --git a/plugins/check_ping.c b/plugins/check_ping.c index ecdd618..9f9dcab 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -533,6 +533,8 @@ error_scan (char buf[MAX_INPUT_BUFFER], const char *addr) die (STATE_CRITICAL, _("CRITICAL - Host not found (%s)"), addr); else if (strstr (buf, "Time to live exceeded")) die (STATE_CRITICAL, _("CRITICAL - Time to live exceeded (%s)"), addr); + else if (strstr (buf, "Destination unreachable: ")) + die (STATE_CRITICAL, _("CRITICAL - DestinationUnreachable (%s)"), addr); if (strstr (buf, "(DUP!)") || strstr (buf, "DUPLICATES FOUND")) { if (warn_text == NULL) ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/