Excluding hosts from a service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
piotr
Posts: 6
Joined: Tue May 11, 2010 12:52 am

Excluding hosts from a service

Post by piotr »

Hello,
A have created a service which checks is there any problems with the raid on Solaris hosts. I added this service to do hosts group of 26 Solaris servers. However there are 5 hosts in the group that don't have raid . Is it possible to exclude those 5 hosts, by creatng hostgroup named servers_without_raid and adding an exception so that the test runs only on those hosts that are in group solaris_servers and aren't in group servers_without_raid. Is possible to do it using www console and how??

Thank you for reply
Piotr
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Excluding hosts from a service

Post by mmestnik »

There is limited support for excludes, it's new to Nagios though(started in version 3.0) and I couldn't say if it's vary usable with NagiosXI.

One thing you would regret later is that the web interface dose not support excludes. Solution: Have one hostgroup for Solaris servers and have another host group for Solaris with RAID.

One issue we have had with using hostgroups is granting access to sub members of the hostgroup, though this will only effect the minority.
nhand42
Posts: 2
Joined: Tue Mar 01, 2011 8:43 pm

Re: Excluding hosts from a service

Post by nhand42 »

mmestnik wrote:There is limited support for excludes, it's new to Nagios though(started in version 3.0) and I couldn't say if it's vary usable with NagiosXI.

One thing you would regret later is that the web interface dose not support excludes. Solution: Have one hostgroup for Solaris servers and have another host group for Solaris with RAID.
Could I add another vote for "exclude host" in the Nagios XI interface.

I have hosts selected within hostgroups. Each service then selects hostgroups. This normally works except for when I have hosts that need special treatment. e.g. the service runs on the majority of hosts, but not on about two dozen hosts. Without straying from the Nagios XI interface the only solutions I have come up with are:

1) Use the Free Variable Definitions to define "host_name = !badhost". But this has a character limit so I can't exclude many hosts (about 10 at most). Not workable.

2) Define multiple hostgroups, with multiple services, and make sure the two don't overlap. Unfortunately this makes a mockery of the Hostgroup Overview page. The problem is the model and view both use the same hostgroups, so to fix the model I have to break the view. Not workable.

3) Define multiple services and manually select hosts within the services, rather than selecting hostgroups within the services. This is time-consuming (I am monitoring several 100 hosts). Barely workable; it's much more difficult than selecting hostgroups.

I would like, within the Service definition, to include several hostgroups and then exclude a few dozen hosts. The "+, null, standard" buttons below the Hosts list are almost there. I just need "+, !, null, standard" so I can select "!" and then exclude a small number of hosts.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Excluding hosts from a service

Post by mguthrie »

I would post this as a feature request on our tracker.

http://tracker.nagios.com
Locked