Host deletion and acknowledgements

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
djobidon
Posts: 20
Joined: Thu May 14, 2015 7:50 am

Host deletion and acknowledgements

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host deletion and acknowledgements

Post 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"?
Be sure to check out our Knowledgebase for helpful articles and solutions!
djobidon
Posts: 20
Joined: Thu May 14, 2015 7:50 am

Re: Host deletion and acknowledgements

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host deletion and acknowledgements

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
djobidon
Posts: 20
Joined: Thu May 14, 2015 7:50 am

Re: Host deletion and acknowledgements

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

Re: Host deletion and acknowledgements

Post 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
Former Nagios employee
djobidon
Posts: 20
Joined: Thu May 14, 2015 7:50 am

Re: Host deletion and acknowledgements

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Host deletion and acknowledgements

Post 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
djobidon
Posts: 20
Joined: Thu May 14, 2015 7:50 am

Re: Host deletion and acknowledgements

Post 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
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host deletion and acknowledgements

Post 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
Former Nagios employee
Locked