hostgroup containing * -hostgroup

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: hostgroup containing * -hostgroup

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: hostgroup containing * -hostgroup

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: hostgroup containing * -hostgroup

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: hostgroup containing * -hostgroup

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: hostgroup containing * -hostgroup

Post 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.
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Re: hostgroup containing * -hostgroup

Post 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
.
.
.
}
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: hostgroup containing * -hostgroup

Post 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 ;)
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked