pcp
[Top] [All Lists]

Re: PCP - pmlogger command

To: kenj@xxxxxxxxxxxxxxxx
Subject: Re: PCP - pmlogger command
From: Sai p Seshasayee <sseshas@xxxxxxxxxx>
Date: Tue, 2 Sep 2008 20:28:53 -0400
Cc: Nathan Scott <nscott@xxxxxxxxxx>, pcp@xxxxxxxxxxx, pcp-bounce@xxxxxxxxxxx
In-reply-to: <1220399751.15444.38.camel@bozo>
Sender: pcp-bounce@xxxxxxxxxxx

Ken/Nathan,

I want the pmlogger to work only for 1 min (because I am planning to set that as a cron job and schedule it) and hence I want to use "-T1min".
Regarding the removal of the archiving name, Ken, you are spot on: I removed the "sai_logger" archive name and this time I did not get any errors!
I was able to see the process running and it was generating a file named "20080902.20.17". But here is where the problem comes again : I did a search for the file "20080902.20.17" but I was not able to find it. Where will the archive be stored and how can I replay it using "kmchart -a " command?

I am also planning to use "pmstat" command on multiple hosts to capture some information and store it in a database. The o/p comes like this:

[root@xcat20mn xCAT_monitoring]# pmstat -h cu03sv -hxcat20mn -s1 -t0.1
@ Tue Sep  2 16:26:18 2008
node    loadavg               memory      swap        io    system         cpu
          1 min   swpd   buff  cache   pi   po   bi   bo   in   cs  us  sy  id
cu03sv     0.00      0  79068   987m    0    0    0    0  199  199   0   0 100
xcat20m    0.04      0  1717m  3000m    0    0    0    0 1109  309   0   0 100

But I want the heading to suppressed i.e the o/p should only be:

cu03sv     0.00      0  79068   987m    0    0    0    0  199  199   0   0 100
xcat20m    0.04      0  1717m  3000m    0    0    0    0 1109  309   0   0 100

I also want it to appear with a delimiter. Is it possible ? You have been very helpful and I trust this question should be a piece of cake for you !

Thanks and Regards
Sai Prakash
Poughkeepsie Unix Development Lab
IBM Systems and Technology Group
External: 845-435-4720
email: sseshas@xxxxxxxxxx
Notes: Sai p Seshasayee/Poughkeepsie/IBM

"Always speak the truth, that way you dont need to remember what you said  !"



Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Sent by: pcp-bounce@xxxxxxxxxxx

09/02/2008 07:55 PM
Please respond to
kenj@xxxxxxxxxxxxxxxx

To
Nathan Scott <nscott@xxxxxxxxxx>
cc
Sai p Seshasayee/Poughkeepsie/IBM@IBMUS, pcp@xxxxxxxxxxx
Subject
Re: PCP -  pmlogger command





Nathan beat me to it.

But the other "odd" thing is the sai_logger at the end of the pmlogger
control line.

My guess is this was an attempt at naming the archive, but
pmlogger_check generates the archive name automagically (it is a date
and time stamp) ... so I think that explains the usage message, the lack
of a pmlogger.log file, no archive, etc.

If I use the same control line, I get the same error!

So
1. change the -T1min to -t1min (or drop it entirely and move the logging
intervals into the pmlogger config file where you can choose appropriate
and possibly different intervals per group of metrics)

2. drop the sai_logger at the end of the control line

On Wed, 2008-09-03 at 09:11 +1000, Nathan Scott wrote:
> On Tue, 2008-09-02 at 09:15 -0400, Sai p Seshasayee wrote:
> >
> > Hi Ken,
> >
> > Thanks for your inputs. My host is "xcat20mn". I have only 1 entry in
> > the "/var/lib/pcp/config/pmlogger/control" file but an interesting
> > thing is that I have 2 pmlogger process running (I don't know how).
>
> You have 2 pmlogger_check processes running (this is a shell script,
> which tries to start pmlogger and can be used to check its running at
> any interval).  You have no pmlogger processes running.
>
> >From your control file, this line:
>
> xcat20mn y n PCP_LOG_DIR/pmlogger/xcat20mn -cconfig.base -T1min
> sai_logger
>
> Looks like "-T1min" may be the problem - that means "terminate after
> 1 minute".  What you want, I suspect, is "-t1min" which means "sample
> every 1 minute by default".
>
> cheers.
>
> --
> Nathan
>
>



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