Bug#432404: bindgraph does not display any graphs
Uwe Storbeck wrote: > Same behaviour here, bindgraph stopped displaying any graphs after > the upgrade from sarge to etch. > Thanks for the patch, it works for me too. > I'm awaiting a sponsor for a new package fixing all known bugs for some days allready. Posted the RFS to [EMAIL PROTECTED] about two weeks ago. Thank you for confirming the patch works. J.L. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#432404: bindgraph does not display any graphs
severity 432404 grave quit Since the purpose of this package is to display bind usage graphs not displaying any graphs in the web page makes the whole package unusable. So 'grave' was the correct severity. Uwe -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#432404: bindgraph does not display any graphs
Same behaviour here, bindgraph stopped displaying any graphs after the upgrade from sarge to etch. Thanks for the patch, it works for me too. Uwe -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#432404: bindgraph: Does not display any graphs
Hi, I had the same problem, bindgraph didn't create any images. After calling the script with http://www.example.com/cgi-bin/bindgraph.cgi/bindgraph_1.png I received the error ERROR: RRDs::graph(/var/cache/bindgraph/,cgi-bin,bindgraph.cgi/bindgraph_1.png.tmp, ...): Garbage ': Fri Sep 28 19:38:00 2007graph created on Fri Sep 28 19:45:53 2007\r' after command: COMMENT:last update: Fri Sep 28 19:38:00 2007graph created on Fri Sep 28 19:45:53 2007\r" Asking google showed that rrdtool 1.2 doesn't like lines #109 and #110 containing the "COMMENT" parameter as they do contain colons. After commenting out the lines the graphs were finally created. I changed bindgraph.cgi to correctly include the comments again (see attached patch). The patch works for me but may not work for everybody. Installed packages: * bindgraph 0.2-5 * rrdtool 1.2.15-0.3 System: 4.0/stable Regards, Juergen --- /usr/lib/cgi-bin/bindgraph.cgi.orig 2006-05-11 01:57:22.0 +0200 +++ /usr/lib/cgi-bin/bindgraph.cgi 2007-09-28 20:49:56.0 +0200 @@ -93,6 +93,10 @@ } } +my $last_update = localtime(last_update($rrd)); +my $localtime = localtime(time); +$last_update =~ s/:/\\:/g; +$localtime =~ s/:/\\:/g; my ($text, $xs, $ys) = RRDs::graph( $file, '--imgformat', 'PNG', @@ -106,8 +110,8 @@ @rrdef, @rrprint, 'COMMENT:\s', - 'COMMENT:last update: ' . localtime(last_update($rrd)) - . 'graph created on ' . localtime(time) . '\r', + 'COMMENT:last update\\: ' . $last_update + . 'graph created on ' . $localtime . '\r', ); my $err = RRDs::error; die_fatal("RRDs::graph($file, ...): $err") if $err;
Bug#432404: bindgraph: Does not display any graphs
Michael Siebenborn wrote: Same Problem here. [snip] Thanks for taking the time to check :-) I dont know what the problem is, but I think it could be the same problem I had with couriergraph. Asking Google brought me to some postings where someone found out, that there is an incompatibility between rrdtool 1.0 an rrdtool 1.2. I am supposed to have fixed both at once (I also maintain couriergraph, as you migth know) In any case, I will check it. It is unfortunate that I only use bindgraph in one machine now :-( Thanks again, J.L. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#432404: bindgraph: Does not display any graphs
Same Problem here. > Please check the permissions on the generated .rrd files, [EMAIL PROTECTED]:/var/lib/bindgraph# l total 6960 drwxrwxr-x 2 root adm 4096 2007-07-30 11:54 . drwxr-xr-x 41 root root4096 2007-07-28 15:53 .. -rw-r--r-- 1 daemon adm 7106056 2007-07-30 11:58 bindgraph.rrd > and see if the > user Apache is configured to run as (typically, www-data) is able to > read them. www-data 1511 1502 0 Jul29 ?00:00:00 /usr/sbin/apache2 -k start > bindgraph.cgi might be looking for the .rrd files in a wrong > place, too (the proper place being under /var/cache/ -- ideally, > /var/cache/bindgraph. ) Sure? Afaik are the .rrd files stored in /var/lib/bindgraph. In /var/cache/bindgraph/ are the generated .png images stored > Any other information you might provide is welcome. First of all: One has to change the format of the log bindgraph expects: /etc/default/bindgraph: LOG_FORMAT=bind93 Then the creation of the .rrd files is fine. See above. Simply the .png dont get generated. The Part of the Path to the .png files is created by running the cgi via webbrowser: [EMAIL PROTECTED]:# l /var/cache/bindgraph/,cgi-bin,bindgraph.cgi/ total 8 drwxr-xr-x 2 www-data www-data 4096 2007-07-30 12:00 . drwxr-xr-x 3 www-data www-data 4096 2007-07-30 12:00 .. I dont know what the problem is, but I think it could be the same problem I had with couriergraph. Asking Google brought me to some postings where someone found out, that there is an incompatibility between rrdtool 1.0 an rrdtool 1.2. Cheers, Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#432404: bindgraph: Does not display any graphs
severity #432404 wishlist thanks David J. M. Karlsen wrote: > Package: bindgraph > Version: 0.2-5 > Severity: grave > Justification: renders package unusable > > > No graphs are generated. > If run from the command line w/o any arguments it produces: > BindGraph was never meant to be called directly from the command line. It is a CGI, and so it *needs* to be called from Apache (or other suitable webserver) Of course, the script itself could be tweaked to "barf" on a more appropriate way, but I see no reason why a CGI should work if invoked from command line, without the information it needs to work. Moreover, how it bindgraph supposed to generate graphs in this situation? Do you meant to have it echo the generated PNG on stdio? Write that into a randomly-generated filename? In either case, which of the different graphs that it is able to generate would be written? > sunshine:~# /usr/lib/cgi-bin/bindgraph.cgi > Use of uninitialized value in substitution (s///) at > /usr/share/perl/5.8/File/Basename.pm line 338. > fileparse(): need a valid pathname at /usr/lib/cgi-bin/bindgraph.cgi line 180 > As said before, this is perfectly fine behaviour for a CGI script invoked directly. Friendly, J.L. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#432404: bindgraph: Does not display any graphs
Package: bindgraph Version: 0.2-5 Severity: grave Justification: renders package unusable No graphs are generated. If run from the command line w/o any arguments it produces: sunshine:~# /usr/lib/cgi-bin/bindgraph.cgi Use of uninitialized value in substitution (s///) at /usr/share/perl/5.8/File/Basename.pm line 338. fileparse(): need a valid pathname at /usr/lib/cgi-bin/bindgraph.cgi line 180 sunshine:~# -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.21.1 Locale: LANG=no_NO, LC_CTYPE=no_NO (charmap=ISO-8859-1) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]