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
Excluding hosts from a service
Re: Excluding hosts from a service
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.
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.
Re: Excluding hosts from a service
Could I add another vote for "exclude host" in the Nagios XI interface.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.
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.