Q: How to exclude a host from a service that is in a hostgrp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Q: How to exclude a host from a service that is in a hostgrp

Post by jrmartin »

Hello,
Nagios R1.7 prebuilt VM.

I have a service defined that I have applied to a hostgroup and it is working properly.

However, there are a few hosts that are in the hostgroup that I need to exclude from the service check.

Is it possible to exclude a host from a service check that has been defined in a hostgroup?

I read you can !hostname in the services .cfg file, but I checked mine and it states its autogenerated by QL and will be overwritten.

Is this possible in XI?
Thanks,
Jeff
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Q: How to exclude a host from a service that is in a hos

Post by mguthrie »

Unfortunately I don't think it is at the moment. I came across this issue on an import in that the CCM just treated '!hostname' as a new host instead of an exclusion. It could be done by manually maintaining a config in the /usr/local/nagios/etc/static directory. The files in this directory are not managed by the Core Config Manager and can be manually edited.
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: Q: How to exclude a host from a service that is in a hos

Post by jrmartin »

okay, thanks for the information.
Jdawg2002
Posts: 16
Joined: Mon May 14, 2012 1:31 pm

Re: Q: How to exclude a host from a service that is in a hos

Post by Jdawg2002 »

Is this possible yet in Nagios XI? I need to exclude several hosts from a service that are in a hostgroup assigned to that service. This is possible in the NagioSQL gui and also in Nagios core files by adding a "!" before the name in the service config definition.

Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Q: How to exclude a host from a service that is in a hos

Post by scottwilkerson »

This is not possible at this time without doing what mguthrie mentioned above
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked