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
Exclude hosts using CCM
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Exclude hosts using CCM
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
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
-
- Posts: 7
- Joined: Mon Dec 12, 2011 6:48 am
Re: Exclude hosts using CCM
That works perfectly, thank you.
If I wanted to add another device, is it the same comma separated listed?
If I wanted to add another device, is it the same comma separated listed?
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Exclude hosts using CCM
I believe it should be defined as such:
Code: Select all
!exclude_this_server!exclude_this_server2