PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > bindgraph
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

bindgraph

Réponse
 
LinkBack Outils de la discussion
Vieux 27/07/2007, 13h10   #1
koffiejunkie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut bindgraph

Hi guys,

Is anyone using bindgraph on Etch? I have it installed (from the Debian
repos) on two Etch boxes. Took some fiddling, since the default install
of bind doesn't log queries, but that sorted, I now have the daemon
making the rrd file, but the bindgraph.cgi doesn't seem to work
correctly. It loads the page, but no images.

It does the same thing on both machines. Has anyone else had trouble
with this? From what I can see the code is very similar to with
mailgraph.cgi and queuegraph.cgi and they both work fine.

Is there a way to do a trace/debug of a cgi script? It's not logging
anything at all.

Thanks


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/07/2007, 20h40   #2
Gilles Mocellin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bindgraph

Le Friday 27 July 2007 14:06:08 koffiejunkie, vous avez écrit:
> Hi guys,
>
> Is anyone using bindgraph on Etch? I have it installed (from the Debian
> repos) on two Etch boxes. Took some fiddling, since the default install
> of bind doesn't log queries, but that sorted, I now have the daemon
> making the rrd file, but the bindgraph.cgi doesn't seem to work
> correctly. It loads the page, but no images.
>
> It does the same thing on both machines. Has anyone else had trouble
> with this? From what I can see the code is very similar to with
> mailgraph.cgi and queuegraph.cgi and they both work fine.
>
> Is there a way to do a trace/debug of a cgi script? It's not logging
> anything at all.
>
> Thanks


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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGqkipDltnDmLJYdARAlBmAJ9nlsRdW+YV5uj3+eDFQf WzasYnEwCgrN2D
iAy03x25QcwRQ6W48Dv0M1c=
=0bC3
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 28/07/2007, 08h00   #3
koffiejunkie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bindgraph

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;\n\nour $VERSION = 0.05"..., 4096) = 1340
read(5, "", 4096) = 0
close(5) = 0
read(4, "[:>\\]])?(.*)/s);\n $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 {\n\tmy ($when) = @_;\n\n\tmy "..., 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);\n "..., 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?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/07/2007, 20h00   #4
Gilles Mocellin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 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;\n\nour $VERSION = 0.05"..., 4096) = 1340
> read(5, "", 4096) = 0
> close(5) = 0
> read(4, "[:>\\]])?(.*)/s);\n $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 {\n\tmy ($when) = @_;\n\n\tmy "..., 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);\n "..., 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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGrOFpDltnDmLJYdARAkgoAKC/0iyAX9i3Ld3uxr9ajau83HPxnwCfeBsE
ErbK+m3tf5YfpybfvhfU0Ek=
=gu9K
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 30/07/2007, 10h10   #5
koffiejunkie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bindgraph [solved]

Gilles Mocellin wrote:
> 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.


Aah, awesome. The package from testing works like a charm!

Thanks for the .


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/07/2007, 10h10   #6
koffiejunkie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bindgraph [solved]

Gilles Mocellin wrote:
> 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.


Aah, awesome. The package from testing works like a charm!

Thanks for the .


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/07/2007, 16h40   #7
koffiejunkie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: bindgraph [solved]

koffiejunkie wrote:
> Gilles Mocellin wrote:
>> 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.

>
> Aah, awesome. The package from testing works like a charm!
>
> Thanks for the .
>
>



Damn, I thought I could diff the two and try to wedge the changes into
amavis-stats - then I realised amavis-stats is writtein in php :-(


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h08.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,28921 seconds with 15 queries