Page 1 of 2

NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Mon Jun 20, 2016 9:47 am
by Frédéric GRANAT
Hi,
If I acknowledge a problem (on a host or service), the acknowledgement isn't taken into account.
"No comments or acknowledgements" is still displayed and alert still displayed (please see the screen capture).

Please help me.

Rgds,

Frederic

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Mon Jun 20, 2016 11:14 am
by lmiltchev
Do you see any errors in the apache and/or mysqld error logs?

Code: Select all

tail -100 /var/log/httpd/error_log
tail -100 /var/log/mysqld.log
Have you tried stopping/starting services:

Code: Select all

service nagios stop
service ndo2db stop
service ndo2db start
service nagios start
then acknowledging the problem?

Have you changed anything on the system prior to noticing this issue?

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Tue Jun 21, 2016 1:52 am
by Frédéric GRANAT
Hi,
Do you see any errors in the apache and/or mysqld error logs?
=> Please see the attached files

Have you tried stopping/starting services:
then acknowledging the problem?
=> Yes, but no effect

Have you changed anything on the system prior to noticing this issue?
=> No, the acknowledgement doesn't work since the upgrade to 5.2.7

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Tue Jun 21, 2016 1:50 pm
by rkennedy
Does your machine have disk space available? Looking at the SQL logs, I noticed this -

Code: Select all

160502 21:05:47 [ERROR] /usr/libexec/mysqld: Disk is full writing './nagios/nagios_systemcommands.MYD' (Errcode: 28). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Wed Jun 22, 2016 2:35 am
by Frédéric GRANAT
Here is the result of : df -k

Code: Select all

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      29329476  19424380   8391496  70% /
/dev/sda1               101086     31686     64181  34% /boot
tmpfs                  1553548         0   1553548   0% /dev/shm
Otherwise, please give me a command to display disk usage

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Wed Jun 22, 2016 12:32 pm
by tgriep
When you Acknowledge a problem, do you see an entry in the Exent Log?
You can access it from the Home screen in the XI GUI.

The drive full error in the MYSQL log was from a while ago but you should run a repair of it to be sure.
Login as root to the XI server and run the following to repair it.

Code: Select all

cd /usr/local/nagiosxi/scripts
./repair_databases.sh
Let us know what you find.

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Wed Jun 22, 2016 12:37 pm
by ssax
Please post the output of these commands:

Code: Select all

df -i
grep nag /etc/group
Please run this command:

Code: Select all

ls -l /usr/local/nagios/var/rw/
If yours doesn't match this (the owner/group and the p on the beginning of the permissions), restart the nagios process:

Code: Select all

[root@ssc66xi ~]# ls -l /usr/local/nagios/var/rw/nagios.cmd
total 0
prw-rw---- 1 nagios nagcmd 0 Jun 22 11:12 nagios.cmd

Code: Select all

service nagios restart
Run this command:

Code: Select all

ps aux | grep nagios.cfg | grep -v grep | wc -l
If the number outputted is GREATER THAN 2, run these commands:

Code: Select all

service nagios stop
killall -9 nagios
service nagios start
Try it again.

Run this command:

Code: Select all

ipcs -q | grep nagios | wc -l
If the number outputted is GREATER THAN 1, run these commands:

Code: Select all

service nagios stop
service ndo2db stop
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service ndo2db start
service nagios start
ipcs -q
Try it again.

Let us know the results.

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Thu Jun 23, 2016 7:39 am
by Frédéric GRANAT
Hi,

For trgriep : no trace of acknowledgement in the "event log" or "acknowledgements"
For ssax :

Code: Select all

[root@nagiosxi scripts]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     7569408  174861 7394547    3% /
/dev/sda1              26104      53   26051    1% /boot
tmpfs                 219735       1  219734    1% /dev/shm
[root@nagiosxi scripts]# grep nag /etc/group
nagios:x:500:apache,nagios
nagcmd:x:501:apache,nagios
[root@nagiosxi scripts]# ls -l /usr/local/nagios/var/rw/
total 0
prw-rw---- 1 nagios nagios 0 Jun 23 14:23 nagios.cmd
srw-rw---- 1 nagios nagios 0 Jun 23 14:23 nagios.qh
[root@nagiosxi scripts]# ps aux | grep nagios.cfg | grep -v grep | wc -l
2
[root@nagiosxi scripts]# ipcs -q | grep nagios | wc -l
2
[root@nagiosxi scripts]# service nagios stop
Stopping nagios:. done.
[root@nagiosxi scripts]# service ndo2db stop
Stopping ndo2db: done.
[root@nagiosxi scripts]# for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
[root@nagiosxi scripts]# service ndo2db start
Starting ndo2db: done.
[root@nagiosxi scripts]# service nagios start
Starting nagios: done.
[root@nagiosxi scripts]# ipcs -q

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
0xff000002 1245184    nagios     600        0            0
I tried all these things and acknowledgement doesn't work.

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Thu Jun 23, 2016 12:59 pm
by ssax
Please run these commands, it should fix the issue:

Code: Select all

chown -R nagios.nagcmd /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
service nagios restart
Test it and then send the output of these commands:

Code: Select all

ls -ld /usr/local/nagios/var/rw
ls -l /usr/local/nagios/var/rw
Let us know the results.

Re: NagiosXI 5.2.7 : acknowledgement doesn't work

Posted: Fri Jun 24, 2016 3:35 am
by Frédéric GRANAT
Hi,

Code: Select all

[root@nagiosxi scripts]# chown -R nagios.nagcmd /usr/local/nagios/var/rw
[root@nagiosxi scripts]# chmod g+s /usr/local/nagios/var/rw
[root@nagiosxi scripts]# service nagios restart
Running configuration check...
Stopping nagios:. done.
Starting nagios: done.
I tested the acknowledgement, but it still doesn't work.

Code: Select all

[root@nagiosxi scripts]# ls -ld /usr/local/nagios/var/rw
drwxrwsr-x 2 nagios nagcmd 4096 Jun 24 10:31 /usr/local/nagios/var/rw
[root@nagiosxi scripts]# ls -l /usr/local/nagios/var/rw
total 0
prw-rw---- 1 nagios nagcmd 0 Jun 24 10:31 nagios.cmd
srw-rw---- 1 nagios nagcmd 0 Jun 24 10:31 nagios.qh