email notifications on Nagios Core 4
-
sysadmin2525
- Posts: 10
- Joined: Wed Dec 30, 2015 2:05 pm
email notifications on Nagios Core 4
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
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
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
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
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....
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
Can you post your commands.cfg for us to review?
Former Nagios Employee