Page 1 of 1

Automatically reset acknowledgements

Posted: Thu Dec 21, 2017 1:51 am
by rgilpin
Hi Support.
A rather unusual request but have been asked to see if there is a way to automatically reset acknowledgements after a set time so that they send out alerts again. Reason for this is that we have found a number of old alerts that were acknowledged but have not been updated. If we can then reset and/or resend alerts (maybe esculate?) they will be brought to attention again.

Regards, Rob

Re: Automatically reset acknowledgements

Posted: Thu Dec 21, 2017 10:09 am
by npolovenko
Hello, @rgilpin.

This shell script would automatically reset all acknowledgments in your Nagios XI. You could run this script regularly inside inside a cron file.

Code: Select all

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