Notification contact for all service of a Host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Dreeg
Posts: 5
Joined: Mon Aug 08, 2016 6:35 am

Notification contact for all service of a Host

Post by Dreeg »

Hi all,

sorry in advance for trivial question.
Situation:
Host#1, Host#2, ..., Host#n
Hostgroup "X" that include Host#1..4
Service#1 (e.g. CPU Load) associated to Hostgroup X

All Host between #1 and #4 will have "CPU Load" check.

How should I do if I want to send notifications to Contact Y only for the CPU Load of Host#3?

Thanks in advance,
Dreeg
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Notification contact for all service of a Host

Post by bwallace »

You'll have to create a separate check_CPU service for Host # 3 where only 'Contact Y' is listed as the contact. Unfortunately there is not a way to isolate Contact Y when the same service check is applied to all hosts in a host group, at least not that I'm aware of.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Dreeg
Posts: 5
Joined: Mon Aug 08, 2016 6:35 am

Re: Notification contact for all service of a Host

Post by Dreeg »

It is not a good situation, is extremely common requirement.
For now a draft result is given by removing any contact in service. It inherits from the host.
Unfortunately so granularity is limited to hosts and not to services.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Notification contact for all service of a Host

Post by mcapra »

I understand the frustration. The granularity is available for services, just not in the way your particular services have been deployed. There aren't very good options for overloading definitions within any given service/host when it's inheriting attributes from a hostgroup. Ideally, there may be a way to have a host inherit several services from a hostgroup, but overload any given service with host-level definitions. Unfortunately, this is not the case currently.
Former Nagios employee
https://www.mcapra.com/
Locked