I would like to modify the notification interval from 1 hour, to 12 hours on all of the hosts and services.
I think someone else was asking about this, but couldn't find it in a search.
Has anyone figured out a way to do this?
Thanks
Mass change notification interval
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Mass change notification interval
We are going into undocumented territory, so make sure you have a backup....
However you should be able to do the following, I did this on my test machine without problems. If you changed the mysql password you will need to change it after the -p
However you should be able to do the following, I did this on my test machine without problems. If you changed the mysql password you will need to change it after the -p
Code: Select all
mysql nagiosql -pnagiosxi
update tbl_service set notification_interval=720;
update tbl_host set notification_interval=720;
quit
cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh-
jon.bilderback
- Posts: 52
- Joined: Tue Aug 10, 2010 9:16 am
Re: Mass change notification interval
Thank you. It looks like that did exactly what I needed.