[Nagiosplug-devel] [ nagiosplug-Patches-630031 ] add --reverse option to check_http

noreply at sourceforge.net noreply at sourceforge.net
Mon Oct 28 11:32:05 CET 2002


Patches item #630031, was opened at 2002-10-28 19:53
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=630031&group_id=29880

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Eric Bollengier (ricozz)
Assigned to: Nobody/Anonymous (nobody)
Summary: add --reverse option to check_http

Initial Comment:
It seems to be usefull to reverse -r|-R|-s switch result.

For example, i have a monitor.php script which test a
webserver
(connection to a database, php engine on etc..) and
return tests OK if it's
good or ERR if doesn't

I want to use 
./check_http -I somehost --reverse -r '[A-Z]+ : ERR' -u
/monitor.php -v

Page is 424 characters
STATUS: HTTP/1.1 200 OK
**** HEADER ****
Date: Sun, 27 Oct 2002 10:58:59 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.2.2
X-Powered-By: PHP/4.2.2
Connection: close
Content-Type: text/plain; charset=iso-8859-1
**** CONTENT ****
BASEC : ERR
==>2002: Can't connect to local MySQL server through
socket...
BASES : ERR
==>2002: Can't connect to local MySQL server through
socket ...
PHP : OK

HTTP CRITICAL: pattern found

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=630031&group_id=29880




More information about the Devel mailing list