Page 1 of 2
Host deletion and acknowledgements
Posted: Thu Mar 03, 2016 3:30 pm
by djobidon
Hi,
when I do some actions, such as deleting a host by going in its properties and do advanced/delete, NagiosXI lose all the acknowledgements it had even sticky ones. Di I misconfigured something or this is expected behavior? I would like it to remember what I have acknowledged.
Re: Host deletion and acknowledgements
Posted: Thu Mar 03, 2016 4:05 pm
by lmiltchev
When you say: "NagiosXI lose all the acknowledgements it had even sticky ones.", do you mean "all acknowledgements on the deleted host" or "all acknowledgements on ALL hosts"?
Re: Host deletion and acknowledgements
Posted: Fri Mar 04, 2016 4:30 pm
by djobidon
I am talking about losing all the acknowledgement I put on all the hosts. So when I delete a host, other hosts that I set an acknowledgement no longer shows as being acknowledged.
Re: Host deletion and acknowledgements
Posted: Mon Mar 07, 2016 12:03 pm
by lmiltchev
I haven't been able to recreate the issue.
What is the Nagios XI version that you are currently using? Do all of the hosts/services go to pending state after removing a host (in addition to losing acknowledgements)?
What is the output of the following command?
Code: Select all
grep retain_state_information /usr/local/nagios/etc/nagios.cfg
Re: Host deletion and acknowledgements
Posted: Tue Mar 08, 2016 8:27 am
by djobidon
I run version 5.2.5
It happens that I see pendings but not always.
The command you asked returned the following:
retain_state_information=1
Re: Host deletion and acknowledgements
Posted: Tue Mar 08, 2016 2:17 pm
by tmcdonald
You might have multiple nagios processes - please run the following command as root and post the output here:
ps -ef | grep bin/nagios
Re: Host deletion and acknowledgements
Posted: Fri Mar 11, 2016 7:39 am
by djobidon
Here is the result:
nagios 4391 1 0 07:17 ? 00:00:09 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 4393 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4394 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4395 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4396 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4397 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4398 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4399 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4400 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4401 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4402 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4403 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4404 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 4445 4391 0 07:17 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 18347 18319 0 07:39 pts/0 00:00:00 grep bin/nagios
Re: Host deletion and acknowledgements
Posted: Fri Mar 11, 2016 3:26 pm
by ssax
When that occurs, if you restart nagios do they come back?
When it's occurring run this command and see if there's any output:
Code: Select all
echo "select * from nagios_acknowledgements;" | mysql -pnagiosxi nagios
Also, please attach your /usr/local/nagios/etc/ndomod.cfg for review.
Thank you
Re: Host deletion and acknowledgements
Posted: Tue Mar 15, 2016 12:24 pm
by djobidon
Tried restarting nagios after triggering the problem but the acknoledgements did not come back.
When it's occurring run this command and see if there's any output:
The SQL actually shows my acknoledgements.
Attached is ndomod.cfg
Re: Host deletion and acknowledgements
Posted: Tue Mar 15, 2016 5:02 pm
by tmcdonald
What permissions do you have on your /usr/local/nagios/var directory and its contents?
ls -ld /usr/local/nagios/var
ls -l /usr/local/nagios/var