Page 1 of 1

nagios 3.5.1 to 4.1.1 : "notification_options" variable

Posted: Tue Apr 12, 2016 9:52 am
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 ?

Re: nagios 3.5.1 to 4.1.1 : "notification_options" variable

Posted: Tue Apr 12, 2016 9:59 am
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]

Re: nagios 3.5.1 to 4.1.1 : "notification_options" variable

Posted: Tue Apr 12, 2016 10:21 am
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

Re: nagios 3.5.1 to 4.1.1 : "notification_options" variable

Posted: Tue Apr 12, 2016 11:42 am
by jolson
I'll close this thread - thanks for posting the solution so that others may see your answer!

Jesse