Thanks! :) The URLs are handled by rewrite rules and the pages are all dynamically displayed. You may need to adjust the "RewriteBase" in the .htaccess file to the directory you've got the script in. Also, if you're using a server other than Apache (eg. Cherokee, Nginx or Lighttpd), you'll need to convert the rules to your server's format. The regular expressions are listed in the .htaccess file.
The IP thing was something for my situation. I don't own the whole IP subnet range, so IPs that I don't own were coming up in the statistics (as my server sent/received data from some other servers in the same subnet). I couldn't find a way to provide a list of IPs instead of a CIDR range in the pmacct config, so I just filter them out when displaying them instead. I just committed a change that lets you set the include_ips array to an empty array to show all logged IPs I probably shouldn't have put my IPs in the example config file so I've removed them too. Grab the latest code and it should all work fine. Let me know how it goes - Feel free to log any bugs on GitHub if you've got an account there :) -- Regards, Daniel Lo Nigro http://dan.cx/ | http://twitter.com/Daniel15 ----- Original Message ----- From: Stephen Vigus <svi...@gmail.com> To: Daniel Lo Nigro <da...@ymail.com>; pmacct-discussion@pmacct.net Cc: Sent: Thursday, 13 October 2011 6:21 PM Subject: Re: [pmacct-discussion] pmacct PHP frontend Hey Daniel I think it is great that you shared your web frontend. I just have a few questions... The index.php seem to redirect to another subfolder, which doesnt exist on my machine. Is it supposed to generate them automatically? In includes/config.php I have to specifiy every IP I want to see and it doesn't seem to work when I use a whole subnet (eg, 192.168.1.0/24), is that how it works for now or is there another way around that? Other than that, it looks quite promising. :) Cheers Stephen On Thu, Oct 13, 2011 at 7:57 AM, Daniel Lo Nigro <da...@ymail.com> wrote: > Firstly, thanks for your work on pmacct, it seems to work very well! I've > been looking for something like this for quite a while. > > I'm using it to track bandwidth/traffic usage on a server that runs quite a > few virtual servers (via Linux-Vserver). I found some web frontends for > pmacct but none of them seemed to suit my needs (and pmacct-fe seems dead) so > I started making my own. I've placed the code on GitHub if anyone wants > it: https://github.com/Daniel15/pmacct-frontend. It's only for personal use > so I probably won't update it much, but I thought other people with similar > use cases might be interested in using/improving my code for their own web > frontends :) > > Here is a screenshot: http://ss.dan.cx/2011/10/13-16.53.10.png > > Only tested with MySQL, but shouldn't be too hard to get working with > PostgreSQL or maybe SQLite. > > - Daniel > > _______________________________________________ > pmacct-discussion mailing list > http://www.pmacct.net/#mailinglists > _______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists