email notifications on Nagios Core 4

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
sysadmin2525
Posts: 10
Joined: Wed Dec 30, 2015 2:05 pm

email notifications on Nagios Core 4

Post by sysadmin2525 »

Good Morning! I recently lost my ability to receive notifications on my nagios 3 setup so took the time to install a fresh nagios 4 build using Ubuntu 14.04. Now I am having trouble getting any email notifications through it as well. We use gmail as our email service and most of the documentation I find is only for exchange servers and in-house stuff. ANY help would be GREAT. I did install postfix but am not sure what I need to edit. I am open to using mailx as well. Whatever works.... thanks so much.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: email notifications on Nagios Core 4

Post by rkennedy »

I was able to find this link http://www.unixmen.com/send-alerts-nagi ... ail-yahoo/ and believe this should work for you.
Former Nagios Employee
sysadmin2525
Posts: 10
Joined: Wed Dec 30, 2015 2:05 pm

Re: email notifications on Nagios Core 4

Post by sysadmin2525 »

I'll give that a try after lunch and see what I get. Thanks a lot! Hadn't run across that one.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: email notifications on Nagios Core 4

Post by rkennedy »

Sounds good. Let us know if you need any assistance.
Former Nagios Employee
sysadmin2525
Posts: 10
Joined: Wed Dec 30, 2015 2:05 pm

Re: email notifications on Nagios Core 4

Post by sysadmin2525 »

I followed the steps and get 2 errors in my pre-flight check.

Error: Service notification command 'notify-service-by-email' specified for contact 'nagiosadmin' is not defined anywhere!
Error: Host notification command 'notify-host-by-email' specified for contact 'nagiosadmin' is not defined anywhere!


I checked under contacts and its listed there as:

define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user

email [email protected] ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******

Any ideas???

I double checked everything and it looks good. i am new to this though....
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: email notifications on Nagios Core 4

Post by rkennedy »

Can you post your commands.cfg for us to review?
Former Nagios Employee
Locked