Page 1 of 1

email notifications on Nagios Core 4

Posted: Wed Dec 30, 2015 2:11 pm
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.

Re: email notifications on Nagios Core 4

Posted: Wed Dec 30, 2015 2:54 pm
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.

Re: email notifications on Nagios Core 4

Posted: Wed Dec 30, 2015 3:21 pm
by sysadmin2525
I'll give that a try after lunch and see what I get. Thanks a lot! Hadn't run across that one.

Re: email notifications on Nagios Core 4

Posted: Wed Dec 30, 2015 3:28 pm
by rkennedy
Sounds good. Let us know if you need any assistance.

Re: email notifications on Nagios Core 4

Posted: Wed Dec 30, 2015 6:29 pm
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....

Re: email notifications on Nagios Core 4

Posted: Mon Jan 04, 2016 11:16 am
by rkennedy
Can you post your commands.cfg for us to review?