NagiosXI 5.2.7 : acknowledgement doesn't work
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
NagiosXI 5.2.7 : acknowledgement doesn't work
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
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
You do not have the required permissions to view the files attached to this post.
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Do you see any errors in the apache and/or mysqld error logs?
Have you tried stopping/starting services:
then acknowledging the problem?
Have you changed anything on the system prior to noticing this issue?
Code: Select all
tail -100 /var/log/httpd/error_log
tail -100 /var/log/mysqld.logCode: Select all
service nagios stop
service ndo2db stop
service ndo2db start
service nagios start
Have you changed anything on the system prior to noticing this issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
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
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
You do not have the required permissions to view the files attached to this post.
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
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)
Former Nagios Employee
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Here is the result of : df -k
Otherwise, please give me a command to display disk usage
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
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
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.
Let us know what you find.
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.shBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Please post the output of these commands:
Please run this command:
If yours doesn't match this (the owner/group and the p on the beginning of the permissions), restart the nagios process:
Run this command:
If the number outputted is GREATER THAN 2, run these commands:
Try it again.
Run this command:
If the number outputted is GREATER THAN 1, run these commands:
Try it again.
Let us know the results.
Code: Select all
df -i
grep nag /etc/group
Code: Select all
ls -l /usr/local/nagios/var/rw/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.cmdCode: Select all
service nagios restartCode: Select all
ps aux | grep nagios.cfg | grep -v grep | wc -lCode: Select all
service nagios stop
killall -9 nagios
service nagios startRun this command:
Code: Select all
ipcs -q | grep nagios | wc -lCode: 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 -qLet us know the results.
-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Hi,
For trgriep : no trace of acknowledgement in the "event log" or "acknowledgements"
For ssax :
I tried all these things and acknowledgement doesn't work.
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
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Please run these commands, it should fix the issue:
Test it and then send the output of these commands:
Let us know the results.
Code: Select all
chown -R nagios.nagcmd /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw
service nagios restartCode: Select all
ls -ld /usr/local/nagios/var/rw
ls -l /usr/local/nagios/var/rw-
Frédéric GRANAT
- Posts: 445
- Joined: Mon Nov 19, 2012 11:36 am
Re: NagiosXI 5.2.7 : acknowledgement doesn't work
Hi,
I tested the acknowledgement, but it still doesn't work.
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.
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