Hi.
Running on Debian, ipac-ng working well, almost (not configured yet the crontabs), but, when i use phpipacstats, i'm able to see the text summary, but on the image, i see only the "no-image" gif...
any clues ?
bye
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-05-26
I got the same thing on my suse machine.
But no cure, sorry.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have some leads. I am using the Debian ipac-ng so this may only apply with the package defaults for it.
In your rules.conf for ipac-ng get rid of the trailing spaces off the rule names... ie
total in all |ipac~i||all||
total out all |ipac~o||all||
==>
total in all|ipac~i||all||
total out all|ipac~o||all||
Explanation follows, no need to read further.
First you may notice that the images are actually being made (look in the data dir) and are PNG files. Now if you have a look at the src of the images, they are GIF files. Whats happening is phpIpacStat decides which extension it should use by testing to see if the first rule's graph exists with the .png extension (create_code function in index.php). The file it looks for is the rule name with the spaces replaced with underscores... the first rule in the Debian package is:
total in all |ipac~i||all||
Now the trailing space in "total in all " is trimmed off when the png file is created but not when the check to see if the file exists is done. So get rid of the space on this line and the one following.
Now all the graphs (that exist) will work. The remaining ones which are missing are because no traffic has fallen into these categories.
Nigel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
Running on Debian, ipac-ng working well, almost (not configured yet the crontabs), but, when i use phpipacstats, i'm able to see the text summary, but on the image, i see only the "no-image" gif...
any clues ?
bye
I got the same thing on my suse machine.
But no cure, sorry.
I have some leads. I am using the Debian ipac-ng so this may only apply with the package defaults for it.
In your rules.conf for ipac-ng get rid of the trailing spaces off the rule names... ie
total in all |ipac~i||all||
total out all |ipac~o||all||
==>
total in all|ipac~i||all||
total out all|ipac~o||all||
Explanation follows, no need to read further.
First you may notice that the images are actually being made (look in the data dir) and are PNG files. Now if you have a look at the src of the images, they are GIF files. Whats happening is phpIpacStat decides which extension it should use by testing to see if the first rule's graph exists with the .png extension (create_code function in index.php). The file it looks for is the rule name with the spaces replaced with underscores... the first rule in the Debian package is:
total in all |ipac~i||all||
Now the trailing space in "total in all " is trimmed off when the png file is created but not when the check to see if the file exists is done. So get rid of the space on this line and the one following.
Now all the graphs (that exist) will work. The remaining ones which are missing are because no traffic has fallen into these categories.
Nigel