Remove acknowledgements and enable notifications
Remove acknowledgements and enable notifications
We keep getting "nagios failing to notify us" because individuals are supressing alerts by acknowledging them in some for or another. Is there a way to create a weekly purge of acknowlegements and enable notifications ?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Remove acknowledgements and enable notifications
Hello, @emartine. One way to get rid of all acknowledgments is to delete the retention.dat file.
PS: Deleting the retention.dat file will also delete all scheduled downtime and comments.
So you could create a simple shell script that removes this file and put it in a cron./usr/local/nagios/var/retention.dat
PS: Deleting the retention.dat file will also delete all scheduled downtime and comments.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Remove acknowledgements and enable notifications
Meaning if it is active now that it will remove currently active scheduled downtime? Or it will remove any future scheduled downtime windows?Deleting the retention.dat file will also delete all scheduled downtime and comments.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Remove acknowledgements and enable notifications
@emartine, It will remove all existing downtime records, whether downtime was scheduled for now and already started or if it's scheduled for some time in the future.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Remove acknowledgements and enable notifications
Is there a way to reimport those schedules in bulk?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Remove acknowledgements and enable notifications
@emartine, This sequence of commands worked for me do delete all acknowledgments without affecting scheduled downtime:
Please backup your XI before trying this.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.
Re: Remove acknowledgements and enable notifications
This does remove the acknowledgements but doesn't seem to enable notifications.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Remove acknowledgements and enable notifications
@emartine, Can you run the same query with enable_notifications=1?
service nagios stop
sed -i "s/problem_has_been_acknowledged=1/problem_has_been_acknowledged=0/g" /usr/local/nagios/var/retention.dat
sed -i "s/enable_notifications=0/enable_notifications=1/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.
Re: Remove acknowledgements and enable notifications
I think you mean notifications_enabled=1 ?
Re: Remove acknowledgements and enable notifications
I created a dashboard with a urldashlet
and although the page looks fine... when I have a report sent only the top part of the pdf is visible while the rest is blank.
Any idea why or what I can do to fix this?
The url dashlet I created was https://servername/includes/components/ ... viceattr=4
and although the page looks fine... when I have a report sent only the top part of the pdf is visible while the rest is blank.
Any idea why or what I can do to fix this?
The url dashlet I created was https://servername/includes/components/ ... viceattr=4