global notification disabled

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kendallchenoweth
Posts: 195
Joined: Fri Sep 13, 2013 10:43 am

global notification disabled

Post by kendallchenoweth »

What is the best way from the command line to determine if the nagios server currently has global notifications disabled?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: global notification disabled

Post 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
...
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: global notification disabled

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee
Locked