Exclude hosts using CCM

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
olliecampbell
Posts: 7
Joined: Mon Dec 12, 2011 6:48 am

Exclude hosts using CCM

Post by olliecampbell »

Hello,

This may be related to the way that I am used to configuring Nagios, but I have checks that are applied to Host Groups. Not all of my kit conforms to the same requirements so I would have normally added the following to a service check:

hostgroup_name windows_servers
host_name !exclude_this_server


I'm using the VM packaged Nagios Core that comes with CCM. How would I do the same with this?

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

Re: Exclude hosts using CCM

Post by scottwilkerson »

This is one of the shortcomings of the CCM, and is on the TODO list, but here is how you can accomplish the task.

Add the host_group as normal.

Go to Misc Settings Tab -> Manage Variable Definitions

In "Variable name" enter host_name
In "Variable value" enter !exclude_this_server
Close
Save
Apply Configuration
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
olliecampbell
Posts: 7
Joined: Mon Dec 12, 2011 6:48 am

Re: Exclude hosts using CCM

Post by olliecampbell »

That works perfectly, thank you.

If I wanted to add another device, is it the same comma separated listed?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Exclude hosts using CCM

Post by slansing »

I believe it should be defined as such:

Code: Select all

!exclude_this_server!exclude_this_server2
Locked