Nagios Error after sending test notifications... Solved

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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.
Former Nagios Employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

@lee.krause please keep us posted!
Former Nagios employee
Locked