Problem with sending Email Notifications

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
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Problem with sending Email Notifications

Post by nagmoto »

Hi,

I am able to send email notifications if I add the "contact_groups" to the "Host Definition Template" in "templates.cfg" and use that template definition in "Host Definition" (Ex: use linux-server)
But I am having problem in sending emails when I add "contact_groups directly to the Host Definition".

Any help would be appreciated in helping to solve this issue.

Thanks.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Problem with sending Email Notifications

Post by jdalrymple »

What you're describing could be occurring for a number of reasons.

Can we see the host definition and also the linux-server (or whichever) template definition? Also, is it a service alert or a host alert you're expecting but not receiving?

Also, is this an XI system where you are working in Core, or is this just a Core system?
nagmoto
Posts: 195
Joined: Fri Jan 09, 2015 8:05 am

Re: Problem with sending Email Notifications

Post by nagmoto »

Hi jdalrymple,

We have figured out the issue.

All the contact were defined correctly, but we did not define the contact_groups in both host definitions and service definitions.

As there was no host down, we did not see any emails sent out. After adding the contact_groups to service definitions we started to see emails sent out when ever there is a change in service state.

Sorry for the delay in response.

Thanks.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Problem with sending Email Notifications

Post by tmcdonald »

Not a problem. I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked