Nagios XI and configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios XI and configuration

Post by mguthrie »

Can you post that service template?

Also, just to verify, I'd lake to make sure that somehow a second instance of Nagios didn't get spawned. Can you run:

Code: Select all

killall -9 nagios 
service ndo2db stop
service nagios start
service ndo2db start
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Nagios XI and configuration

Post by hhlodge »

define service {
name is-service
use generic-service
check_interval 10
retry_interval 1
contact_groups is
register 0

}

I've killed/started the services as requested.
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios XI and configuration

Post by mguthrie »

Ok, I think I see what's going on. Don't use the:

Code: Select all

use generic-service
line. If that template has a check in it, it will apply that check to everything. I haven't done a lot with the more complicated templating tricks, but there's a lot that can be done with templates. The Core doc below is still probably the best reference on the logic of it.
http://nagios.sourceforge.net/docs/3_0/ ... tance.html
hhlodge
Posts: 206
Joined: Tue Mar 08, 2011 2:13 pm

Re: Nagios XI and configuration

Post by hhlodge »

That's the out-of-the-box base template from core and there is no check command in it. I use generic-service for the IT guys and set us as a contact group. For other groups, I've always made a new template such as this. with a "use generic-service" and one additional contact_groups line for them and use that template for services they care about. IT cares about all of them. Well, at least they're gonna get told about it. :) Anyway, I've done it this way in core for years without issue.
- Kyle
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios XI and configuration

Post by mguthrie »

It you've got a system in place that works, don't change it for my sake ; )
Locked