pcp
[Top] [All Lists]

Re: PMLogger question/suggestion

To: Michal Kara <lemming@xxxxxxxxxxxxxxxxxxx>
Subject: Re: PMLogger question/suggestion
From: Mark Goodwin <markgw@xxxxxxx>
Date: Wed, 22 Nov 2000 19:35:13 +1100 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <20001122090114.B5811@xxxxxxxxxxxxxxxxxxx>
Sender: owner-pcp@xxxxxxxxxxx
On Wed, 22 Nov 2000, Michal Kara wrote:

> > From what I can gather, you should use a Makefile to drive cpp in the
> > /var/pcp/config/pmlogger directory.
> 
>   I have created such Makefile. It is universal - it takes all .src files and
> preprocesses them and it also automagically handles dependencies. I can send 
> it
> to you, if you are interested.

yes please. There would be no harm in including it in the pcp distro. As with
your previous contributions, you need to give it to SGI before I can include
it in the distribution.

> 
> > I think all of this pmlogger management stuff you need is already
> > available.  Check out the man page for pmlogger_check(1). This is an
> > extensible cron based pcp archive log management infrastructure driven
> > by the control file in /var/pcp/config/pmlogger/control. Suitable/example
> > cron entries are in /var/pcp/config/pmlogger/crontab.
> 
>   What I wanted to have is command "restart pmlogger for server
> host1.domain.com". But it is not too complicated, I realized that the names of
> the servers are in commandline of the process, so "ps x | grep pmlogger" and
> then kill the process works. 

so this is a "kill and then restart" situation, right? pmlogger_check will only
only start the pmloggers if they have died or not running ...

> (I use pmlogger_check and pmlogger_daily and also
> my own script to merge all logs for each of the monitored hosts (made when pcp
> restarted or pmda went down...))

pmlogger_daily and/or pmlogger_merge should be enough to merge the daily
logs .. but knowing you, your own script was necessary ;-)

> 
> > That is far too much CPU time for such a low fetch rate. Can you send me 
> > your
> > pmlogger configs and/or gprof /var/pcp/pmdas/linux/pmdalinux (this is the
> > daemon form of the linux PMDA dso, so you can profile it. You'll need to
> > edit /var/pcp/config/pmcd/pmcd.conf to change from DSO to daemon).
> 
>   Hmpf, it is much better today (???) Maybe some kind of error... If it 
> appears
> again, I will investigate it...
> 

ok thanks

-- Mark


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