Block Inherited Service Checks On A Host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tdawson
Posts: 7
Joined: Tue Feb 12, 2013 1:46 pm

Block Inherited Service Checks On A Host

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Block Inherited Service Checks On A Host

Post 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
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tdawson
Posts: 7
Joined: Tue Feb 12, 2013 1:46 pm

Re: Block Inherited Service Checks On A Host

Post by tdawson »

That will work perfectly. Many thanks !
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Block Inherited Service Checks On A Host

Post by slansing »

Thanks for letting us know.
Locked