Compare HTTP Page to Saved Copy

Hari Sekhon hpsekhon at googlemail.com
Wed Sep 20 19:15:05 CEST 2006


Max Clark wrote:
> Hi all,
>
> One one of our servers we are serving a custom 404 error page from the
> application code itself - what's happened is when the page breaks our
> nagios monitor does not see the error because the error page is being
> served quickly and properly.
>
> Is it possible to compare the results of a page with the previously
> queried page? Or would it be possible to look for a specific string
> and alert if the string is present?
>
> Thanks in advance,
> Max
>
>   
try check_http with the -s option and specify that the page fetch must 
have a certain string or the test will fail.

-h

-- 
Hari Sekhon


-------------------------------------------------------------------------
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