I’m using check_http for to check if a web site is live.
The problem is when the site is down, check_http returns OK because get the error page of tomcat as valid.
So, I thought to check also the min-max size of the web to validate between the real web page and the tomcat’s page.
This is the command I run:
As you can see, the size of the page is 197 bytes.
So, I’ve configured nagios to check between 170 and 210 bytes.
But I get a nagios warning saying “page is 723 bytes too large”.
So, I reconfigure nagios to check between (197+723=920) 890 and 960 bytes. Now Nagios returns an OK.
But togheter with the OK message returns the size of the page, and this is 723 bytes !
But when I run the commando on bash, I get this:
So, I don’t understand… Nagios says the size is 920 bytes and the plugin says 197 bytes…
What’s the problem here ??
Thank you for your help.