Warnings using check_http plugin



I’m using check_http plugin to monitor some web pages, searching by a word inside them (Nagios 2.0 b2).

The sintaxis I’m using is:

check_http -H $HOSTADDRESS$ -u $ARG1$ -s $ARG2$

So, running the command manually, I get this:

./check_http -H www.novoart.com -u /quienes.htm -s fundada
HTTP OK HTTP/1.0 200 OK - 0.860 second response time |time=0.860124s;;;0.000000 size=4099B;;;0

Instead, Nagios gives always this Warning:

HTTP WARNING: HTTP/1.0 404 Not Found

You can check the web page here: www.novoart.com/quienes.htm

So, why Nagios is give me this error, and how to fix it ?

Thank you for the help !


because $HOSTADDRESS$ get’s passed ads the hosts IP.

use -H $ARG3$ and add the new apranmeter to the services command :slight_smile:



Sorry, I don’t understand your english phrase.

Why might I use another argument ??

Thank you !


Puoi rispondermi in italiano, grazie :slight_smile:




vuoi dire ussare questa sintaxis ?:

check_http -I ip_of_my_ISP’s_server -H www.novoart.com -u /quienes.htm -s fundada

Grazie !
Edited Wed Jun 15 2005, 08:16AM ]


This should work, anyway you don’t need the IP address. (except if you don’t have DNS resolution but you should be able to use the hosts file)

Ciao, Luca