Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   bindgraph (http://www.linux-archive.org/debian-user/58823-bindgraph.html)

Gilles Mocellin 07-29-2007 06:50 PM

bindgraph
 
Le Saturday 28 July 2007 08:49:50 koffiejunkie, vous avez écrit*:
> Gilles Mocellin wrote:
> > Strange !
> > I just installed it today, and I found what is the problem.
> > It is not compatible with rrdtool 1.2.
> > I found it trying to display directly the image (look in the HTMl
> > source). RRD says it doesn't understand the data format...
> >
> > I backported the testing/unstable version 0.2a.
> > I saw this bug in BTS which was corrected.
>
> Hi Gilles,
>
> Thanks for this. I looked at the code for a long time, but it's greek
> to me - my perl is limited to "hello" world...
>
> I'm just on the way out for the weekend, will look into this again
> tomorrow night. As far as I remember I don't even get the images
> generated (that is triggered by the .cgi, isn't it?).
>
> # ./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 ./bindgraph.cgi line 181
>
> When I strace it, I get this snipped some of the "file not found" lines:
>
> stat64("/usr/lib/perl/5.8/re.pm", {st_mode=S_IFREG|0644, st_size=1340,
> ...}) = 0
> open("/usr/lib/perl/5.8/re.pm", O_RDONLY|O_LARGEFILE) = 5
> ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfffec48) = -1 ENOTTY
> (Inappropriate ioctl for device)
> _llseek(5, 0, [0], SEEK_CUR) = 0
> read(5, "package re;

our $VERSION = 0.05"..., 4096) = 1340
> read(5, "", 4096) = 0
> close(5) = 0
> read(4, "[:>]])?(.*)/s);
$dirpath ||"..., 4096) = 4096
> brk(0x8235000) = 0x8235000
> read(4, ".'. fileparse() would return 'f"..., 4096) = 3069
> read(4, "", 4096) = 0
> close(4) = 0
> read(3, "t_date {
my ($when) = @_;

my "..., 4096) = 2195
> read(3, "", 4096) = 0
> close(3) = 0
> uname({sys="Linux", node="rimwards", ...}) = 0
> write(2, "Use of uninitialized value in su"..., 100Use of uninitialized
> value in substitution (s///) at /usr/share/perl/5.8/File/Basename.pm
> line 338.
> ) = 100
> [snip]
> stat64("/usr/share/perl/5.8/Carp/Heavy.pm", {st_mode=S_IFREG|0644,
> st_size=5747, ...}) = 0
> open("/usr/share/perl/5.8/Carp/Heavy.pm", O_RDONLY|O_LARGEFILE) = 3
> ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbffff598) = -1 ENOTTY
> (Inappropriate ioctl for device)
> _llseek(3, 0, [0], SEEK_CUR) = 0
> read(3, "# Carp::Heavy uses some variable"..., 4096) = 4096
> brk(0x8256000) = 0x8256000
> read(3, "s($called, $caller, $cache);
"..., 4096) = 1651
> read(3, "", 4096) = 0
> close(3) = 0
> write(2, "fileparse(): need a valid pathna"..., 63fileparse(): need a
> valid pathname at ./bindgraph.cgi line 181
> ) = 63
> exit_group(255) = ?
> Process 28639 detached
>
>
> Is this what you got too?

No, but I didn't try to execute the cgi on the command line.
I got RRD errors. The rrd command that generates images did not work for a
formatting reason.
The error was well known to me, since I had several time problems with
mailgraph / amavis-stats which are tools very similar to bindgraph.

Just try the newer version, no need to backport it since it's just a perl
script. You can use pinning or just downlad appart the deb file from testing.


All times are GMT. The time now is 04:02 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.