[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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