nagios 3.5.1 to 4.1.1 : "notification_options" variable

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

nagios 3.5.1 to 4.1.1 : "notification_options" variable

Post by nagmoto »

In Nagios core 3.5.1 "notification_options" with empty options of "w,u,c,r" will not send any alerts.
But in Nagios 4.1.1, this approach will be rejected by syntax checker.

Is there an option in 4.1.1 to disable all level of alerts notification ?
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: nagios 3.5.1 to 4.1.1 : "notification_options" variable

Post by nagmoto »

in template.cfg

Code: Select all

notification_options                             ; Send notifications about warning, unknown, critical, and recovery events
nagios -v /etc/nagios/nagios.cfg

Code: Select all

   Read main 
config file okay...
Error: Invalid notification option 'options' in service definition.
Error: Could not add object property in file '/etc/nagios/objects/templates.cfg' on line 760.
   Error processing object config files!

/code]
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: nagios 3.5.1 to 4.1.1 : "notification_options" variable

Post by nagmoto »

Please resolve this question. I didn't RTFM.

https://assets.nagios.com/downloads/nag ... tions.html

"notification_options n" # disable alert for all notification levels. it works in Nagios 3.5.1/4.1.1
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nagios 3.5.1 to 4.1.1 : "notification_options" variable

Post by jolson »

I'll close this thread - thanks for posting the solution so that others may see your answer!

Jesse
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked