best way to check one web server w/many vhosts
Daniel Finn
dfinn at twelvehorses.com
Thu Mar 4 01:18:41 CET 2004
I'm trying to do something like this and wondering how to do it:
define service{
use generic-service
host_name vhost1.com,vhost2.com,vhost3.com,vhost4.com,vhost5.com,vhost6.com,vhost7.com,vhost8.com,vhost9.com,vhost10.com
service_description Vhost-HTTP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups linux-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_http!192.168.0.1
}
so multiple vhosts on one IP, I would like to check the IP to ensure it's
answering for each vhost. Unfortunately when I tried to do it like this
nagios complained that :
Error: Could not find host 'vhost1.com'
Error: Could not expand hostgroups and/or hosts specified in service
I would really like to not have to add a host entry for each one of these
hosts. There are only 10 in the example but in my real environment there
are hundreds. What's the best way to do this?
Thanks
Dan Finn
Unix System Administrator
Twelve Horses North America
Cell : 775.233.1774
Desk : 775.337.3336
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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