check_http
Marc Powell
marc at ena.com
Fri Apr 14 16:58:50 CEST 2006
As with any standard plugin, 'check_http --help' will provide
information on the command line arguments that you can use.
Here are a couple of examples --
Get the default page for a passed host and verify that I see '/html' -
Service definition check_command verify_http!www.example.foo
define command{
command_name verify_http
command_line $USER1$/check_http -H $ARG1$ -I $HOSTADDRESS$
-s \/html
}
Get a variable page on a passed host and search for variable text -
Service definition check_command
check_http_url!www.example.foo!/coolpage.html!searchword
$ARG1$
define command{
command_name check_http_url
command_line $USER1$/check_http -H $ARG1$ -I $HOSTADDRESS$ -u
$ARG2$ -wt 20 -ct 30 -to 35 -s $ARG3$
}
Hth,
--
Marc
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Morris, Patrick
> Sent: Friday, April 14, 2006 3:26 AM
> To: carlo; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_http
>
> Have you looked at the example config files? It's all there.
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of carlo
> Sent: Friday, April 14, 2006 1:18 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_http
>
> hello
> What can I do for using check_http plugin?
> What the correct configuration is in the checkcommand.cfg and
> services.cfg files?
> I just tried many times ...
> Thanks to all
> Carlo
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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