Mass change notification interval

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jon.bilderback
Posts: 52
Joined: Tue Aug 10, 2010 9:16 am

Mass change notification interval

Post by jon.bilderback »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Mass change notification interval

Post by scottwilkerson »

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

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jon.bilderback
Posts: 52
Joined: Tue Aug 10, 2010 9:16 am

Re: Mass change notification interval

Post by jon.bilderback »

Thank you. It looks like that did exactly what I needed.
Locked