Custom Graph

Sherman, Larry, GCM Larry.Sherman at rbsgc.com
Fri Mar 23 16:31:16 CET 2007


Hi,

I've tried a few times to get the custom graphs to work, but have had no
joy getting them to work.  Invariably, I get the data into the rrd, but
the graph is never drawn.  

Here is a sample of the data I send to hobbit:


--->
Fri Mar 23 10:39:23 EDT 2007 - TIB RV Latency monitoring

latency : 3.291

Status unchanged in 1 days,12 hours, 9 minutes
Status message received from 146.121.201.35
<--- 

My TEST2RRD line has "...,GCM=ncv,RTE=ncv,SWAP=ncv"

My GRAPHS line has "...,GCM,RTE,SWAP"

I have 3 lines for NCV:

NCV_GCM="latency:GAUGE"
NCV_RTE="latency:GAUGE"
NCV_SWAP="latency:GAUGE"


I generate RRD's for each of my tests, and it looks like there is data,
but not exactly as in the example in on Henrik's web site:

<!-- Round Robin Database Dump --><rrd>	<version> 0003 </version>
	<step> 300 </step> <!-- Seconds -->
	<lastupdate> 1174661992 </lastupdate> <!-- 2007-03-23 10:59:52
EDT -->

	<ds>
		<name> latency </name>
		<type> GAUGE </type>
		<minimal_heartbeat> 600 </minimal_heartbeat>
		<min> 0.0000000000e+00 </min>
		<max> NaN </max>

		<!-- PDP Status -->
		<last_ds> UNKN </last_ds>
		<value> 1.0409800000e+03 </value>
		<unknown_sec> 0 </unknown_sec>
	</ds>

<!-- Round Robin Archives -->	<rra>
		<cf> AVERAGE </cf>
		<pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->

		<params>
		<xff> 5.0000000000e-01 </xff>
		</params>
		<cdp_prep>
			<ds>
			<primary_value> 3.7080000000e+00
</primary_value>
			<secondary_value> 3.4782000000e+00
</secondary_value>
			<value> NaN </value>
			<unknown_datapoints> 0 </unknown_datapoints>
			</ds>
		</cdp_prep>
		<database>
			<!-- 2007-03-21 11:00:00 EDT / 1174489200 -->
<row><v> NaN </v></row>
			<!-- 2007-03-21 11:05:00 EDT / 1174489500 -->
<row><v> NaN </v></row>
..
..			<!-- 2007-03-23 10:05:00 EDT / 1174658700 -->
<row><v> 3.1933733333e+00 </v></row>
			<!-- 2007-03-23 10:10:00 EDT / 1174659000 -->
<row><v> 3.6878266667e+00 </v></row>
			<!-- 2007-03-23 10:15:00 EDT / 1174659300 -->
<row><v> 3.6010800000e+00 </v></row>
			<!-- 2007-03-23 10:20:00 EDT / 1174659600 -->
<row><v> 3.1187333333e+00 </v></row>
			<!-- 2007-03-23 10:25:00 EDT / 1174659900 -->
<row><v> 3.3115000000e+00 </v></row>
			<!-- 2007-03-23 10:30:00 EDT / 1174660200 -->
<row><v> 3.6026266667e+00 </v></row>
			<!-- 2007-03-23 10:35:00 EDT / 1174660500 -->
<row><v> 3.7042866667e+00 </v></row>
			<!-- 2007-03-23 10:40:00 EDT / 1174660800 -->
<row><v> 3.6735733333e+00 </v></row>
			<!-- 2007-03-23 10:45:00 EDT / 1174661100 -->
<row><v> 3.7481866667e+00 </v></row>
			<!-- 2007-03-23 10:50:00 EDT / 1174661400 -->
<row><v> 3.1970000000e+00 </v></row>
			<!-- 2007-03-23 10:55:00 EDT / 1174661700 -->
<row><v> 3.7080000000e+00 </v></row>
		</database>
	</rra>
	


I have the following in my hobbitgrpah.cfg:

 
[GCM]
	TITLE GCM Latency Monitor
	YAXIS Micro Seconds (uSec)
	DEF:lat=GCM.rrd:latency:AVERAGE
	LINE2:lat#00CCCC:uSeconds
        COMMENT:\n
	GPRINT:lat:LAST:Latency \: %5.11f%s (cur)
	GPRINT:lat:MAX: \: %5.11f%s (max)
	GPRINT:lat:MIN: \: %5.11f%s (min)
	GPRINT:lat:AVERAGE: \: %5.11f%s (avg)\n

[RTE]
	TITLE RTE Latency Monitor
	YAXIS Micro Seconds (uSec)
	DEF:latency=RTE.rrd:latency:AVERAGE
	LINE2:latency#00CCCC:uSeconds
        COMMENT:\n
	GPRINT:latency:LAST:Latency \: %5.11f%s (cur)
	GPRINT:latency:MAX: \: %5.11f%s (max)
	GPRINT:latency:MIN: \: %5.11f%s (min)
	GPRINT:latency:AVERAGE: \: %5.11f%s (avg)\n
[SWAP]
	TITLE SWAP Latency Monitor
	YAXIS Micro Seconds (uSec)
	DEF:foo=SWAP.rrd:latency:AVERAGE
	LINE2:foo#00CCCC:uSeconds
        COMMENT:\n
	GPRINT:foo:LAST:Latency \: %5.11f%s (cur)
	GPRINT:foo:MAX: \: %5.11f%s (max)
	GPRINT:foo:MIN: \: %5.11f%s (min)
	GPRINT:foo:AVERAGE: \: %5.11f%s (avg)\n   

    
No matter which way I configure it the graphs do not generate, but
instead I get a small box that says:

"hobbit graph ncv:GCM"

I am currently running on a BL25P blade, RHAS4, rrdtool 1.2.15, hobbit
4.3.0-20061124. 

I monitor several hundred hosts with no problem (Thanks Henrik!), but
have never been able to get this to work.  Any help is appreciated...

Larry
 
    


<HTML><BODY><P><hr size=1></P><br>
<P><STRONG><br>
*******************************************************************<br>
*<br>
<br>
This e-mail is intended only for the addressee named above.<br>
As this e-mail may contain confidential or privileged information,<br>
if you are not the named addressee, you are not authorized<br>
to retain, read, copy or disseminate this message or any part of<br>
it.<br>
<br>
*******************************************************************<br>
*<br>
</STRONG></P></BODY></HTML>




More information about the Xymon mailing list