how do you monitor virtual http hosts?
Ivan Fetch
ifetch at du.edu
Mon Oct 8 05:48:52 CEST 2007
HI Alex,
On Sun, 7 Oct 2007, alex wrote:
> hi,
>
> how do you monitor virtual http hosts where several websites may share
> the same ip? Thx
>
IF you specify a fully qualified host name to the -H argument of the
check_http plugin, those host headers will be sent as part of the HTTP get
request. I have used this for multiple (virtual) hosts on the same IP
address.
For testing, you can use the -v option to check_http to see the HTML in
the page body which the plugin receives during the check. For example:
check_http -H host1.site.com -v
check_http -H host2.site.com -v
SO, use the host name of the web site as the "Address" in your nagios
config, and your checks will differentiate virtual hosts.
Thanks,
Ivan.
-------------------------------------------------------------------------
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