Page 1 of 1
Block Inherited Service Checks On A Host
Posted: Tue Feb 26, 2013 2:25 pm
by tdawson
We are using Nagios XI 2012R1.6 On RHEL 6 x64 (Quickstart Installed). I have it set so that service checks are against a hostgroup so that hostgroup members (hosts and other hostgroups) in that group inherit those service checks. Sometimes however we have member hosts where we don't want to inherit one or more of those service checks. I have tried changing host options to null etc but whatever I do the service appears in the host. How then in XI can I block an inherited service appearing against a host ?
Sincerely
Tony
Re: Block Inherited Service Checks On A Host
Posted: Tue Feb 26, 2013 4:48 pm
by scottwilkerson
Actually this is possible in the CCM with a little trickery IF you are only adding the service to a hostgroup and not individual hosts...
You can exclude a host by doing the following:
In the CCM Service Management page for this service, click on the misc settings tab -> Manage Variable Definitions
Variable name = hostname
Variable value = !YOUR_HOSTNAME
Insert
The "Variable value" is a comma delimited list so if you want to exclude more than 1 it would be !YOUR_HOSTNAME,!YOUR_HOSTNAME2
like so
remove_host.PNG
Re: Block Inherited Service Checks On A Host
Posted: Tue Feb 26, 2013 7:19 pm
by tdawson
That will work perfectly. Many thanks !
Re: Block Inherited Service Checks On A Host
Posted: Wed Feb 27, 2013 10:25 am
by slansing
Thanks for letting us know.