Page 1 of 1

Email Notification Based on the Services

Posted: Tue May 01, 2018 3:15 pm
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?

Re: Email Notification Based on the Services

Posted: Tue May 01, 2018 3:51 pm
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?

Re: Email Notification Based on the Services

Posted: Wed May 02, 2018 4:09 am
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?

Re: Email Notification Based on the Services

Posted: Wed May 02, 2018 4:54 pm
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.

Re: Email Notification Based on the Services

Posted: Thu May 03, 2018 5:34 am
by amitgupta19
won't it lead to the Extra overhead to the Nagios?

Is it recomended or not?

Re: Email Notification Based on the Services

Posted: Thu May 03, 2018 10:57 am
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.