Same service, multiple machines w/ individual notification

Paulus, Jake jpaulus at sourceinterlink.com
Wed Nov 26 14:46:47 CET 2008


> I have a particular service that I want to monitor 
>across the board but if it alarms on server 1,2,or 3 I want it to send
a 
>notification to a different list than if server 4,5, or 6 alarms. Due
to 
>several reasons (such as reporting the same metric across all servers, 
>regardless of who supports them) I don't want to have different service

>names between servers.

Tim:
You can define the same service on different hostgroups without a
problem...just make sure the hostgroups' members don't overlap.
-Jake

define hostgroup{
	hostgroup_name	group1
	members		host1,host2,host3
	...
}
define hostgroup{
	hostgroup_name	group2
	members		host4,host5,host6
	...
}

define service{
	service_description	Disk-Space
	hostgroup_name		group1
	contact_groups		contact-group-1
	...
}
define service{
	service_description	Disk-Space
	hostgroup_name		group2
	contact_groups		contact-group-2
	...
}

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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