Is there any way to define Hosts from multiple hostgroups so certain contactgroups get a limited view of certain hosts (and their services) from several hostgroups but not all hosts from these hostgroups?
Example:
hostgroup: all-switches
switch1 (ping)
switch2 (ping)
switch3 (ping)
hostgroup: all-web-servers
web01 (ping, http)
web02 (ping, http)
web03 (ping, http)
hostgroup: all-routers
router1 (ping)
router2 (ping)
router3 (ping)
I would like a contact group to receive all notifications for only some of the hosts (and their services) such as "contactgroup1" would receive all host/service notifications for switch1, router1, and web01 but not anything else from these hostgroups.
I have tried making a new hostgroups and adding the existing hosts to them (example hostgroup: bldg1 contains switch1, router1, and web01) however i can't seem to find a good way to accomplish this without setting up separate nagios servers (or a very complex config with many duplicates) as I keep running into "host/service already defined" errors.
Is there another practical way to accomplish this without having hosts duplicated with different names with the same services defined? (If it's even possible)
I hope this has made since
I would like to find a way to do this without having to have the same host/service defined multiple time. (all running the same check)