Page 2 of 2

Re: Nagios Error after sending test notifications... Solved

Posted: Wed Aug 31, 2016 8:27 am
by rkennedy
Looking at the error here -

Code: Select all

Aug 31 06:10:03 xxxxxxxxxxx sendmail[12448]: My unqualified host name (xxxxxxxxxxx) unknown; sleeping for retry
Aug 31 06:11:03 xxxxxxxxxxx sendmail[12448]: unable to qualify my own domain name (xxxxxxxxxxx) -- using short name
I believe you'll need to add local resolution to your /etc/hosts file for the hostname your machine has assigned. For example, if my server was named nagios, it would look like this -

Code: Select all

[root@localhost libexec]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 nagios nagios.fqdn.ext
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
If that doesn't work, please post your full /etc/hosts file, the output of hostname, and a tail of your maillog once again.

Re: Nagios Error after sending test notifications... Solved

Posted: Sun Sep 04, 2016 9:28 pm
by eloyd
@rkennedy is correct. Sendmail will require hostname resolution. /etc/hosts is the easiest way to make this work, but if this is a production Nagios server and you're running DNS, you may want to consider adding it to your DNS server setup as well/instead.

Re: Nagios Error after sending test notifications... Solved

Posted: Tue Sep 06, 2016 9:27 am
by tmcdonald
@lee.krause please keep us posted!