Server Group Setups
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Server Group Setups
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
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
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
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Server Group Setups
Thanks @mcapra!
It's possible this will be "fixed" with Core 5 comes out:
It's possible this will be "fixed" with Core 5 comes out:
-- https://www.nagios.com/roadmaps/Reworking/expanding object relationships and functionality, such as dependencies, groups, escalations, and notifications
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Server Group Setups
Thanks I think I understand what you are suggesting.. I will give this a shot.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Server Group Setups
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
For example, you can see that you cannot add a contact or contractgroup to a hostgroup: https://assets.nagios.com/downloads/nag ... #hostgroup