Page 1 of 1
Notifications wont disable from nagios.cfg
Posted: Thu Jul 25, 2013 1:48 pm
by uaslam
in nagios.cfg
after change i restart nagios but notifications are still enabled ?
I can do so through the web UI but should it default to what in the confi file?
Re: Notifications wont disable from nagios.cfg
Posted: Thu Jul 25, 2013 2:10 pm
by abrist
uaslam wrote:I can do so through the web UI but should it default to what in the confi file?
Nope. XI's settings will take precedence.
Re: Notifications wont disable from nagios.cfg
Posted: Thu Jul 25, 2013 2:33 pm
by uaslam
abrist wrote:uaslam wrote:I can do so through the web UI but should it default to what in the confi file?
Nope. XI's settings will take precedence.
The XI settings survive nagios service restarts?
How can I make sure nagiosxi settings are null (dont interfere with nagios core)?
I'm also enabling/disabling
Active Service Checks & Active Host Checks using flags in the config file and they both seem to work fine.
Re: Notifications wont disable from nagios.cfg
Posted: Thu Jul 25, 2013 2:39 pm
by abrist
uaslam wrote:The XI settings survive nagios service restarts?
Yes, because the settings are stored in the postgres db.
uaslam wrote:How can I make sure nagiosxi settings are null (dont interfere with nagios core)?
Are you looking to script the notifications on/off instead of using XI's options?
uaslam wrote:I'm also enabling/disabling Active Service Checks & Active Host Checks using flags in the config file and they both seem to work fine.
Specifically, the XI notification handler is not handled by core, but by XI. Disabling notifications in core should work for the core handlers though.
Re: Notifications wont disable from nagios.cfg
Posted: Thu Jul 25, 2013 3:26 pm
by uaslam
abrist wrote:Are you looking to script the notifications on/off instead of using XI's options?
Yes, thats exactly what I'm doing... This particular instance is a clone of our primary nagiosxi and serves as standby backup.
It just sits there dormant and checks the primary server once in a while to see if nagios is running if not it should fire up and start sending notifications.
While we are on the topic, If i setup MySQL replication, would that cause any issues between the two servers? And I would imagine, it would also inherit the XI values for notification status?
Re: Notifications wont disable from nagios.cfg
Posted: Thu Jul 25, 2013 3:46 pm
by abrist
uaslam wrote:While we are on the topic, If i setup MySQL replication, would that cause any issues between the two servers?
Nope.
And I would imagine, it would also inherit the XI values for notification status?
Not really, as the XI notification settings are stored in a postgres db instead of the mysql dbs which store check and core config entries.