<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>It appears that the check_http plugin ignores 
the </FONT></SPAN><SPAN class=616024216-27102005><FONT face=Arial size=2> 
--string option </FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2>    when the http status code is 
4xx</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    
Normally if the string is not found, the plugin sets the service 
state</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>to critical, but if a 4xx status code is returned, the service 
state is</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>set to warning even if the string is not present.</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2></FONT></SPAN><SPAN 
class=616024216-27102005><FONT face=Arial size=2>    I suppose 
there may be times where this logic may be preferred, 
for</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>example </FONT></SPAN><SPAN class=616024216-27102005><FONT 
face=Arial size=2>a http 200 status code with different content would indicate 
</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    a 
likely </FONT></SPAN><SPAN class=616024216-27102005><FONT face=Arial 
size=2>defacement and is a critical problem where as a http 400 
</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    
status code </FONT></SPAN><SPAN class=616024216-27102005><FONT face=Arial 
size=2>would indicate a less serious service disruption or </FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    
configuration error</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>If people are actually using the above logic, it shouldn't be changed, 
but</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    in<FONT face=Arial 
size=2> my case it would be nice to add a option to always compare the 
string</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    
value </FONT></SPAN><SPAN class=616024216-27102005><FONT face=Arial size=2>and 
always treat the string not being found as a critical error.</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    
What I am doing is using Nagios and a few other tools to set up a 
"director"</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    
for a fault tolerant web </FONT></SPAN><SPAN class=616024216-27102005><FONT 
face=Arial size=2>farm. To me a warning is, the page look longer 
to</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>load than is desirable (as specified with the -w argument). A critical 
error is not</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>returning a page with the specified string (specified with the -s 
argument)</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>    
before the critical time (specified with the -c argument). Ideally, I 
would</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>like to write an event handler that wouldn't do anything about 
warnings</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial 
size=2>in a soft state, but that would stop sending traffic to a server if it 
was in</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005>    <FONT face=Arial size=2>a 
hard warning state or any type of critical state.</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>Thanks for the cool 
tools,</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>J.T. 
Moore</FONT></SPAN></DIV>
<DIV><SPAN class=616024216-27102005><FONT face=Arial size=2>International Auto 
Parts</FONT></SPAN></DIV></BODY></HTML>