Page 1 of 1

Notification Management

Posted: Mon Apr 03, 2017 9:19 am
by jkinning
I had an admin create a new template and deploy it to all users. Not good! Is there a way to revert back to the way all these setting were prior to the deployment of the updated template?

Didn't know if I can revert back from a config snapshot or not for these notification settings.

Re: Notification Management

Posted: Mon Apr 03, 2017 11:05 am
by mcapra
A config snapshot by itself wouldn't be enough as that only deals with the nagiosql table. The nagiosxi table is what contains per-user notification settings.

You should be able to find a full backup located in /store/backups/nagiosxi and restore that using the restore_xi.sh script, but this sort of a "scorched earth" option and will revert all the things back to the time the backup was created. Not ideal, but easy.

Otherwise you could untar one of those previous backups and find the nagiosxi mysqldump file and restore that specifically. I did it like so:

Code: Select all

tar nagiosxi.1490504434.tar.gz
cd 1489698879-restore/1489698774/mysql
mysql  -u root --password=nagiosxi < nagiosxi.sql

Re: Notification Management

Posted: Mon Apr 03, 2017 2:05 pm
by jkinning
Thanks. I think we are good now.

Appreciate the help. Feel free to close this one.