Trouble turning off notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Trouble turning off notifications

Post by cwscribner »

Hi all.

The title pretty much says it all. I tried several times to turn of notifications via the monitoring engine widget but they wouldn't turn off (or they didn't appear turned off by the system indicator or widget). So I proceeded to turn them off in the core config file. Even after doing that and restarting Nagios, notifications still appeared to be turned on. I attempted to stop notifications 3 more times through the widget, restarting the monitoring engine several times through this process, before they finally showed an off indicator. Any ideas on where the hang up might be?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Trouble turning off notifications

Post by mguthrie »

It could be a permissions issue with the nagios.cmd pipe. Can you check the permissions on the /usr/local/nagios/var/rw/nagios.cmd file? This file should get recreated each time nagios is restarted.

You can also do a running tail on the following file to trace commands being sent through the XI interface.

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
And then try turning off the notifications.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Trouble turning off notifications

Post by cwscribner »

Code: Select all

prw-rw---- 1 nagios nagcmd 0 Dec  9 17:15 /usr/local/nagios/var/rw/nagios.cmd
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Trouble turning off notifications

Post by mguthrie »

Can you try running the following:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
And then submitting the command from the web interface to enable or disable notifications?
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Trouble turning off notifications

Post by cwscribner »

Must've been a fluke. I wasn't able to reproduce the same problem. Here's the output:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
..................................................PROCESSING COMMAND ID 2130...
PROCESS COMMAND: CMD=16, DATA=a:1:{s:3:"cmd";i:12;}
COMMAND DATA: a:1:{s:3:"cmd";i:12;}
CMDARR:
Array
(
    [cmd] => 12
)
CORE CMD: ENABLE_NOTIFICATIONS;0
SUBMITTING A NAGIOSCORE COMMAND...
.........
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
...........................................PROCESSING COMMAND ID 2131...
PROCESS COMMAND: CMD=16, DATA=a:1:{s:3:"cmd";i:11;}
COMMAND DATA: a:1:{s:3:"cmd";i:11;}
CMDARR:
Array
(
    [cmd] => 11
)
CORE CMD: DISABLE_NOTIFICATIONS;0
SUBMITTING A NAGIOSCORE COMMAND...
..............tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 1 COMMANDS


[1]+  Stopped                 tail -f /usr/local/nagiosxi/var/cmdsubsys.log
You have new mail in /var/spool/mail/root
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Trouble turning off notifications

Post by mguthrie »

Ok, if the issue reappears keep an eye on that log and see if it produces anything telling.
Locked