Page 2 of 2

Re: hostgroup containing * -hostgroup

Posted: Tue Dec 22, 2015 4:18 pm
by ssax
Unfortunately it's not there for service escalations (it's only on hosts/services). I think the only way around this would be for you to define them in a static file in /usr/local/nagios/etc/static.

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I really think it's impossible to say without knowing your environment:
- Your disks/NAS/SAN have speed unique to your environment.
- Your host/service check use different plugins (scripted (which language) vs compiled) and the numbers of them.
- Network speed/bottlenecks, local/remote server load, etc.

If you're having IO wait issues already without the RAMDisk then you will have to keep an eye on it (you could setup a local IO wait check in Nagios) as you go, we can't even really hazard a guess because we don't know your equipment/environment.

I'm sure you've already seen this but I'll put the link here for future visitors who read this:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: hostgroup containing * -hostgroup

Posted: Tue Dec 22, 2015 4:56 pm
by Box293
ChathamDaleJ wrote:I'm having a hard finding the tab to manage variables.
Go to your service in CCM.

CCM > Monitoring > Services
Click the service so you are editing it
The last tab is the Misc Settings Tab

Re: hostgroup containing * -hostgroup

Posted: Wed Dec 23, 2015 9:20 am
by ChathamDaleJ
You said:

Go to Misc Settings Tab -> Manage Variable Definitions

In "Variable name" enter hostgroup_name
In "Variable value" enter *,!exclude_this_server
Close
Save
Apply Configuration


Where is the tab you speak of. There is not tab on the hostgroup add window.

Re: hostgroup containing * -hostgroup

Posted: Wed Dec 23, 2015 9:34 am
by Box293
Ahhh I can see your frustration now, you are trying to do this with escalations. Apologies for not picking this up sooner.

The Misc Settings tab only exists on host and service objects.

I think in your situation static configs is the only solution.

Re: hostgroup containing * -hostgroup

Posted: Wed Dec 23, 2015 12:26 pm
by ChathamDaleJ
I thought you were talking about defining it as a hostgroup, and also didn't realize a thread was multipaged.

I tried a static file per nagios core instructions and it disliked it.

I worked in a 2 acre datacenter. Negating groups saved our bacon. This is not ready for large enterprises without it. I love Nagios, don't get me wrong. I started out using it at deja.com when it was netsaint. IMO, for a scripting administrator, nothing can touch it. But not being able to negate really hurts. What I will have to do is to grep -v all hosts versus windows hosts. With 500+ windows hosts, I doubt fgrep will handle it so I'll have to loop it.

Please beg for this as an added feature.

Re: hostgroup containing * -hostgroup

Posted: Wed Dec 23, 2015 12:27 pm
by ChathamDaleJ
Not as escalations, but just defining a hostgroup the way it could be done in core 3.

define hostgroup {
.
.
.
members all-hosts,!windows-hosts
.
.
.
}

Re: hostgroup containing * -hostgroup

Posted: Wed Dec 23, 2015 12:31 pm
by Box293
Got it.

negate in XI is on our feature request list, it's up to the developers as to when it gets implemented.

I'll give them a reminder ;)