1 webserver with multiple web sites

Roy Kidder nagios at jehster.net
Wed Aug 31 16:47:36 CEST 2005


Someone may have a better suggestion, but the way I handeled this was to
write a script called check_http_virtual which accepted an argument of the
virtual host to check and simply passed that on to check_http using that
the as -H argument.

Then, assuming your host in Nagios is called 'web1' and you have two
virtuals called 'virtual1' and 'virtual2' you can create a service for
web1 which uses check_http_virtual to check virtual1 and virtual2
(check_http_virtual!virtual1 and check_http_virtual!virtual2,
respectively).

Hope that helps,
Roy


FM said:
> Hello,
> I just installed nagios 2.x and I'm using doc + google to understand it.
> The doc is one of the hardest I read but I'm learning :-)
> My question :
> On web server I have several web site (virtual host and multiple IP
> address).
> Is-it possible to create 1 host : web server
> and check all website with this webserver ?
>
> For now, I created 2 host per website. Is there a better solution ?
>
> PS : this software is very very impressive !!!!
>
> --------
> FM
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> 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
>
>




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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