[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] no graphs from mpstat
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] no graphs from mpstat
- From: "Hubbard, Greg L" <greg.hubbard (at) eds.com>
- Date: Fri, 4 Jan 2008 08:33:43 -0600
- References: <BFC91AB2421223439608BFFF2225BAA1B29D428B48 (at) EXCHANGE-NOP.nlr.nl><0DC212FE7F69B24F81D2C4F1E65FCC23028F6DCB (at) svits11.main.ad.rit.edu> <BFC91AB2421223439608BFFF2225BAA1B29D428B52 (at) EXCHANGE-NOP.nlr.nl>
- Thread-index: AchOwKSSSPcx0ai3Sd2MGJHk7UPqngAD3zlgAAGgPlAAAb9UYA==
- Thread-topic: [hobbit] no graphs from mpstat
Bert,
If "rrd_data.pl" is an external processor, it does not send data to RRD
directly -- it simply emits the commands needed for the Hobbit process
to update the RRD. Based on what you posted, I think you are on the
right track -- the rrd_data.pl script is not parsing the test data in
order to get data for multiple CPU's, so it is not issuing the proper
commands to update multiple RRD's. I suspect that the person who wrote
this section of the script probably assumed there would only be one CPU
reported, or only the aggregate needed to be graphed. Not a bad
assumption, but it is not working for you.
Since "rrd_data.pl" is a custom script, you will have to go back to the
person who wrote the script to get them to update it for you, or you
will need to update it yourself. What you will need to do (in the
section that parses this test) is update the code to track multiple
CPU's and then have it loop through them to generate the RRD commands
for each CPU so the right RRD's are created/updated. Then you need to
double check your Hobbit graph definition to make sure that it can
handle multiple CPU's as well.
Good luck!
GLH
________________________________
From: Klomp, H. [mailto:klomph (at) nlr.nl]
Sent: Friday, January 04, 2008 7:44 AM
To: 'hobbit (at) hswn.dk'
Subject: RE: [hobbit] no graphs from mpstat
Thanks for the input, but all you mentioned is implemented.
It looks like the rrd_data.pl isn't sending the data to the rrd
files.
How can I check that ?
When I run the rrd_data.pl script manually with the
hobbit_mpstat.hostname.send as input file using the command
server/ext/rrd_data.pl sodn034u mpstat
client/tmp/hobbit_mpstat.sodn035u.send
I get the following output:
DS:CPU:GAUGE:600:0:32
DS:usr:GAUGE:600:0:100
DS:sys:GAUGE:600:0:100
DS:wt:GAUGE:600:0:100
DS:idl:GAUGE:600:0:100
mpstat.CPU2.rrd
::::
I'm also puzzled by the name of the RRD file, since there is
only one rrd file created (mpstat.CPU2.rrd)
I would expect that there should be 2 data files, one for each
cpu, called mpstat.CPU.0.rrd and mpstat.CPU.1.rrd
Regards,
Bert Klomp
________________________________
From: Eric Meddaugh [mailto:etmsys (at) rit.edu]
Sent: vrijdag 4 januari 2008 13:52
To: hobbit (at) hswn.dk
Subject: RE: [hobbit] no graphs from mpstat
A couple of things to check:
In the hobbitlaunch.cfg ensure that in the --extra-tests
for the "rrdata" section has "mpstat" listed, also the--extra-script
points to the rrd_data.pl script. It probably does since you are
creating the rrd data files....
In the hobbitserver.cfg, ensure that under the TEST2RRD
"mpstat" is listed., also under the "GRAPHS" section.
Then under the hobbitgraph.cfg file:
[mpstatusr]
TITLE CPU usr Utilitization
YAXIS % Used
FNPATTERN mpstat.CPU(.*).rrd
-u 100
-r
DEF:cpu (at) RRDIDX@= (at) RRDFN@:CPU:AVERAGE
DEF:usr (at) RRDIDX@= (at) RRDFN@:usr:AVERAGE
LINE1:usr (at) RRDIDX@# (at) COLOR@:CPU (at) RRDPARAM@
GPRINT:usr (at) RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:usr (at) RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:usr (at) RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:usr (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
[mpstatsys]
TITLE CPU sys Utilitization
YAXIS % Used
FNPATTERN mpstat.CPU(.*).rrd
-u 100
-r
DEF:cpu (at) RRDIDX@= (at) RRDFN@:CPU:AVERAGE
DEF:sys (at) RRDIDX@= (at) RRDFN@:sys:AVERAGE
LINE1:sys (at) RRDIDX@# (at) COLOR@:CPU (at) RRDPARAM@
GPRINT:sys (at) RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:sys (at) RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:sys (at) RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:sys (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
[mpstatwt]
TITLE CPU wt Utilitization
YAXIS % Used
FNPATTERN mpstat.CPU(.*).rrd
-u 100
-r
DEF:cpu (at) RRDIDX@= (at) RRDFN@:CPU:AVERAGE
DEF:wt (at) RRDIDX@= (at) RRDFN@:wt:AVERAGE
LINE1:wt (at) RRDIDX@# (at) COLOR@:CPU (at) RRDPARAM@
GPRINT:wt (at) RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:wt (at) RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:wt (at) RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:wt (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
[mpstatidl]
TITLE CPU idl Utilitization
YAXIS % Used
FNPATTERN mpstat.CPU(.*).rrd
-u 100
-r
DEF:num (at) RRDIDX@= (at) RRDFN@:CPU:AVERAGE
DEF:idl (at) RRDIDX@= (at) RRDFN@:idl:AVERAGE
LINE1:idl (at) RRDIDX@# (at) COLOR@:CPU (at) RRDPARAM@
GPRINT:idl (at) RRDIDX@:LAST: \: %5.1lf (cur)
GPRINT:idl (at) RRDIDX@:MAX: \: %5.1lf (max)
GPRINT:idl (at) RRDIDX@:MIN: \: %5.1lf (min)
GPRINT:idl (at) RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
Finally, in the bb-hosts file, ensure you have a host
like:
X.X.X.X <hostname> #
TRENDS:*,mpstat:mpstatusr|mpstatsys|mpstatwt|mpstatidl
---Eric
________________________________
From: Klomp, H. [mailto:klomph (at) nlr.nl]
Sent: Friday, January 04, 2008 05:58
To: 'hobbit (at) hswn.dk'
Subject: [hobbit] no graphs from mpstat
I'm trying to setup mpstat to monitor systems with
multiple cpu's, but the graphs are not created.
Can someone help me with this ?
The information is send from the client to the server
and in the rrd data directory I have a file called
mpstat.CPU2.rrd
but there are no values in the last ds (see example)
<ds>
<name> CPU </name>
<type> GAUGE </type>
<minimal_heartbeat> 600
</minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> 3.2000000000e+01 </max>
<!-- PDP Status -->
<last_ds> </last_ds>
<value> NaN </value>
<unknown_sec> 241 </unknown_sec>
</ds>
the contents of the hobbit_mpstat.hostname.send file is
CPUs: 2
CPU0usr: 17.18
CPU0sys: 1.34
CPU0wt: 0.06
CPU0idl: 81.31
CPU1usr: 26.16
CPU1sys: 1.40
CPU1wt: 0.06
CPU1idl: 72.29
And I have copied the rrd_data.pl from the shire and
can't find a typo in it.
Any suggestions would be appriciated.
Regards,
Bert Klomp