Notifications wont disable from nagios.cfg

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
uaslam
Posts: 21
Joined: Fri Jun 14, 2013 10:38 am

Notifications wont disable from nagios.cfg

Post by uaslam »

in nagios.cfg

Code: Select all

enable_notifications=0
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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications wont disable from nagios.cfg

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
uaslam
Posts: 21
Joined: Fri Jun 14, 2013 10:38 am

Re: Notifications wont disable from nagios.cfg

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications wont disable from nagios.cfg

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
uaslam
Posts: 21
Joined: Fri Jun 14, 2013 10:38 am

Re: Notifications wont disable from nagios.cfg

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Notifications wont disable from nagios.cfg

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked