Nagios not sending emails
-
- Posts: 27
- Joined: Sun Jun 28, 2015 7:01 am
Nagios and Exim
Hi Guys,
I have taken over a Linux Wheezy box with Nagios and Cactii. The last administrator has left. Email alerts no longer work. Telnet reveals that Exim is listening on port 25. Here is Exim's log. How do I fix this so I can get email alerts again?
2015-06-28 06:25:06 1Z8wev-0006Te-Ia <= root@watchtower U=root P=local S=901
2015-06-28 06:25:06 1Z8wev-0006Te-Ia ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:25:06 1Z8wew-0006Ti-Kl <= <> R=1Z8wev-0006Te-Ia U=Debian-exim P=local S=1727
2015-06-28 06:25:06 1Z8wev-0006Te-Ia Completed
2015-06-28 06:25:06 1Z8wew-0006Ti-Kl ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:25:06 1Z8wew-0006Ti-Kl Frozen (delivery error message)
2015-06-28 06:39:02 1Z8wsQ-0003lI-6s <= root@watchtower U=root P=local S=869
2015-06-28 06:39:02 1Z8wsQ-0003lI-6s ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:39:03 1Z8wsQ-0003lO-V8 <= <> R=1Z8wsQ-0003lI-6s U=Debian-exim P=local S=1695
2015-06-28 06:39:03 1Z8wsQ-0003lI-6s Completed
2015-06-28 06:39:03 1Z8wsQ-0003lO-V8 ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:39:03 1Z8wsQ-0003lO-V8 Frozen (delivery error message)
2015-06-28 06:49:17 Start queue run: pid=30675
2015-06-28 06:49:17 1Z8YWk-0002Ym-7h Message is frozen
2015-06-28 06:49:17 1Z8MLu-0001wZ-D5 Message is frozen
2015-06-28 06:49:17 1Z8Nl1-0005LO-11 Message is frozen
2015-06-28 06:49:17 1Z8uXG-00010e-A0 Message is frozen
2015-06-28 06:49:17 1Z8SRK-0002JC-Aq Message is frozen
2015-06-28 06:49:17 1Z8ck2-00045e-BP Message is frozen
2015-06-28 06:49:17 1Z8iMQ-0000Rr-W9 Message is frozen
2015-06-28 06:49:17 1Z8GGU-0007ZP-QW Message is frozen
2015-06-28 06:49:17 1Z8htO-0004xy-EP Message is frozen
2015-06-28 06:49:17 1Z8Zvq-0005sI-Oh Message is frozen
2015-06-28 06:49:17 1Z8ZSo-0001yL-7q Message is frozen
2015-06-28 06:49:17 1Z8ErO-0004A7-FW Message is frozen
2015-06-28 06:49:17 1Z8JXi-0003dD-N5 Message is frozen
2015-06-28 06:49:17 1Z8Mow-0005uk-U3 Message is frozen
2015-06-28 06:49:17 1Z8lde-0002Xf-MT Message is frozen
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py Unfrozen by errmsg timer
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py alecsu@watchtower <root@watchtower>: error ignored
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py Completed
2015-06-28 06:49:17 1Z8jIU-0008I4-R5 Message is frozen
2015-06-28 06:49:17 1Z8Ibe-0004Dm-Tk Message is frozen
2015-06-28 06:49:17 1Z8WBa-0008J6-8v Message is frozen
2015-06-28 06:49:17 1Z8rG2-0007Kj-UN Message is frozen
2015-06-28 06:49:17 1Z8wPO-0008FB-4H Message is frozen
2015-06-28 06:49:17 1Z8KTm-00035u-Ei Message is frozen
Thanks
I have taken over a Linux Wheezy box with Nagios and Cactii. The last administrator has left. Email alerts no longer work. Telnet reveals that Exim is listening on port 25. Here is Exim's log. How do I fix this so I can get email alerts again?
2015-06-28 06:25:06 1Z8wev-0006Te-Ia <= root@watchtower U=root P=local S=901
2015-06-28 06:25:06 1Z8wev-0006Te-Ia ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:25:06 1Z8wew-0006Ti-Kl <= <> R=1Z8wev-0006Te-Ia U=Debian-exim P=local S=1727
2015-06-28 06:25:06 1Z8wev-0006Te-Ia Completed
2015-06-28 06:25:06 1Z8wew-0006Ti-Kl ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:25:06 1Z8wew-0006Ti-Kl Frozen (delivery error message)
2015-06-28 06:39:02 1Z8wsQ-0003lI-6s <= root@watchtower U=root P=local S=869
2015-06-28 06:39:02 1Z8wsQ-0003lI-6s ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:39:03 1Z8wsQ-0003lO-V8 <= <> R=1Z8wsQ-0003lI-6s U=Debian-exim P=local S=1695
2015-06-28 06:39:03 1Z8wsQ-0003lI-6s Completed
2015-06-28 06:39:03 1Z8wsQ-0003lO-V8 ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:39:03 1Z8wsQ-0003lO-V8 Frozen (delivery error message)
2015-06-28 06:49:17 Start queue run: pid=30675
2015-06-28 06:49:17 1Z8YWk-0002Ym-7h Message is frozen
2015-06-28 06:49:17 1Z8MLu-0001wZ-D5 Message is frozen
2015-06-28 06:49:17 1Z8Nl1-0005LO-11 Message is frozen
2015-06-28 06:49:17 1Z8uXG-00010e-A0 Message is frozen
2015-06-28 06:49:17 1Z8SRK-0002JC-Aq Message is frozen
2015-06-28 06:49:17 1Z8ck2-00045e-BP Message is frozen
2015-06-28 06:49:17 1Z8iMQ-0000Rr-W9 Message is frozen
2015-06-28 06:49:17 1Z8GGU-0007ZP-QW Message is frozen
2015-06-28 06:49:17 1Z8htO-0004xy-EP Message is frozen
2015-06-28 06:49:17 1Z8Zvq-0005sI-Oh Message is frozen
2015-06-28 06:49:17 1Z8ZSo-0001yL-7q Message is frozen
2015-06-28 06:49:17 1Z8ErO-0004A7-FW Message is frozen
2015-06-28 06:49:17 1Z8JXi-0003dD-N5 Message is frozen
2015-06-28 06:49:17 1Z8Mow-0005uk-U3 Message is frozen
2015-06-28 06:49:17 1Z8lde-0002Xf-MT Message is frozen
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py Unfrozen by errmsg timer
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py ** alecsu@watchtower <root@watchtower>: Unrouteable address
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py alecsu@watchtower <root@watchtower>: error ignored
2015-06-28 06:49:17 1Z8Dhn-0007S7-Py Completed
2015-06-28 06:49:17 1Z8jIU-0008I4-R5 Message is frozen
2015-06-28 06:49:17 1Z8Ibe-0004Dm-Tk Message is frozen
2015-06-28 06:49:17 1Z8WBa-0008J6-8v Message is frozen
2015-06-28 06:49:17 1Z8rG2-0007Kj-UN Message is frozen
2015-06-28 06:49:17 1Z8wPO-0008FB-4H Message is frozen
2015-06-28 06:49:17 1Z8KTm-00035u-Ei Message is frozen
Thanks
-
- Posts: 27
- Joined: Sun Jun 28, 2015 7:01 am
Nagios not sending emails
Hi Guys,
I took over a Debian Wheezy box from another administrator that has Nagios and Cactii. I think he must have deleted his Exim account or something because emails no longer work. I have made the correct adjustments in Nagios SQL, but there seems to be another issue. Anyone ever used Exim with Nagios and know how to trouble shoot?
Thanks,
I took over a Debian Wheezy box from another administrator that has Nagios and Cactii. I think he must have deleted his Exim account or something because emails no longer work. I have made the correct adjustments in Nagios SQL, but there seems to be another issue. Anyone ever used Exim with Nagios and know how to trouble shoot?
Thanks,
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios not sending emails
What do you get when you `ping watchtower`?Darth_Panda wrote:2015-06-28 06:25:06 1Z8wev-0006Te-Ia ** alecsu@watchtower <root@watchtower>: Unrouteable address
My guess is that your mail server's "FQ"DN changed. To conform to RFC's I think you need to put in your suffix also - but realistically I guess it should work if it's not there depending on how fussy of an MTA Exim is.
-
- Posts: 27
- Joined: Sun Jun 28, 2015 7:01 am
Re: Nagios not sending emails
root@watchtower:~# ping watchtower
PING watchtower (172.16.1.231) 56(84) bytes of data.
From 172.16.1.98 icmp_seq=1 Destination Host Unreachable
From 172.16.1.98 icmp_seq=2 Destination Host Unreachable
From 172.16.1.98 icmp_seq=3 Destination Host Unreachable
From 172.16.1.98 icmp_seq=4 Destination Host Unreachable
From 172.16.1.98 icmp_seq=5 Destination Host Unreachable
From 172.16.1.98 icmp_seq=6 Destination Host Unreachable
From 172.16.1.98 icmp_seq=7 Destination Host Unreachable
From 172.16.1.98 icmp_seq=8 Destination Host Unreachable
From 172.16.1.98 icmp_seq=9 Destination Host Unreachable
PING watchtower (172.16.1.231) 56(84) bytes of data.
From 172.16.1.98 icmp_seq=1 Destination Host Unreachable
From 172.16.1.98 icmp_seq=2 Destination Host Unreachable
From 172.16.1.98 icmp_seq=3 Destination Host Unreachable
From 172.16.1.98 icmp_seq=4 Destination Host Unreachable
From 172.16.1.98 icmp_seq=5 Destination Host Unreachable
From 172.16.1.98 icmp_seq=6 Destination Host Unreachable
From 172.16.1.98 icmp_seq=7 Destination Host Unreachable
From 172.16.1.98 icmp_seq=8 Destination Host Unreachable
From 172.16.1.98 icmp_seq=9 Destination Host Unreachable
Re: Nagios not sending emails
Hostname should resolve. Run the following commands and show us the output:
Code: Select all
hostname
hostname -i
echo "test mail." | mail -s Test root@watchtower
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 27
- Joined: Sun Jun 28, 2015 7:01 am
Re: Nagios not sending emails
Thanks, here it is. Something is definitely wrong because it should be a 172.16.1.98 address. How do I change the host record?
Last login: Tue Jun 30 21:35:52 2015 from 172.16.1.90
root@watchtower:~# hostname
watchtower
root@watchtower:~# hostname -i
172.16.1.231
root@watchtower:~# echo "test mail." | mail -s Test root@watchtower
Last login: Tue Jun 30 21:35:52 2015 from 172.16.1.90
root@watchtower:~# hostname
watchtower
root@watchtower:~# hostname -i
172.16.1.231
root@watchtower:~# echo "test mail." | mail -s Test root@watchtower
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios not sending emails
Admittedly you have me confused.
According to your log output it appears that you're trying to send E-mail to a host named "watchtower" - it also appears that watchtower is your Nagios host. Is your Nagios box also your mail server?
Also - yes your host resolution is messed up. Either you have a bad entry in your /etc/hosts file or your DNS is broken.
show us the contents of /etc/hosts
According to your log output it appears that you're trying to send E-mail to a host named "watchtower" - it also appears that watchtower is your Nagios host. Is your Nagios box also your mail server?
Also - yes your host resolution is messed up. Either you have a bad entry in your /etc/hosts file or your DNS is broken.
Your watchtower host is at 172.16.1.98 but is resolving itself to 172.16.1.231.Darth_Panda wrote:Code: Select all
root@watchtower:~# ping watchtower PING watchtower (172.16.1.231) 56(84) bytes of data. From 172.16.1.98 icmp_seq=1 Destination Host Unreachable
show us the contents of /etc/hosts
-
- Posts: 27
- Joined: Sun Jun 28, 2015 7:01 am
Re: Nagios not sending emails
Sorry for the delay, here it is;
Code: Select all
127.0.0.1 localhost
172.16.1.231 watchtower
# 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
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Nagios not sending emails
Is that watchtower line correct? It doesn't seem so based upon your earlier diagnostics...
If it's not correct - correct it.
If you can (meaning if DNS works in your environment) remove it entirely.
If it's not correct - correct it.
If you can (meaning if DNS works in your environment) remove it entirely.
wikipedia wrote: The Domain Name System, first described in 1983 and implemented in 1984,[1] automated the publication process and provided instantaneous and dynamic hostname resolution in the rapidly growing network.
-
- Posts: 27
- Joined: Sun Jun 28, 2015 7:01 am
Re: Nagios not sending emails
Thanks, I have decided to decommission this server. I am setting up a new Nagios server so I will be setting up email from scratch.