Page 1 of 1
Mass Notification Change
Posted: Tue Nov 01, 2011 1:03 pm
by mchasse
During my initial setup I opted to no add any alerting groups, however I am now ready to add a alerting group I added to all server, is there anyway to do this in one function or do I have to go into every server an added it manually ?
Thanks,
Mike C.
Sr Sys Admin
Re: Mass Notification Change
Posted: Wed Nov 02, 2011 4:29 pm
by lmiltchev
When you log in the Core Config Manager, you can select "Contact Groups" under "Alerting" from the left panel menu. You can modify the existing Contact Groups and add new ones.
Also, from the Home page you can go to: Host (or Service) Detail->Configure->Reconfigure->Notifications. In the "Send alert notifications to..." section you can select individual contacts or contact groups, so you don't have to do it one by one.
Hope this helps.
Re: Mass Notification Change
Posted: Thu Nov 10, 2011 9:00 am
by pouda
sorry but i've the same problem ...and i don't find where i can change these settings ... sorry but could you attach a screenshot please ?
thx you
Re: Mass Notification Change
Posted: Thu Nov 10, 2011 9:11 am
by pouda
for example, in this case bellow i would like to activate notification for all these services ...
nottifications.jpg
do i reconfigure all services notifications or may i have the possibility to activate them by a massive action ?
Thx
Re: Mass Notification Change
Posted: Thu Nov 10, 2011 1:51 pm
by mguthrie
There's not a direct way to do this other than by having all of these services use a common template, and then changing the setting in the template. This would assume that the "notifications_enabled" setting wasn't being overridden by the individual services.
Re: Mass Notification Change
Posted: Thu Nov 10, 2011 3:06 pm
by pouda
so ok i will try, but maybe we could execute an SQL query directly on the database for changinf in one shot all these settings ...

Re: Mass Notification Change
Posted: Thu Nov 10, 2011 4:19 pm
by mguthrie
That could be a bit tricky unless you've got an SQL query whiz on your end. The services table doesn't have a host_name field, so you'd have to get fancy with some join statements across 3 tables.
Re: Mass Notification Change
Posted: Fri Nov 11, 2011 11:09 am
by pouda
OK, so ... nevertheless, is it possible to apply a template to all my monitored services in one shot ?

Re: Mass Notification Change
Posted: Fri Nov 11, 2011 11:57 am
by mguthrie
Yes. You can apply an additive template with a single config directive if you want. If that setting is specified at the host or service level it will override the template. Take a look at the following doc, there's a lot that can be done with this.
http://nagios.sourceforge.net/docs/3_0/ ... tance.html