[hobbit] rrd graphs from devmon scripts

Jones, Jason (Altrincham) JasonAS_Jones at mentor.com
Fri Nov 10 10:35:09 CET 2006


If I say I was testing the list would you nod and go along with it? :D
thanks for the help it works now, is there any kind of log file for this
stuff so I can look at that for next time?

Thanks again,
Jason.

-----Original Message-----
From: Johann Eggers [mailto:Johann.Eggers at teleatlas.com] 
Sent: 09 November 2006 17:11
To: hobbit at hswn.dk
Subject: RE: [hobbit] rrd graphs from devmon scripts



> -----Original Message-----
> From: Jones, Jason (Altrincham) [mailto:JasonAS_Jones at mentor.com]
> Sent: Donnerstag, 9. November 2006 14:18
> To: hobbit at hswn.dk
> Subject: [hobbit] rrd graphs from devmon scripts
> 
> Hi all,
> 
> I was working on this problem a few days ago (got side tracked by new
> people) anyway, I have been trying to get a devmon script to show a
rrd
> graph, thus far to no success, I have changed hobbitserver.cfg to look
> like:
> 
> TEST2RRD="cpu=la,disk,etc. etc.,temp=ncv"
> 
> NCV_temp="Averagetemp:GAUGE,Tempprobe1:GAUGE,Tempprobe2:GAUGE"
> 
> GRAPHS="la,disk,inode,etc. etc.,temp"
> 
> I have also made an entry for the graph in hobbitgraph.cfg:
> [temp]
>         TITLE Termperature
>         YAXIS Celsuis
>         DEF:avg=temp.rrd:Averagetemp:AVERAGE
>         DEF:probe1=temp.rrd:Tempprobe1:AVERAGE
>         DEF:probe2=temp.rrd:Tempprobe2:AVERAGE
>         LINE2:avg#ff0000:Average Temp
>         LINE2:probe1#000000:Temp Probe 1
>         LINE2:probe2#000080:Temp Probe 2
>         COMMENT:\n
>         GPRINT:avg:LAST:Average Temp \: %5.1lf%s (cur)
>         GPRINT:avg:MAX \: %5.1lf%s (max)
You have a typo here----^ you have to insert a ':' after the MAX

>         GPRINT:avg:MIN: \: %5.1lf%s (min)
>         GPRINT:avg:AVERAGE: \: %5.1lf%s (avg)\n
>         GPRINT:probe1:LAST:Average Temp \: %5.1lf%s (cur)
>         GPRINT:probe1:MAX \: %5.1lf%s (max)
Same here------------------^
>         GPRINT:probe1:MIN: \: %5.1lf%s (min)
>         GPRINT:probe1:AVERAGE: \: %5.1lf%s (avg)\n
>         GPRINT:probe2:LAST:Average Temp \: %5.1lf%s (cur)
>         GPRINT:probe2:MAX \: %5.1lf%s (max)
And here-------------------^
>         GPRINT:probe2:MIN: \: %5.1lf%s (min) (avg)\n
>         GPRINT:probe2:AVERAGE: \: %5.1lf%s
> 

Sometimes 'cut-and-paste' isn't your friend ;)
Fixing the typo's, the defined graph should appear...

> The rrd file is there and doing a rrdtool dump outputs:
> 
> <rrd>
>         <version> 0003 </version>
>         <step> 300 </step> <!-- Seconds -->
>         <lastupdate> 1163077800 </lastupdate> <!-- 2006-11-09 13:10:00
> GMT -->
> 
>         <ds>
>                 <name> Averagetemp </name>
>                 <type> GAUGE </type>
>                 Etc. etc.
>         </ds>
> 
>         <ds>
>                 <name> Tempprobe1 </name>
>                 <type> GAUGE </type>
>                 Etc. etc.
>         </ds>
> 
>         <ds>
>                 <name> Tempprobe2 </name>
>                 <type> GAUGE </type>
>                 Etc. etc.
>         </ds>
> 
> Etc. etc.
> 
> <!-- 2006-11-08 18:25:00 GMT / 1163010300 --> <row><v>
2.1608000000e+01
> </v><v> 2.2847666667e+01 </v><v> 2.0368333333e+01 </v></row>
>                         <!-- 2006-11-08 18:30:00 GMT / 1163010600 -->
> <row><v> 2.1736833333e+01 </v><v> 2.2973666667e+01 </v><v>
> 2.0500000000e+01 </v></row>
>                         <!-- 2006-11-08 18:35:00 GMT / 1163010900 -->
> <row><v> 2.1750000000e+01 </v><v> 2.3000000000e+01 </v><v>
> 2.0500000000e+01 </v></row>
>                         <!-- 2006-11-08 18:40:00 GMT / 1163011200 -->
> <row><v> 2.1642000000e+01 </v><v> 2.2947333333e+01 </v><v>
> 2.0336666667e+01 </v></row>
>                         <!-- 2006-11-08 18:45:00 GMT / 1163011500 -->
> <row><v> 2.1450000000e+01 </v><v> 2.2900000000e+01 </v><v>
> 2.0000000000e+01 </v></row>
>                         <!-- 2006-11-08 18:50:00 GMT / 1163011800 -->
> <row><v> 2.1450000000e+01 </v><v> 2.2900000000e+01 </v><v>
> 2.0000000000e+01 </v></row>
>                         <!-- 2006-11-08 18:55:00 GMT / 1163012100 -->
> <row><v> 2.1450000000e+01 </v><v> 2.2900000000e+01 </v><v>
> 2.0000000000e+01 </v></row>
>                         <!-- 2006-11-08 19:00:00 GMT / 1163012400 -->
> <row><v> 2.1474666667e+01 </v><v> 2.2849333333e+01 </v><v>
> 2.0100000000e+01 </v></row>
>                         <!-- 2006-11-08 19:05:00 GMT / 1163012700 -->
> <row><v> 2.1375000000e+01 </v><v> 2.2800000000e+01 </v><v>
> 1.9950000000e+01 </v></row>
> 
> 
> The only problem is that it doesn't display, not even in the trends
> column.  The only step I was forced to miss was the alteration of
> hobbitlaunch.cfg and clientlaunch.cfg (because it isn't a script), can
> anyone help?
> 
> Thanks,
> Jason.
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk





More information about the Xymon mailing list