Would greatly appreciate some help configuring notifications
Posted: Tue Jul 15, 2014 7:15 pm
Hi all, new here. This seems like a great community for support.
I'm stumped at this point. I've got Nagios configured the way I like it, but I cannot seem to get it to actually send any notifications. I'm 99% sure the problem lies in my sendmail configuration, since the Nagios notification config is so straightforward. I am trying to get this to work with sendmail on Ubuntu, so I installed sendmail, and answered yes to all the config questions. My problem at this point is nothing will actually send. If I attempt to use the sendmail command from the terminal, the log located at /var/log/mail.log has the entries for the send attempt, but it always ends in "connection refused by alt4.gmail-smtp-in.l.google.com", or whatever domain I'm trying to send to.
After hours of research, I came across pages saying that this could be caused by an incorrect FQDN. I looked up how to set my FQDN and followed the guides. What I'm left with is this:
in the file /etc/hosts, I have:
and in /etc/hostname I have:
I'm so new to Linux that all I can really do is follow internet tutorials and try to piece everything together in my head (which reeeeally hinders my ability to troubleshoot issues like this), so I appreciate any help. If I forgot to include something you need to help me with this, please say so and I'll add it ASAP.
Thanks!
I'm stumped at this point. I've got Nagios configured the way I like it, but I cannot seem to get it to actually send any notifications. I'm 99% sure the problem lies in my sendmail configuration, since the Nagios notification config is so straightforward. I am trying to get this to work with sendmail on Ubuntu, so I installed sendmail, and answered yes to all the config questions. My problem at this point is nothing will actually send. If I attempt to use the sendmail command from the terminal, the log located at /var/log/mail.log has the entries for the send attempt, but it always ends in "connection refused by alt4.gmail-smtp-in.l.google.com", or whatever domain I'm trying to send to.
After hours of research, I came across pages saying that this could be caused by an incorrect FQDN. I looked up how to set my FQDN and followed the guides. What I'm left with is this:
in the file /etc/hosts, I have:
Code: Select all
127.0.0.1 localhost localhost.localdomain localhost [server's name]
[server's IP address] notify.nagios.com notify
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Code: Select all
notify.nagios.com
Thanks!