Automatically reset acknowledgements

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rgilpin
Posts: 9
Joined: Wed Oct 04, 2017 7:14 pm

Automatically reset acknowledgements

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Automatically reset acknowledgements

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked