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
Automatically reset acknowledgements
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Automatically reset acknowledgements
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.
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 startAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.