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
Mass Acknowledgement Removal
-
danniiffxi
- Posts: 121
- Joined: Tue Jan 30, 2018 3:29 am
- Location: UK
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Mass Acknowledgement Removal
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
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
This is from my notes. Might want to test first.
Mass unack
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
This would un-acknowledge everythinggormank wrote:This is from my notes. Might want to test first.
Mass unackCode: 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
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
I know, I was just confirminggormank wrote:From post #1: "Is there some way I can remove every acknowledgement at the same time."
Thanks for adding this!