Page 1 of 1

global notification disabled

Posted: Wed Feb 08, 2017 1:02 pm
by kendallchenoweth
What is the best way from the command line to determine if the nagios server currently has global notifications disabled?

Re: global notification disabled

Posted: Wed Feb 08, 2017 2:51 pm
by rkennedy
For further reference as I did some digging, on the nagiosxi database, the xi_commands table will be appended when they're turned off / on -

off -

Code: Select all

a:1:{s:3:"cmd";i:11;}
Command submitted
on -

Code: Select all

a:1:{s:3:"cmd";i:12;}
Command submitted
When they're turned off, /usr/local/nagios/var/status.dat is updated to a 0 -

Code: Select all

programstatus {
...
        enable_notifications=0
...
on -

Code: Select all

programstatus {
...
        enable_notifications=1
...

Re: global notification disabled

Posted: Wed Mar 01, 2017 1:58 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?