pcp
[Top] [All Lists]

Re: pmlogger_check.sh in 2.3.1-4

To: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>
Subject: Re: pmlogger_check.sh in 2.3.1-4
From: Alan Hoyt <ahoyt@xxxxxxxxxxxxx>
Date: Wed, 06 Aug 2003 11:28:51 -0500
Cc: PCP <pcp@xxxxxxxxxxx>
In-reply-to: <3F309501.9010609@xxxxxxxxxxxxx>
References: <Pine.SGI.4.40.0308061004070.28401-100000@xxxxxxxxxxxxxxxxxxxxxxxx> <3F309501.9010609@xxxxxxxxxxxxx>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030718
Alan Hoyt wrote:

Ken McDonell wrote:

On Tue, 5 Aug 2003, Alan Hoyt wrote:

Line 64 was changed from LOCALHOSTNAME=`hostname` LOCALHOSTNAME=`hostname -s`


At that point we need the short form of the hostname, and on some
systems hostname returns the fully qualified domain name, while hostname -s
returns the short name.

What was the logic behind this change?


I haven’t tested it exhaustively but it seems to work correctly either way – with a fully qualified name or a short name. That's why the addition of the -s flag wasn't clear to me.


Ok, the logger control file specifies the logger instance (controlling pmlogger_check) and this change fixed the inability to stipulate short names in the control file - so it's necessary to work for all cases.

 - Alan -



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