no graphs from mpstat
list H. Klomp
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
list Eric Meddaugh
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@=@RRDFN@:CPU:AVERAGE
DEF:usr at RRDIDX@=@RRDFN@:usr:AVERAGE
LINE1:usr at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:sys at RRDIDX@=@RRDFN@:sys:AVERAGE
LINE1:sys at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:wt at RRDIDX@=@RRDFN@:wt:AVERAGE
LINE1:wt at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:idl at RRDIDX@=@RRDFN@:idl:AVERAGE
LINE1:idl at RRDIDX@#@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:user-b644cde19b47@xymon.invalid]
Sent: Friday, January 04, 2008 05:58
To: 'user-ae9b8668bcde@xymon.invalid'
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
list H. Klomp
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:user-4e1e735fdc96@xymon.invalid]
Sent: vrijdag 4 januari 2008 13:52
To: user-ae9b8668bcde@xymon.invalid
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@=@RRDFN@:CPU:AVERAGE
DEF:usr at RRDIDX@=@RRDFN@:usr:AVERAGE
LINE1:usr at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:sys at RRDIDX@=@RRDFN@:sys:AVERAGE
LINE1:sys at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:wt at RRDIDX@=@RRDFN@:wt:AVERAGE
LINE1:wt at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:idl at RRDIDX@=@RRDFN@:idl:AVERAGE
LINE1:idl at RRDIDX@#@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:user-b644cde19b47@xymon.invalid]
Sent: Friday, January 04, 2008 05:58
To: 'user-ae9b8668bcde@xymon.invalid'
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
list Greg L Hubbard
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:user-b644cde19b47@xymon.invalid]
Sent: Friday, January 04, 2008 7:44 AM
To: 'user-ae9b8668bcde@xymon.invalid'
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:user-4e1e735fdc96@xymon.invalid]
Sent: vrijdag 4 januari 2008 13:52
To: user-ae9b8668bcde@xymon.invalid
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@=@RRDFN@:CPU:AVERAGE
DEF:usr at RRDIDX@=@RRDFN@:usr:AVERAGE
LINE1:usr at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:sys at RRDIDX@=@RRDFN@:sys:AVERAGE
LINE1:sys at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:wt at RRDIDX@=@RRDFN@:wt:AVERAGE
LINE1:wt at RRDIDX@#@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@=@RRDFN@:CPU:AVERAGE
DEF:idl at RRDIDX@=@RRDFN@:idl:AVERAGE
LINE1:idl at RRDIDX@#@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:user-b644cde19b47@xymon.invalid]
Sent: Friday, January 04, 2008 05:58
To: 'user-ae9b8668bcde@xymon.invalid'
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
list Anna Jonna Armannsdottir
▸
On fös, 2008-01-04 at 08:33 -0600, Hubbard, Greg L wrote:
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
Hi Greg, the mentioned custom script ( rrd_data.pl ) seems to be a part of the initial release of mpstat dated 2006-11-26 . Therefore Your answer confuses me. -- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
list Greg L Hubbard
Anna, sorry my answer was confusing. I would change my answer to "you need to contact the people who maintain mpstat for assistance". In my own environment, I have a generic script that handles the graphing needs for all of my custom scripts, so my suggestion was based on what I know to be true about generic graphing under Hobbit. GLH
▸
-----Original Message-----
From: Anna Jonna Armannsdottir [mailto:user-a8cde33204f6@xymon.invalid] Sent: Monday, October 06, 2008 11:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] no graphs from mpstat
On fös, 2008-01-04 at 08:33 -0600, Hubbard, Greg L wrote: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
Hi Greg, the mentioned custom script ( rrd_data.pl ) seems to be a part of the initial release of mpstat dated 2006-11-26 . Therefore Your answer confuses me. -- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.
list Eric Meddaugh
Did you use this reference: http://www.trantor.org/theshire/doku.php/monitors:mpstat Everything should be there to get that mpstat data graphed. ---Eric
▸
-----Original Message-----
From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] Sent: Monday, October 06, 2008 13:50
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] no graphs from mpstat
Anna, sorry my answer was confusing. I would change my answer to "you need to contact the people who maintain mpstat for assistance".
In my own environment, I have a generic script that handles the graphing needs for all of my custom scripts, so my suggestion was based on what I know to be true about generic graphing under Hobbit.
GLH
-----Original Message-----
From: Anna Jonna Armannsdottir [mailto:user-a8cde33204f6@xymon.invalid] Sent: Monday, October 06, 2008 11:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] no graphs from mpstat
On fös, 2008-01-04 at 08:33 -0600, Hubbard, Greg L wrote: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
Hi Greg, the mentioned custom script ( rrd_data.pl ) seems to be a part of the initial release of mpstat dated 2006-11-26 . Therefore Your answer confuses me. -- Kindest Regards, Anna Jonna Ármannsdóttir, %& A: Because people read from top to bottom. Unix System Aministration, Computing Services, %& Q: Why is top posting bad? University of Iceland.