Thomas,
I had the same problem. I changed the following line in my hobbitgraph.cfg file and my graphs started working:
[mrtg] FNPATTERN mrtg.(.*).rrd # FNPATTERN mrtg.*\.([a-z0-9]+).rrd (original one)
-Jeff
On 5/5/06, Christophe Truffier <ctruffier at pack-solutions.com> wrote:
Henrik Stoerner wrote:
On Wed, Apr 19, 2006 at 02:08:40PM +0200, Christophe Truffier wrote:
do you have the other rrd files under the /var/lib/hobbit/rrd directory ? Yes, all others file for this host (master) are in rrd/master dir:
ls -latr /var/lib/hobbit/rrd/master/
total 1131 -rw-r--r-- 1 hobbit hobbit 105160 2006-04-19 13:55 mrtg.master.eth0.rrd
I don't understand why all other tests except mrtg works... naming problem ? whatever ?
A bit late, but: What's in your TEST2RRD and GRAPHS settings in hobbitserver.cfg ?
Here's what's in my hobbitserver.cfg: TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp, dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,send mail,mailq,nmailq=mailq,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd"
and
GRAPHS="la,disk,inode,qtree,memory,users,vmstat,iostat,tcp.http,tcp,netstat, mrtg::1,temperature,ntpstat,apache,bind,sendmail,mailq,socks,bea,iish ealth,citrix,bbgen,bbtest,bbproxy,hobbitd"
Regards
-- Christophe Truffier Pack-Solutions
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Thu, Jun 01, 2006 at 04:58:12PM -0500, Jeff Newman wrote:
Thomas,
I had the same problem. I changed the following line in my hobbitgraph.cfg file and my graphs started working:
[mrtg] FNPATTERN mrtg.(.*).rrd # FNPATTERN mrtg.*\.([a-z0-9]+).rrd (original one)
Thanks, I've made that the default now.
Henrik
Henrik Stoerner wrote:
On Thu, Jun 01, 2006 at 04:58:12PM -0500, Jeff Newman wrote:
Thomas,
I had the same problem. I changed the following line in my hobbitgraph.cfg file and my graphs started working:
[mrtg] FNPATTERN mrtg.(.*).rrd # FNPATTERN mrtg.*\.([a-z0-9]+).rrd (original one)
Thanks, I've made that the default now.
Thanks, but I've tried and I still have no graph... Really don't understand, I'm using 4.1.2p1-1 version under debian, the rrd file for this host has data:
filename = "mrtg.master.eth0.rrd" rrd_version = "0003" step = 300 last_update = 1149241601 ds[ds0].type = "COUNTER" ds[ds0].minimal_heartbeat = 600 ds[ds0].min = 0.0000000000e+00 ds[ds0].max = 1.2500000000e+07 ds[ds0].last_ds = "345572533" ds[ds0].value = 1.5902884768e+05 ds[ds0].unknown_sec = 0 ds[ds1].type = "COUNTER" ds[ds1].minimal_heartbeat = 600 ds[ds1].min = 0.0000000000e+00 ds[ds1].max = 1.2500000000e+07 ds[ds1].last_ds = "345572533" ds[ds1].value = 1.5902884768e+05 ds[ds1].unknown_sec = 0 (...)
I've generated graph manually with this command: grunt:/var/lib/hobbit/rrd/master# rrdtool graph /tmp/AA.png -s e-24h --title="Network Traffic (MRTG)" -v "Bits/second" DEF:inbytes=mrtg.master.eth0.rrd:ds0:AVERAGE CDEF:in=inbytes,8,* DEF:outbytes=mrtg.master.eth0.rrd:ds1:AVERAGE CDEF:out=outbytes,8,* LINE2:in#00FF00:'eth0 inbound' GPRINT:in:'LAST: \: %10.1lf (cur)' GPRINT:in:'MAX: \: %10.1lf (max)' GPRINT:in:'MIN: \: %10.1lf (min)' GPRINT:in:'AVERAGE: \: %10.1lf (avg)\n' LINE2:out#0000FF:'eth0 outbound' GPRINT:out:'LAST: \: %10.1lf (cur)' GPRINT:out:'MAX: \: %10.1lf (max)' GPRINT:out:'MIN: \: %10.1lf (min)' GPRINT:out:'AVERAGE: \: %10.1lf (avg)\n' 497x221
and it works ! I join the graph file...
So, why do that's not working with the cgi ?
-- Christophe Truffier Pack-Solutions
On Fri, Jun 02, 2006 at 12:22:45PM +0200, Christophe Truffier wrote:
Thanks, but I've tried and I still have no graph... Really don't understand, I'm using 4.1.2p1-1 version under debian, the rrd file for this host has data:
filename = "mrtg.master.eth0.rrd" rrd_version = "0003" step = 300
Is that a dump with rrdtool ? Doesn't look like it. You must save the MRTG data files in RRDtool format (a binary format) for Hobbit to recognize and graph them. The old text-file format used by MRTG is not recognized by Hobbit.
Henrik
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 12:22:45PM +0200, Christophe Truffier wrote:
Thanks, but I've tried and I still have no graph... Really don't understand, I'm using 4.1.2p1-1 version under debian, the rrd file for this host has data:
filename = "mrtg.master.eth0.rrd" rrd_version = "0003" step = 300
Is that a dump with rrdtool ? Doesn't look like it. You must save the MRTG data files in RRDtool format (a binary format) for Hobbit to recognize and graph them. The old text-file format used by MRTG is not recognized by Hobbit.
oh sorry, I've done «rrdtool info mrtg.master.eth0.rrd» to get these data. With «rrdtool dump» I get :
<!-- Round Robin Database Dump --> <rrd> <version> 0003 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1149251083 </lastupdate> <!-- 2006-06-02 14:24:43 CEST -->
<ds>
<name> ds0 </name>
<type> COUNTER </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> 1.2500000000e+07 </max>
<!-- PDP Status -->
<last_ds> 364460851 </last_ds>
<value> 4.5913901320e+05 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
<ds>
<name> ds1 </name>
<type> COUNTER </type>
<minimal_heartbeat> 600 </minimal_heartbeat>
<min> 0.0000000000e+00 </min>
<max> 1.2500000000e+07 </max>
<!-- PDP Status -->
<last_ds> 364460851 </last_ds>
<value> 4.5913901320e+05 </value>
<unknown_sec> 0 </unknown_sec>
</ds>
(...)
I can see that rrd file as data inside, but how can I debug why hobbit-cgi/bb-hostsvc.sh nor hobbit-cgi/hobbitgraph.sh generate corrects graphs ?
-- Christophe Truffier Pack-Solutions
On Fri, Jun 02, 2006 at 02:29:45PM +0200, Christophe Truffier wrote:
(...)
I can see that rrd file as data inside, but how can I debug why hobbit-cgi/bb-hostsvc.sh nor hobbit-cgi/hobbitgraph.sh generate corrects graphs ?
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.sh
Henrik
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 02:29:45PM +0200, Christophe Truffier wrote:
(...)
I can see that rrd file as data inside, but how can I debug why hobbit-cgi/bb-hostsvc.sh nor hobbit-cgi/hobbitgraph.sh generate corrects graphs ?
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.sh
I've just try:
grunt:/var/lib/hobbit/rrd/master# REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Segmentation fault
looking à cgierror.log (after launching the same command with strace): 2006-06-02 15:42:14 hobbitgraph xgetenv: Cannot find value for variable REQUEST_URI
...maybe I have to give hobbitgraph.sh another data ?
-- Christophe Truffier Pack-Solutions
On Fri, Jun 02, 2006 at 03:49:06PM +0200, Christophe Truffier wrote:
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.shI've just try:
grunt:/var/lib/hobbit/rrd/master# REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Segmentation fault
looking à cgierror.log (after launching the same command with strace): 2006-06-02 15:42:14 hobbitgraph xgetenv: Cannot find value for variable REQUEST_URI
Add a REQUEST_URI="" to that command, then.
Regards, Henrik
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 03:49:06PM +0200, Christophe Truffier wrote:
Try this on your hobbit server:
REQUEST_METHOD="GET"
SCRIPT_NAME="hobbitgraph.sh"
QUERY_STRING="host=YOUR.HOST.NAME&service=mrtg&graph=hourly&action=view"
~hobbit/cgi-bin/hobbitgraph.sh I've just try:grunt:/var/lib/hobbit/rrd/master# REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Segmentation fault
looking à cgierror.log (after launching the same command with strace): 2006-06-02 15:42:14 hobbitgraph xgetenv: Cannot find value for variable REQUEST_URI
Add a REQUEST_URI="" to that command, then.
Yes, now it works... so here's the result: grunt:/var/lib/hobbit/rrd/master# REQUEST_URI="" REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Content-type: image/png Expires: Fri, 02 Jun 2006 14:02:39 GMT
Content-type: text/html
<html><head><title>Invalid request</title></head> <body>can't handle RRD file version 0003</body></html>
grunt:/var/lib/hobbit/rrd/master# rrdtool -V RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch> Compiled Mon Jan 9 17:04:13 UTC 2006
Maybe the rrdtool version isn't supported ?
Thanks for help
-- Christophe Truffier Pack-Solutions
On Fri, Jun 02, 2006 at 04:01:28PM +0200, Christophe Truffier wrote:
Yes, now it works... so here's the result: grunt:/var/lib/hobbit/rrd/master# REQUEST_URI="" REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Content-type: image/png Expires: Fri, 02 Jun 2006 14:02:39 GMT
Content-type: text/html
<html><head><title>Invalid request</title></head> <body>can't handle RRD file version 0003</body></html>
grunt:/var/lib/hobbit/rrd/master# rrdtool -V RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch> Compiled Mon Jan 9 17:04:13 UTC 2006
Maybe the rrdtool version isn't supported ?
Or Hobbit was compiled with the 1.0.x version of the RRDtool libraries, but your MRTG generates files with the 1.2.x version of RRDtool.
A lot of Linux distributions ship with RRDtool 1.0.x, and it causes all sorts of confusion if you compile Hobbit with the standard RRDtool and then have a hand-made installation of RRDtool 1.2.x. Check where you have an "rrd.h" file installed and where it came from (the 1.0.x or 1.2.x version - it says so at the top of the file). Try removing your 1.0.x version of RRDtool, and re-compile Hobbit with the full "./configure; make; make install" sequence.
Regards, Henrik
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 04:01:28PM +0200, Christophe Truffier wrote:
Yes, now it works... so here's the result: grunt:/var/lib/hobbit/rrd/master# REQUEST_URI="" REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Content-type: image/png Expires: Fri, 02 Jun 2006 14:02:39 GMT
Content-type: text/html
<html><head><title>Invalid request</title></head> <body>can't handle RRD file version 0003</body></html>
grunt:/var/lib/hobbit/rrd/master# rrdtool -V RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch> Compiled Mon Jan 9 17:04:13 UTC 2006
Maybe the rrdtool version isn't supported ?
Or Hobbit was compiled with the 1.0.x version of the RRDtool libraries, but your MRTG generates files with the 1.2.x version of RRDtool.
A lot of Linux distributions ship with RRDtool 1.0.x, and it causes all sorts of confusion if you compile Hobbit with the standard RRDtool and then have a hand-made installation of RRDtool 1.2.x. Check where you have an "rrd.h" file installed and where it came from (the 1.0.x or 1.2.x version - it says so at the top of the file). Try removing your 1.0.x version of RRDtool, and re-compile Hobbit with the full "./configure; make; make install" sequence.
Yes, I've just see that I have librrd0 under 1.0.49, used with hobbit since I installed it and librrd2 under 1.2.11 who comes with rrdtool install (done while trying to put mrtg graphs into hobbit).
So, I'll have to downgrade rrdtool.
Thanks for help
-- Christophe Truffier Pack-Solutions
Chris,
I would recompile hobbit with the newer version of rrdtool vs. downgrading rrd.
rrdtool info mrtg.router.gi0_1.rrd | grep rrd_ver
rrd_version = "0003"
rrdtool -V
RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch> Compiled Fri Nov 11 18:44:49 CST 2005
So it does work with 1.2.11
I would keep that hobbitgraph FNPATTERN change as well (thanks Henrik for incorporating that into the new hobbit)
-Jeff
On 6/2/06, Christophe Truffier <ctruffier at pack-solutions.com> wrote:
Henrik Stoerner wrote:
On Fri, Jun 02, 2006 at 04:01:28PM +0200, Christophe Truffier wrote:
Yes, now it works... so here's the result: grunt:/var/lib/hobbit/rrd/master# REQUEST_URI="" REQUEST_METHOD="GET" SCRIPT_NAME="hobbitgraph.sh" QUERY_STRING="host=master&service=mrtg&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh Content-type: image/png Expires: Fri, 02 Jun 2006 14:02:39 GMT
Content-type: text/html
<html><head><title>Invalid request</title></head> <body>can't handle RRD file version 0003</body></html>
grunt:/var/lib/hobbit/rrd/master# rrdtool -V RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch> Compiled Mon Jan 9 17:04:13 UTC 2006
Maybe the rrdtool version isn't supported ?
Or Hobbit was compiled with the 1.0.x version of the RRDtool libraries, but your MRTG generates files with the 1.2.x version of RRDtool.
A lot of Linux distributions ship with RRDtool 1.0.x, and it causes all sorts of confusion if you compile Hobbit with the standard RRDtool and then have a hand-made installation of RRDtool 1.2.x. Check where you have an "rrd.h" file installed and where it came from (the 1.0.x or 1.2.x version - it says so at the top of the file). Try removing your 1.0.x version of RRDtool, and re-compile Hobbit with the full "./configure; make; make install" sequence.
Yes, I've just see that I have librrd0 under 1.0.49, used with hobbit since I installed it and librrd2 under 1.2.11 who comes with rrdtool install (done while trying to put mrtg graphs into hobbit).
So, I'll have to downgrade rrdtool.
Thanks for help
-- Christophe Truffier Pack-Solutions
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Jeff Newman wrote:
Chris,
I would recompile hobbit with the newer version of rrdtool vs. downgrading rrd.
rrdtool info mrtg.router.gi0_1.rrd | grep rrd_ver
rrd_version = "0003"
rrdtool -V
RRDtool 1.2.11 Copyright 1997-2005 by Tobias Oetiker <tobi at oetiker.ch> Compiled Fri Nov 11 18:44:49 CST 2005
So it does work with 1.2.11
I would keep that hobbitgraph FNPATTERN change as well (thanks Henrik for incorporating that into the new hobbit)
Yes I know that I could recompile to get hobbit work with 1.2.11 rrdtool version but I ain't got time to do it (that's why I didn't spend to much time for this problem). I'll wait, maybe next hobbit version will work with ?! :)
By the way, I still have something strange, IN and OUT datas are the same... I'll take a look at my mrtg config file and get back here if nothing get better.
Thanks
-- Christophe Truffier Pack-Solutions
participants (3)
-
ctruffier@pack-solutions.com
-
henrik@hswn.dk
-
jeffnewman75@gmail.com