Different check_http?

Yolanda Santos iamyolanda at gmail.com
Fri Jan 26 13:11:55 CET 2007


Hi,

I have Nagios 2.5 with plugins 1.4.5
I have an url and it can happend 2 possibilities:

1º If it's OK, it responds a binary file

2º If it's ERROR, it responds a html page, wich tell us that 'The service is
not available'

I want to check this, but... how can I do it?
How can I check if a determinated string is in the binary file?
Or.... can I change the check_http for giving me an ERROR when find an
string?

Normaly, if you check an url, and a string to expect in the content, if you
find it, you have an OK answer.
I want the opposite. If I find a string in the content, I want an ERROR
answer...
Is this possible?

Thanks.
Yolanda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070126/10290ad1/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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