Your message dated Mon, 13 Aug 2012 11:56:27 +0200
with message-id <[email protected]>
and subject line Re: [Pkg-nagios-devel] Bug#684477: nagios-plugins-basic:
check_http bad output when "-s" text not found
has caused the Debian Bug report #684477,
regarding nagios-plugins-basic: check_http bad output when "-s" text not found
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
684477: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684477
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Matija,
thanks for taking time reporting this.
On 08/10/2012 12:15 PM, Matija Nalis wrote:
> 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
Looking into the --help output indicated, that "-u" is expecting a
path and not a complete URL.
-u, --url=PATH
URL to GET or POST (default: /)
So you getting the URL twice when using "-s" as in this case the
complete URL (Hostname [-H] and Path [-u]) is printed.
Cheers, Jan.
- --
Never write mail to <[email protected]>, you have been warned!
- -----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d-- s+: a C+++ UL++++ P+ L+++ E--- W+++ N+++ o++ K++ w--- O M V-
PS PE Y++
PGP++ t-- 5 X R tv- b+ DI D+ G++ e++ h---- r+++ y++++
- ------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iD8DBQFQKM9L9u6Dud+QFyQRAmCCAJ4iJ7tSs8YY625yRiRY9KXFBgyWdwCdEhAV
4Uhx4Xstq0PqJucIxS6TiAs=
=nZNj
-----END PGP SIGNATURE-----
--- End Message ---