Page 1 of 1

Nagios Notification and acknowledgement

Posted: Mon Sep 10, 2018 4:28 pm
by emartine
I am not sure if i've brought this up or not but.. over time folks in our organization acknowledge problems in Nagios and disable notifications for a service and they never clean it up. They stay there forever. I'd like to remove those acknowledgements and also enable notifications for those services so they can be reviewed again. Is there any way to do this in bulk?

Re: Nagios Notification and acknowledgement

Posted: Mon Sep 10, 2018 4:38 pm
by ssax
Are they listed in Home > Acknowledgements? There isn't a bulk tool for this though but you can use that page to remove them.

Re: Nagios Notification and acknowledgement

Posted: Mon Sep 10, 2018 4:40 pm
by npolovenko
@emartine, You could also try running through the following commands to reset all acknowledgments on the system.
service nagios stop
sed -i 's/problem_has_been_acknowledged=1/problem_has_been_acknowledged=0/g' /usr/local/nagios/var/retention.dat
service nagios start

Re: Nagios Notification and acknowledgement

Posted: Tue Sep 11, 2018 12:39 pm
by emartine
A feature request to get rid of acknowledgements in bulk/selectively would be great.
I have over 60 of them. Doing them one at a time is a nightmare.

Running through

sed -i 's/problem_has_been_acknowledged=1/problem_has_been_acknowledged=0/g' /usr/local/nagios/var/retention.dat

will probably cause Downtime acknowledgements to be removed as well?
How about disabled notifications?

Re: Nagios Notification and acknowledgement

Posted: Tue Sep 11, 2018 3:06 pm
by npolovenko
@emartine, My script will not remove scheduled downtime. It only gets rid of the acknowledgments. And you can re-enable all notifications at once using the Bulk Modifications Tool. Also, I'm not sure on purpose of disabling notifications if the problem has already been acknowledged?