Xymon Mailing List Archive search

How to get custom graph to show up in trends

2 messages in this thread

list Jason Chambers · Thu, 20 Sep 2007 11:17:56 -0400 ·
Ok, so I have the following:

bb-hosts
trends:*,bladecenttemp:bladecenttemp

hobbitserver.cfg
GRAPHS="...... ,lines,bladecenttemp"
(Note, that I don't want to use TEST2RRD)

hobbitgraph.cfg
[bladecenttemp]
        TITLE Temperature
        YAXIS Celius
        DEF:a=bladecent_platemp.rrd:bladecent_platemp:AVERAGE
        DEF:b=bladecent_fronttemp.rrd:bladecent_fronttemp:AVERAGE
        AREA:a#980000:"Planar Temp"
        GPRINT:a:LAST:"     Current\:%8.2lf %s"
        GPRINT:a:AVERAGE:"Average\:%8.2lf %s"
        GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"
        AREA:b#FF7800:"Front Panel Temp"
        GPRINT:b:LAST:"Current\:%8.2lf %s"
        GPRINT:b:AVERAGE:"Average\:%8.2lf %s"
        GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

I confirm that I can see the files on data/rrd/(servername)/ yet I can't get the graphs to show up in trends. Can someone point out the step I missed or screwed up on? :)

Jason Chambers     I.T. Helpdesk Associate     [cid:image003.jpg at 01C7FB77.E546C950] <http://www.geosoft.com/>;
XX Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0>; - Toronto, ON, CA - M5H 2C9 - Tel: XXX.XXX.XXXX<skype:+14163690111> ext XXX - Fax: XXX.XXX.XXXX
list Johann Eggers · Thu, 20 Sep 2007 17:41:19 +0200 ·
I use the TREND tag in bb-hosts for this...

 
e.g:

x.x.x.x foo #
TRENDS:*,vmstat:vmstat|vmstat2|vmstat3|vmstat6|vmstat7|vmstat8|vmstat9|v
mstat0,ifmxstats:ifmxstats|ifmxstats1|ifmxstats2|ifmxstats3|ifmxstats4

 
(ifmxstats is a custom test/graph with a couple of subgraphs)

 
From the bb-hosts man page:

 
TRENDS:[*,][![graph,...]]

Defines the RRD graphs to include in the "trends" column generated by
bbgen. This option syntax is complex. 
If this option is not present, bbgen provides graphs matching the
standard set of RRD files: la, disk, memory, users, vmstat, iostat,
netstat, tcp, bind, apache, sendmail 
* If this option is specified, the list of graphs to include start out
as being empty (no graphs). 
* To include all default graphs, use an asterisk. E.g. "TRENDS:*" 
* To exclude a certain graph, speficy it prefixed with '!'. E.g. to see
all graphs except users: "TRENDS:*,!users" 
* The netstat, vmstat and tcp graphs have many "subgraphs". Which of
these are shown can be speficied like this:
"TRENDS:*,netstat:netstat2|netstat3,tcp:http|smtp|conn" This will show
all graphs, but instead of the normal netstat graph, there will be two:
The netstat2 and netstat3 graphs. Instead of the combined tcp graphs
showing all services, there will be three: One for each of the http,
conn and smtp services.

 
Johann
quoted from Jason Chambers

 
From: Jason Chambers [mailto:user-3fa671c0a30d@xymon.invalid] 
Sent: Donnerstag, 20. September 2007 17:18
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] How to get custom graph to show up in trends

 
Ok, so I have the following:

 
bb-hosts

trends:*,bladecenttemp:bladecenttemp

 
hobbitserver.cfg

GRAPHS="...... ,lines,bladecenttemp"

(Note, that I don't want to use TEST2RRD)

 
hobbitgraph.cfg

[bladecenttemp]

        TITLE Temperature

        YAXIS Celius

        DEF:a=bladecent_platemp.rrd:bladecent_platemp:AVERAGE

        DEF:b=bladecent_fronttemp.rrd:bladecent_fronttemp:AVERAGE

        AREA:a#980000:"Planar Temp"

        GPRINT:a:LAST:"     Current\:%8.2lf %s"

        GPRINT:a:AVERAGE:"Average\:%8.2lf %s"

        GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

        AREA:b#FF7800:"Front Panel Temp"

        GPRINT:b:LAST:"Current\:%8.2lf %s"

        GPRINT:b:AVERAGE:"Average\:%8.2lf %s"

        GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

 
I confirm that I can see the files on data/rrd/(servername)/ yet I can't
get the graphs to show up in trends. Can someone point out the step I
missed or screwed up on? :)

 
Jason Chambers     I.T. Helpdesk Associate      

<http://www.geosoft.com/>; 

XX Richmond St W
<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.38285
3&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708
,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&
dtab=0>  - Toronto, ON, CA - M5H 2C9 - Tel: XXX.XXX.XXXX
<skype:+14163690111>  ext XXX - Fax: XXX.XXX.XXXX