[Pkg-nagios-devel] Bug#684477: nagios-plugins-basic: check_http bad output when "-s" text not found
Matija Nalis
mnalis-debianbug at axe.tomsoft.hr
Fri Aug 10 10:15:15 UTC 2012
Package: nagios-plugins-basic
Version: 1.4.15-3squeeze1
Severity: minor
when using check_http with "-s" parameter, if string is not matched, the
error message looks broken:
For example, running
/usr/lib/nagios/plugins/check_http -H www.tomsoft.hr -I www.tomsoft.hr -p 80 -u http://www.tomsoft.hr:80/ -s not_found_here
returns
HTTP CRITICAL: HTTP/1.1 200 OK - string 'not_found_here' not found on 'http://www.tomsoft.hr:80http://www.tomsoft.hr:80/' - 9778 bytes in 0.236 second response time |time=0.235591s;;;0.000000 size=9778B;;;0
while normal message should be like
HTTP CRITICAL: HTTP/1.1 200 OK - string 'not_found_here' not found on 'http://www.tomsoft.hr:80/' - 9778 bytes in 0.236 second response time |time=0.235591s;;;0.000000 size=9778B;;;0
-- System Information:
Debian Release: 6.0.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages nagios-plugins-basic depends on:
ii iputils-ping 3:20100418-3 Tools to test the reachability of
ii libc6 2.11.3-3 Embedded GNU C Library: Shared lib
ii libssl0.9.8 0.9.8o-4squeeze13 SSL shared libraries
ii procps 1:3.2.8-9squeeze1 /proc file system utilities
ii ucf 3.0025+nmu1 Update Configuration File: preserv
nagios-plugins-basic recommends no packages.
Versions of packages nagios-plugins-basic suggests:
ii nagios3 3.2.1-2 A host/service/network monitoring
-- no debconf information
More information about the Pkg-nagios-devel
mailing list