Page 1 of 1

Exclude hosts using CCM

Posted: Mon Jan 20, 2014 7:48 am
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

Re: Exclude hosts using CCM

Posted: Mon Jan 20, 2014 9:01 am
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

Re: Exclude hosts using CCM

Posted: Tue Jan 21, 2014 8:22 am
by olliecampbell
That works perfectly, thank you.

If I wanted to add another device, is it the same comma separated listed?

Re: Exclude hosts using CCM

Posted: Tue Jan 21, 2014 10:31 am
by slansing
I believe it should be defined as such:

Code: Select all

!exclude_this_server!exclude_this_server2