eoliphan
Contributor
Contributor

where do agents get the hostname ?

Hi,
I am having a problem where the autodiscovery process is reporting the FQDN of a server as 'localhost.localdomain' and I'm not sure why. Here's the /etc/hosts and the output of 'hostname' on one of the servers where this is happening:

[root@server-6 james.miller]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.3.15 idc-server-6 server-6
192.168.1.14 idc-server-2
192.168.3.30 idc-server-4 server-04
[root@server-6 james.miller]# hostname
server-6
[root@server-6 james.miller]# hostname -f
idc-server-6
[root@server-6 james.miller]#

Both hostname and 'hostname-f' return the server name as expected. Is hyperic reading the hosts file directly or something ?

Thanks
0 Kudos
1 Reply
dougm_hyperic
VMware Employee
VMware Employee

It isn't reading /etc/hosts directly, but this is a bug we've fixed
for the next release. In the meantime, you can workaround by doing
one of the following:

add the fqdn to your /etc/hosts:
192.168.3.15 idc-server-6 server-6 server-6.vantixweb.com

Or add the following property to ~/.hq/agent.properties or ./
agent.properties:

platform.fqdn=server-6.vantixweb.com

On Nov 16, 2006, at 9:19 AM, Erich Oliphant wrote:

> Hi,
> I am having a problem where the autodiscovery process is reporting
> the FQDN of a server as 'localhost.localdomain' and I'm not sure
> why. Here's the /etc/hosts and the output of 'hostname' on one of
> the servers where this is happening:
>
> [root@server-6 james.miller]# cat /etc/hosts
> 127.0.0.1 localhost.localdomain localhost
> 192.168.3.15 idc-server-6 server-6
> 192.168.1.14 idc-server-2
> 192.168.3.30 idc-server-4 server-04
> [root@server-6 james.miller]# hostname
> server-6
> [root@server-6 james.miller]# hostname -f
> idc-server-6
> [root@server-6 james.miller]#
>
> Both hostname and 'hostname-f' return the server name as expected.
> Is hyperic reading the hosts file directly or something ?
>
> Thanks


0 Kudos