[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tue, 14 Feb 2012 10:14:42 +0100
monit <= 5.2.4 used just the libc's interface gethostname(), which should
match the output of the "hostname" CLI utility.
monit >= 5.2.5 gets the hostname also via gethostname(), but then also tries to
resolve that name to get the fully qualified domain name using system's
getaddrinfo() API (the resolver is driven by nsswitch.conf and resolv.conf).
1.) which monit versions are running the two hosts which report as
"localhost.localdomain" and which monit versions those who report correct
2.) what is the "hostname" output on host with "localhost.localdomain"?
3.) what is the "getent hosts `hostname`" output on host with
On Feb 9, 2012, at 11:10 AM, Lawrence, Wayne wrote:
> Just a quick question if anyone can answer it. Where does monit get the
> hostname from?
> I have serveral servers which all report their correct hostanme at the cli
> but when i get emails from monit or view them in m/monit they show as
> localhost.localdomain. One reports everything coreclty the other 2 are giving
> the localhost/localdomain problem.
> I know the server names are correct as they all resolve correctly but I want
> consistency across my servers.
> To unsubscribe:
- hostnames, Lawrence, Wayne, 2012/02/09
- Re: hostnames,
Martin Pala <=