Page 1 of 1

Mass Acknowledgement Removal

Posted: Fri Sep 06, 2019 8:03 am
by danniiffxi
OK hopefully this is a nice easy one..

Our main implementation of Nagios XI is now getting on for 6 years old, of which I have been looking after it for half that time. Over the 6 years we have accumulated what appears to be an almost endless list of acknowledgements.

when I go into the acknowledgements page I have the option to delete one of these at a time, which being quite frank, will take me about a week to do, and I do not have the time or the patience to do this.. Is there some way I can remove every acknowledgement at the same time, be it by a script or and option in the GUI? I am aware that my main Dashboard will probably have a coronary along with my boss when he see's the screen, but it is the only way I can think of quickly sorting the genuine from the stuff I need to delete.

Our Nagios needs a damn good spring clean, I know for a fact that i have acknowledgements for servers that don't even exist any more.

Many thanks

Re: Mass Acknowledgement Removal

Posted: Fri Sep 06, 2019 10:32 am
by scottwilkerson
There is no way to "mass un-acknowledge" items in Nagios XI at the moment. There is a 3rd party addon on the Nagios Exchange that you could try:

https://exchange.nagios.org/directory/A ... ck/details

We haven't tested it yet, so it may or may not work. Let us know if this helped.


One thing to Note is that the acknowledgements page show the comments and not actually the acknowledgements. To see what Actual items are acknowledged it is best to go to the Tactical Overview and under the Hosts and Services Section you will have a link to the Acknowledged hosts/services

Re: Mass Acknowledgement Removal

Posted: Fri Sep 13, 2019 1:42 pm
by gormank
This is from my notes. Might want to test first.

Mass unack

Code: Select all

service nagios stop
sed -i 's/problem_has_been_acknowledged=.*/problem_has_been_acknowledged=0/g' /usr/local/nagios/var/retention.dat
service nagios start

Re: Mass Acknowledgement Removal

Posted: Fri Sep 13, 2019 2:02 pm
by scottwilkerson
gormank wrote:This is from my notes. Might want to test first.

Mass unack

Code: Select all

service nagios stop
sed -i 's/problem_has_been_acknowledged=.*/problem_has_been_acknowledged=0/g' /usr/local/nagios/var/retention.dat
service nagios start
This would un-acknowledge everything

Re: Mass Acknowledgement Removal

Posted: Fri Sep 13, 2019 2:16 pm
by gormank
From post #1: "Is there some way I can remove every acknowledgement at the same time."

Re: Mass Acknowledgement Removal

Posted: Fri Sep 13, 2019 2:18 pm
by scottwilkerson
gormank wrote:From post #1: "Is there some way I can remove every acknowledgement at the same time."
I know, I was just confirming ;)

Thanks for adding this!