Email Notification Based on the Services

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Email Notification Based on the Services

Post by amitgupta19 »

I am in process of installing the Nagios.

I have requirement like :
For Database servers, Email should go to the Database team.

But i am finding a challenge here that Suppose i have a service definition for C Drive Space, then this definition may have servers apart from the Database servers.

How to achieve this, so that alert for the C Drive Space for the Database server goes to the Database team and same applicable for all the Teams.

Do i need to define separate service definition for every group of servers?
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Email Notification Based on the Services

Post by npolovenko »

Hello, @amitgupta19 . I'd like some clarification. Perhaps seing some definitions would help as well.

So you want you want to send notifications from all hosts and services to the Database team, and for only some services you also want to send notifications to some other contact. Is this correct?
Suppose i have a service definition for C Drive Space, then this definition may have servers apart from the Database servers.
Are you looking into assigning one service to different hosts?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Email Notification Based on the Services

Post by amitgupta19 »

I want to send the Notification to the Database team related to the Hosts (Database Servers) and Services monitored for those hosts.

My Concern here is that i have Service definition for C Drive Space. This definition will be monitoring the Database servers and other servers as well. How i will send notification for the C Drive Space on Database servers to the Database team only?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Email Notification Based on the Services

Post by tgriep »

To do this, you would have to create a copy of the existing check and only add the Database team as the contacts.
It has to be a unique check.
Be sure to check out our Knowledgebase for helpful articles and solutions!
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Email Notification Based on the Services

Post by amitgupta19 »

won't it lead to the Extra overhead to the Nagios?

Is it recomended or not?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Email Notification Based on the Services

Post by tgriep »

Yes, creating a new check on the system will have to be run by Nagios and add to the list of checks it has to process.
If you are adding a few new service checks, it should not add too much overhead to the system.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked