Mass Acknowledgement Removal

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
danniiffxi
Posts: 121
Joined: Tue Jan 30, 2018 3:29 am
Location: UK

Mass Acknowledgement Removal

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Mass Acknowledgement Removal

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Mass Acknowledgement Removal

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Mass Acknowledgement Removal

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Mass Acknowledgement Removal

Post by gormank »

From post #1: "Is there some way I can remove every acknowledgement at the same time."
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Mass Acknowledgement Removal

Post 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!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked