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

Help - NCV graph issue



I'm having problems getting some particular NCV graphs to display (I get missing graph link) . I have successfully added other NCV graphs, and I thought I knew what I was doing, but alas I am stuck and cannot figure out what I've done wrong. I'm hoping that Henrik or anyone can see what I'm doing wrong.

What I've checked so far:
* Script is properly sending data message to Hobbit
* Hobbit is receiving the data and creating RRD files
* The RRD files are being updated
* proper? definitions in TEST2RRD
* proper? definition in hobbitgraph.cfg, using correct rrd filename and ds name

I have a server-side script that collects database connection stats for Tomcat processes (5 seperate processes per server). The collector script is working fine, and I verified that rrd files are being created and populated. The DS is "dbconn": extt$ ~/local/bin/rrdtool dump ../../data/rrd/host1/tc_1_1-dbconn.rrd |grep name
               <name> dbconn </name>

data is definitely going into the rrd file(s):
ext$ ~/local/bin/rrdtool dump ../../data/rrd/host/tc_1_1-dbconn.rrd |grep row |grep -v NaN <!-- 2007-06-29 19:05:00 GMT / 1183143900 --> <row><v> 2.0000000000e+00 </v></row> <!-- 2007-06-29 19:10:00 GMT / 1183144200 --> <row><v> 2.0000000000e+00 </v></row> <!-- 2007-06-29 19:15:00 GMT / 1183144500 --> <row><v> 2.6633333333e+00 </v></row> <!-- 2007-06-29 19:20:00 GMT / 1183144800 --> <row><v> 3.6533333333e+00 </v></row> <!-- 2007-06-29 19:25:00 GMT / 1183145100 --> <row><v> 5.2866666667e+00 </v></row>

Here is the test definition I am using in hobbitgraph.cfg:
[tc_1_1-dbconn]
       TITLE Tomcat Database Connections
       YAXIS #
       DEF:dbconn=tc_1_1-dbconn.rrd:dbconn:AVERAGE
       LINE2:dbconn#00CCCC:database connections
       COMMENT:(5 Minute Combined Avg)\n
       GPRINT:modjk:LAST: \: %5.6lf (cur)
       GPRINT:modjk:MAX: \: %5.6lf (max)

here is the relavant additions I made to the TEST2RRD section of hobbitserver.cfg: TEST2RRD="<hobbit default settings>,tc_1_1-dbconn=ncv,tc_1_2-dbconn=ncv,tc_1_3-dbconn=ncv,tc_1_4-dbconn=ncv,tc_1_5-dbconn=ncv,tc_2_1-dbconn=ncv,tc_2_2-dbconn=ncv,tc_2_3-dbconn=ncv,tc_2_4-dbconn=ncv,tc_2_5-dbconn=ncv,tc_3_1-dbconn=ncv,tc_3_2-dbconn=ncv,tc_3_3-dbconn=ncv,tc_3_4-dbconn=ncv,tc_3_5-dbconn=ncv"

Once I can get this single graph working, I plan on creating a definition that will display all of the dbconn data in one graph (per host).

-Charles