pcp
[Top] [All Lists]

Re: pmhostname failing - urgent

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: pmhostname failing - urgent
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sat, 16 Nov 2013 06:04:13 +1100
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <y0m7gc91x0f.fsf@xxxxxxxx>
References: <000201cee1ed$6a1171f0$3e3455d0$@internode.on.net> <y0m7gc91x0f.fsf@xxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
On 16/11/13 02:54, Frank Ch. Eigler wrote:
"Ken McDonell" <kenj@xxxxxxxxxxxxxxxx> writes:

[...]
Pmhostname returns ?Unknown Host? for valid hostnames that can be looked up
with nslookup.

There have been no material changes to pmhostname in recent releases.

pmhostname does next to nothing, so I'd expect the changes to be in libpcp below __pmGetAddrInfo() or __pmHostEntGetName().

They don't necessarily have to be recent changes, this was an upgrade from a very old working PCP installation.

It could even be something fixed between 3.8.0 and 3.8.9.

This is really bad and breaking a HUGE pmlogger farm because
pmlogger_check is failing to look up every single host in the
control file.

However, current pmlogger_check doesn't use pmhostname.  The host
field from the control file is passed to pmlogconf/pmlogger pretty
much verbatim.  Can you give an extract of the control file and the
pmlogger log files to see what's up?

- FChE


in pcp-3.8.0-1.el6.x86_64

$ grep pmhostname /usr/libexec/pcp/bin/pmlogger_check
        if [ "X$host" != "X$LOCALHOSTNAME" -a "X$host" != "X`pmhostname`" ]
        fqdn=`pmhostname $host | sed -e 's/@.*//'`

<Prev in Thread] Current Thread [Next in Thread>