<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Just to make sure the underscore wasn't causing a problem, I changed
the "mod_jk" in the ext script to "modjk", and restarted everything.
Still no rrd file being created :(<br>
<br>
-Charles<br>
<br>
Charles Jones wrote:
<blockquote cite="mid451B11F2.9020808@cisco.com" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
I've made an ext script that parses mod_jk.log and computes a 5 minute
average. I want this 5 minute average time sent to Hobbit and graphed
(just graphed, so I'm using <b>data</b> instead of <b>status</b>).<br>
  <br>
I have done the following:<br>
* Setup the ext script to be launched by the client.<br>
* Added "modjk=ncv" to hobbitserver.cfg TEST2RRD section.<br>
* Added ,modjk to hobbitserver.cfg GRAPHS section.<br>
* Added "NCV_modjk="modjk:GAUGE" to hobbitserver.cfg<br>
* Restarted Hobbit<br>
* (I still need to do the graph definition, but I'm not bothering to do
that yet because I'm not getting any rrd data)<br>
  <br>
I've let the client run the ext script several times, as well as
running it by hand via "bbcmd", and I am still not seeing any rrd files
show up in /data/rrd/hostname/<br>
  <br>
here is the tail end of the ext script:<br>
  <br>
  <tt>MSG=`printf "mod_jk : %2.6f\n" $JKAVG`<br>
$BB $BBDISP "data $MACHINE.modjk green `date` $MSG"<br>
exit 0<br>
  </tt><br>
Here is a running of the script, with the last line prefixed with
"echo"  so that we can see what it's sending:<br>
$ <i>bin/bbcmd ext/hobbit-mod_jk.sh</i><br>
  <tt>2006-09-27 23:52:52 Using default environment file
/users/monitor/local/hobbit/client/etc/hobbitclient.cfg<br>
/users/monitor/local/hobbit/client/bin/bb 127.0.0.1 data
cna-prod-app-28.modjk green Wed Sep 27 23:53:18 GMT 2006 mod_jk :
0.115922</tt><br>
  <br>
If anyone can point out what I'm doing wrong, I would appreciate it. 
This is my first time adding an NCV graph, and have many more to do, so
want to be sure I get it right.<br>
  <br>
P.S. The $BBDISP is 127.0.0.1 because I'm using <i>pulldata</i> mode.<br>
  <br>
-Charles<br>
</blockquote>
<br>
</body>
</html>