NCV help!
list Charles Jones
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 *data* instead of *status*). I have done the following: * Setup the ext script to be launched by the client. * Added "modjk=ncv" to hobbitserver.cfg TEST2RRD section. * Added ,modjk to hobbitserver.cfg GRAPHS section. * Added "NCV_modjk="modjk:GAUGE" to hobbitserver.cfg * Restarted Hobbit * (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) 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/ here is the tail end of the ext script: MSG=`printf "mod_jk : %2.6f\n" $JKAVG` $BB $BBDISP "data $MACHINE.modjk green `date` $MSG" exit 0 Here is a running of the script, with the last line prefixed with "echo" so that we can see what it's sending: $ /bin/bbcmd ext/hobbit-mod_jk.sh/ 2006-09-27 23:52:52 Using default environment file /users/monitor/local/hobbit/client/etc/hobbitclient.cfg /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 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. P.S. The $BBDISP is 127.0.0.1 because I'm using /pulldata/ mode. -Charles
list Charles Jones
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 :( -Charles
▸
Charles Jones wrote: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 *data* instead of *status*). I have done the following: * Setup the ext script to be launched by the client. * Added "modjk=ncv" to hobbitserver.cfg TEST2RRD section. * Added ,modjk to hobbitserver.cfg GRAPHS section. * Added "NCV_modjk="modjk:GAUGE" to hobbitserver.cfg * Restarted Hobbit * (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) 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/ here is the tail end of the ext script: MSG=`printf "mod_jk : %2.6f\n" $JKAVG` $BB $BBDISP "data $MACHINE.modjk green `date` $MSG" exit 0 Here is a running of the script, with the last line prefixed with "echo" so that we can see what it's sending: $ /bin/bbcmd ext/hobbit-mod_jk.sh/ 2006-09-27 23:52:52 Using default environment file /users/monitor/local/hobbit/client/etc/hobbitclient.cfg /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 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. P.S. The $BBDISP is 127.0.0.1 because I'm using /pulldata/ mode. -Charles
list Lars Ebeling
I have a script monitoring my mailboxsize. To get a graph I have to have the MSG on a seperate line in the status sent to hobbit, like this:
$BB $BBDISP "status $MACHINE.mailbox red édateé
écat /tmp/mailsize.txté "
Regards
Lars
----- Original Message ----- From: Charles Jones To: user-ae9b8668bcde@xymon.invalid Sent: Thursday, September 28, 2006 2:48 AM
Subject: Re: [hobbit] NCV help!
▸
MSG=`printf "mod_jk : %2.6f\n" $JKAVG`
$BB $BBDISP "data $MACHINE.modjk green `date` $MSG"
exit 0
list Charles Jones
I've now inserted an extra linefeed, so again adding an echo temporarily so we can see whats going on, my output is: $ /bin/bbcmd ext/hobbit-mod_jk.sh/ 2006-09-28 04:15:54 Using default environment file /users/monitor/local/hobbit/client/etc/hobbitclient.cfg /users/monitor/local/hobbit/client/bin/bb 127.0.0.1 data cna-prod-app-28.modjk green Thu Sep 28 04:16:13 GMT 2006 modjk : 0.139448 Still no rrd file...hmmm -Charles
▸
lars ebeling wrote:I have a script monitoring my mailboxsize. To get a graph I have to have the MSG on a seperate line in the status sent to hobbit, like this:
$BB $BBDISP "status $MACHINE.mailbox red édateé
écat /tmp/mailsize.txté " Regards
Lars
----- Original Message -----
*From:* Charles Jones <mailto:user-e86b4aeade4e@xymon.invalid>
*To:* user-ae9b8668bcde@xymon.invalid <mailto:user-ae9b8668bcde@xymon.invalid>
▸
*Sent:* Thursday, September 28, 2006 2:48 AM *Subject:* Re: [hobbit] NCV help!MSG=`printf "mod_jk : %2.6f\n" $JKAVG` $BB $BBDISP "data $MACHINE.modjk green `date` $MSG" exit 0
list Lars Ebeling
The only difference from my seup. that I can see, is that I am using status and have defined the graph. And you can see the graph at: http://leopg9.no-ip.org/hobbit-cgi/bb-hostsvc.sh?HOST=leopg9&SERVICE=mailbox
▸
Lars
----- Original Message -----
From: Charles Jones
To: user-ae9b8668bcde@xymon.invalid
Sent: Thursday, September 28, 2006 6:21 AM
Subject: Re: [hobbit] NCV help!
I've now inserted an extra linefeed, so again adding an echo temporarily so we can see whats going on, my output is:
$ bin/bbcmd ext/hobbit-mod_jk.sh
2006-09-28 04:15:54 Using default environment file /users/monitor/local/hobbit/client/etc/hobbitclient.cfg
/users/monitor/local/hobbit/client/bin/bb 127.0.0.1 data cna-prod-app-28.modjk green Thu Sep 28 04:16:13 GMT 2006
modjk : 0.139448
Still no rrd file...hmmm
-Charles
lars ebeling wrote:
I have a script monitoring my mailboxsize. To get a graph I have to have the MSG on a seperate line in the status sent to hobbit, like this:
$BB $BBDISP "status $MACHINE.mailbox red édateé
écat /tmp/mailsize.txté
"
Regards
Lars
----- Original Message -----
From: Charles Jones
To: user-ae9b8668bcde@xymon.invalid
Sent: Thursday, September 28, 2006 2:48 AM
Subject: Re: [hobbit] NCV help!
MSG=`printf "mod_jk : %2.6f\n" $JKAVG`
$BB $BBDISP "data $MACHINE.modjk green `date` $MSG"
exit 0
list Henrik Størner
▸
On Wed, Sep 27, 2006 at 05:06:10PM -0700, Charles Jones wrote:
Here is a running of the script, with the last line prefixed with "echo" so that we can see what it's sending:
/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
As others have pointed out, the "mod_jk : N" must be on a separate line. Also, "data" messages should not have anything but the hostname and data-type on the first line. So try changing your script to do VALUE=`printf "%2.6f\n" $JKAVG` $BB $BBDISP "data $MACHINE.modjk modjk : $VALUE " with a new-line right after the data identifier, and "modjk" (with no underscore) on a line by itself. Regards, Henrik
list Lars Ebeling
I tested to change status to data and then the rrd wasn't updated Lars ----- Original Message ----- From: lars ebeling To: user-ae9b8668bcde@xymon.invalid Sent: Thursday, September 28, 2006 6:53 AM
▸
Subject: Re: [hobbit] NCV help! The only difference from my seup. that I can see, is that I am using status and have defined the graph. And you can see the graph at: http://leopg9.no-ip.org/hobbit-cgi/bb-hostsvc.sh?HOST=leopg9&SERVICE=mailbox Lars ----- Original Message ----- From: Charles Jones To: user-ae9b8668bcde@xymon.invalid Sent: Thursday, September 28, 2006 6:21 AM Subject: Re: [hobbit] NCV help! I've now inserted an extra linefeed, so again adding an echo temporarily so we can see whats going on, my output is: $ bin/bbcmd ext/hobbit-mod_jk.sh 2006-09-28 04:15:54 Using default environment file /users/monitor/local/hobbit/client/etc/hobbitclient.cfg /users/monitor/local/hobbit/client/bin/bb 127.0.0.1 data cna-prod-app-28.modjk green Thu Sep 28 04:16:13 GMT 2006 modjk : 0.139448 Still no rrd file...hmmm -Charles lars ebeling wrote: I have a script monitoring my mailboxsize. To get a graph I have to have the MSG on a seperate line in the status sent to hobbit, like this: $BB $BBDISP "status $MACHINE.mailbox red édateé écat /tmp/mailsize.txté " Regards Lars ----- Original Message ----- From: Charles Jones To: user-ae9b8668bcde@xymon.invalid Sent: Thursday, September 28, 2006 2:48 AM Subject: Re: [hobbit] NCV help! MSG=`printf "mod_jk : %2.6f\n" $JKAVG` $BB $BBDISP "data $MACHINE.modjk green `date` $MSG" exit 0
list Lars Ebeling
Ok, I had still had the status green when I tested data Lars
▸
----- Original Message -----
From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Thursday, September 28, 2006 7:39 AM
Subject: Re: [hobbit] NCV help!
On Wed, Sep 27, 2006 at 05:06:10PM -0700, Charles Jones wrote:Here is a running of the script, with the last line prefixed with "echo" so that we can see what it's sending:/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.115922As others have pointed out, the "mod_jk : N" must be on a separate line. Also, "data" messages should not have anything but the hostname and data-type on the first line. So try changing your script to do VALUE=`printf "%2.6f\n" $JKAVG` $BB $BBDISP "data $MACHINE.modjk modjk : $VALUE " with a new-line right after the data identifier, and "modjk" (with no underscore) on a line by itself. Regards, Henrik