Can't delete Acknowledged comment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Can't delete Acknowledged comment

Post by TBT »

We have a host with an Acknowledgement that cannot be deleted. Current status is Up/Ok state, yet the comment remains, even when issuing a delete via GUI.

Please advise,
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Can't delete Acknowledged comment

Post by npolovenko »

Hello, @TBT. Are you having this problem on the XI 5.4.13 server?

Please run the following commands and let me know if it fixes the problem:
mysqlcheck -r -f -uroot -pnagiosxi --all-databases
service nagios stop
service ndo2db stop
rm /usr/local/nagios/var/retention.dat
mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak
service ndo2db start
service nagios start
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Can't delete Acknowledged comment

Post by TBT »

npolovenko wrote:Hello, @TBT. Are you having this problem on the XI 5.4.13 server?

Please run the following commands and let me know if it fixes the problem:
mysqlcheck -r -f -uroot -pnagiosxi --all-databases
service nagios stop
service ndo2db stop
rm /usr/local/nagios/var/retention.dat
mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak
service ndo2db start
service nagios start
Yes, XI 5.4.13, one of nine. I'd need to schedule a maintenance window before running this as it is a production system. We plan on upgrading to XI 5.5.6 next month, is a check ran during that process?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Can't delete Acknowledged comment

Post by npolovenko »

@TBT, While XI is upgrading checks are not executed. However, the upgrade usually doesn't take longer than 5-10 minutes.
If your XI is based on a VM please make a snapshot beforehand. That way you can revert back if something goes wrong during the upgrade. Otherwise, you can test the upgrade on a non-production clone first.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Can't delete Acknowledged comment

Post by TBT »

npolovenko wrote:Hello, @TBT. Are you having this problem on the XI 5.4.13 server?

Please run the following commands and let me know if it fixes the problem:
mysqlcheck -r -f -uroot -pnagiosxi --all-databases
service nagios stop
service ndo2db stop
rm /usr/local/nagios/var/retention.dat
mv /usr/local/nagios/var/ndo2db.lock /usr/local/nagios/var/ndo2db.lock.bak
mv /usr/local/nagios/var/ndo.sock /usr/local/nagios/var/ndo.sock.bak
service ndo2db start
service nagios start
Tried your suggestion, the acknowledgment cleared on the Host in question, however, I noticed ALL other legit acknowledgments (hosts is still in alarm state) were removed too. Is this expected?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Can't delete Acknowledged comment

Post by npolovenko »

@TBT , Yeah, that's because we removed the retention.dat file. I am suspecting that there was a corrupt entry and that's why you couldn't remove the acknowledgment. Can you try acknowledging some other host or a service problem and see if its easily removed?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Can't delete Acknowledged comment

Post by TBT »

npolovenko wrote:@TBT , Yeah, that's because we removed the retention.dat file. I am suspecting that there was a corrupt entry and that's why you couldn't remove the acknowledgment. Can you try acknowledging some other host or a service problem and see if its easily removed?
Yes, acknowledge works. Issue resolved.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Locked