Xymon Mailing List Archive search

zonestat : where are graphs ?

list Galen Johnson
Wed, 16 May 2007 22:16:40 -0400
Message-Id: <user-36e53c965dec@xymon.invalid>

Eric Meddaugh wrote:
Yes, that’s the only thing I see missing as well to get it working. The zonestat only monitors inside the global zone.

Also for “mpstat” at: http://www.trantor.org/theshire/doku.php/monitors:mpstat

You’ll need to add the “mpstat” to the hobbitserver.cfg in TEST2RRD and GRAPHS

In the bb-hosts to enable the mpstat graphing you need the tags: mpstat:mpstatusr|mpstatsys|mpstatwt|mpstatidl

Also for “mpstat”, you’ll need to add the graph definitions into hobbitgraph.cfg:

[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

The rrd_data.pl script can be expanded for each site, we use it for more than just mpstat and zonestat. There is a specific format it expects the data to be in to read it quickly.

---Eric


*From:* Peter Welter [mailto:user-f55666bd0d1e@xymon.invalid]
*Sent:* Wednesday, May 16, 2007 06:25
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] zonestat : where are graphs ?

Wow this was the update I needed, thanks!

Trantor.org <http://Trantor.org>; needs to be updated only for one thing as Eric said:

"
--In the hobbitserver.cfg in the TEST2RRD and GRAPHS entry:

zonestat
"

2007/5/16, Nicolas Dorfsman <user-ef21b83534bb@xymon.invalid <mailto:user-ef21b83534bb@xymon.invalid>>:

2007/5/14, Eric Meddaugh <user-4e1e735fdc96@xymon.invalid <mailto:user-4e1e735fdc96@xymon.invalid>>:
You also need the follow:
Thanks a lot Eric !

Seems to miss something :

hobbitlaunch.log
2007-05-16 10:42:58 No command to pass data to
2007-05-16 10:42:58 Task rrddata terminated, status 1

Thanks, Eric...fixed.

=G=