check_http
Marc Powell
marc at ena.com
Tue Oct 9 14:40:06 CEST 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of alexus
> Sent: Monday, October 08, 2007 9:55 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_http
>
> how can i create a command/template using check_http and as paramert1
> pass virtual host (website address)
>
> sounds too easy?
Yes ;)
> here is the "big" problem...
>
> i want to be able to check several websites that resides on 1 IP, so
> i'm going be using same template,check_command to query multiple
Not so much of a problem. You'll want to use the -I and -H parameters to
check_http and pass the hostname from the service definition as an
argument --
define command{
command_name http_vhost
Command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ <your
other params>
}
define host{
host_name web_server
address 192.168.1.2
...
}
define service{
host_name webserver
service_description web site 1
check_command http_vhost!www.site1.example
...
}
define service{
define service{
host_name webserver
service_description web site 2
check_command http_vhost!www.site2.example
...
}
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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