[hobbit] no graphs from mpstat

Klomp, H. klomph at nlr.nl
Fri Jan 4 14:43:57 CET 2008


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@=@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: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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080104/2b60368b/attachment.html>


More information about the Xymon mailing list