<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.34">
<TITLE>Check_http with size and regex conditions ignoring size check.</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">I want to check a web page, and check both for a regex and for a minimum size.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">However, it appears that the regex requirement overides the size. Eg. (names changes to protect the innocent)</FONT>
<BR><FONT SIZE=2 FACE="Arial">check_http (nagios-plugins 1.4.1) 1.81</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">aladen@host> check_http -H servername -p 8080 -u "uri" -r "REGEX CHECK" -m 60:100</FONT>
<BR><FONT SIZE=2 FACE="Arial">HTTP OK HTTP/1.1 200 OK - 0.420 second response time |time=0.419695s;;;0.000000 size=2405B;60;0;0</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">aladen@host> check_http -H servername -p 8080 -u "uri" -m 60:100</FONT>
<BR><FONT SIZE=2 FACE="Arial">HTTP WARNING: page size 2405 too large|size=2405B;60;0;0</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Is this a bug in check_http?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">-Andrew</FONT>
</P>
</BODY>
</HTML>