Page 2 of 2
Re: Nagios XI and configuration
Posted: Thu Jul 28, 2011 5:00 pm
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
Re: Nagios XI and configuration
Posted: Fri Jul 29, 2011 8:32 am
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.
Re: Nagios XI and configuration
Posted: Fri Jul 29, 2011 9:47 am
by mguthrie
Ok, I think I see what's going on. Don't use the:
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
Re: Nagios XI and configuration
Posted: Fri Jul 29, 2011 2:49 pm
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.
Re: Nagios XI and configuration
Posted: Fri Jul 29, 2011 4:52 pm
by mguthrie
It you've got a system in place that works, don't change it for my sake ; )