Page 1 of 1
Server Group Setups
Posted: Thu Jul 20, 2017 12:20 pm
by donnyforbes
We have some critical servers and some non critical servers.... We also have "PagerDuty" that will make phones calls, text, etc.. We don't want phone calls for our non-critical servers or devices but only for the critical ones. Is there a way to put all critical servers-devices in a group and non critical ones in a group and assign the notifications to it via the groups? If so how can I do this?
Re: Server Group Setups
Posted: Thu Jul 20, 2017 2:30 pm
by mcapra
One way would be to add the critical folks to a "critical
contactgroup", and the non-critical folks to a "non-critical
contactgroup".
Then, rather than assigning individual
contacts to specific
hosts/
services, you would assign either the "critical" or "non-critical"
contactgroup.
You could also assign a
contact or
contactgroup to a
host or
service template and propagate things down that way; Applying the critical/non-critical template to the associated
hosts or
services.
Ideally, you would group your "critical" and "non-critical"
hosts into a
hostgroup and assign
contacts or a
contactgroup to the specific
hostgroup, but this is impossible due to limitations in Nagios Core.
Just a few options I can think of off the top of my head.
A brief overview on groups:
https://support.nagios.com/kb/article.php?id=507
Re: Server Group Setups
Posted: Thu Jul 20, 2017 3:35 pm
by dwhitfield
Thanks
@mcapra!
It's possible this will be "fixed" with Core 5 comes out:
Reworking/expanding object relationships and functionality, such as dependencies, groups, escalations, and notifications
--
https://www.nagios.com/roadmaps/
Re: Server Group Setups
Posted: Thu Jul 20, 2017 3:44 pm
by donnyforbes
Thanks I think I understand what you are suggesting.. I will give this a shot.
Re: Server Group Setups
Posted: Thu Jul 20, 2017 3:51 pm
by dwhitfield
It's also worth taking a look at
https://assets.nagios.com/downloads/nag ... tions.html so you can see which objects connect to other objects.
For example, you can see that you cannot add a contact or contractgroup to a hostgroup:
https://assets.nagios.com/downloads/nag ... #hostgroup