hi,
On Jun 16, 10:01pm, Cameron_C_Caffee@xxxxxxxxxxxxxxxxxx wrote:
> Subject: Re: New PCPMON 1.2.95 - archive mode added
> ...
>
> on RH :
>
this'll be the same for all distro's.
> /var/pcp/config/pmlogger/control # reference your config in place
> of config.default
>
> /var/pcp/config/pmlogger/config.mine # configure desired metrics
> here -
> ref output of pminfo
>
> /etc/rc.d/init.d/pcp stop # restart pcp to take effect
> /etc/rc.d/init.d/pcp start
>
>
> > You have defined that you want some metrics (kernel.all.cpu.idle) from
> localhost,
> >but you didn't defined in which archive the stored metrics for localhost
> >could
> be found.
>
> I gather when pcp logs data from the host its running on, those metrics are
> stored as node "localhost".
> Any way to offer pcp data from localhost as its node name (e.g. "swampy") ?
>
if you use the LOCALHOSTNAME syntax in your customised
/var/pcp/config/pmlogger/control file, then pmlogger_check
uses this little bit of shell to figure out what that
hostname equates to:
# determine real name for localhost
_lhnm=`which hostname 1>/dev/null && hostname`
LOCALHOSTNAME=${_lhnm:-localhost}
so, you can either:
- use "swampy" explicitly in your pmlogger control file; or
- figure out why the hostname command on the "_lhnm=" line
above isn't giving the name you're expecting
cheers.
--
Nathan
|