check_http combine -e and -s

Miles O'Neal meo at intrinsity.com
Sat Jul 29 02:49:40 CEST 2006


Gary Danko said...
|
|Can you use both -e and -s with check_http?

Yes.

But really, you'll typically find out faster
if you just try it.  You can't hurt it.  Just
run test commands from the command line.

I did the following:

/usr/lib64/nagios/plugins/check_http -H aaa.bbb.ccc.ddd -e HTTP/1 -s index.html
/usr/lib64/nagios/plugins/check_http -H aaa.bbb.ccc.ddd -e HTTP/1 -s fred
/usr/lib64/nagios/plugins/check_http -H aaa.bbb.ccc.ddd -e HTTP/0 -s fred

The first one reported all well as expected.
The next reported bad content.
The last reported bad header.

-Miles

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list