(Answer) (Category) NetMAXFAQ : (Category) Advanced Configuration :
How do I automate the processing of my Traffic Monitor Report.
Applies to: NetMAX version 2.x - 4.0x
address-suppressed
If your Traffic Monitor Report is taking too long to run, you can automate the processing of it's raw tcpdump logs to create the "who hit what sites" and "what sites hit by whom" data files.

To automate this process, simply run the following command from root's crontab:

/usr/netmax/bin/Report.pl -s mm/dd/yyyy -e mm/dd/yyyy </var/log/wwwlog.log

Where -s is followed by the start date, and -e is followed by the end date. Once this process completes, you can go to Home|Reports|Traffic Monitor Report, click on the LAST REPORT tab, and view the report generated by the results of your cronjob.

It may be necessary for you to do this if running the Traffic Monitor Report, from the beginning, through the NetMAX Interface causes your login to timeout resulting in the report terminating before completion.

Even so, it is recommend that you keep your log files short by lowering the duration that they are stored, if the speed of your computer is unable to generate the log files in a timely manner.

You will need to add a -p option to the Report.pl command if you are using the NetMAX Proxy Caching Server, and want to include it's logs in the report.

/usr/netmax/bin/Report.pl -s mm/dd/yyyy -e mm/dd/yyyy -p </var/log/wwwlog.log

Please note that the only way to show TCP/UDP traffic in the Traffic Monitor Report correctly, if you are doing IP NAT, is by having your users use the Proxy Caching Server and including the -p parameter for this command.

The Traffic Monitor only monitors traffic passing through a network interface that is not destined for the network that the interface resides on. The reason why NAT'd traffic is not monitored is because it is destined for the NetMAX, and not for the Internet. The NetMAX is then acting more as a proxy than as a transparent router.
address-suppressed

Previous: (Answer) How do I configure my web/email server behind a NAT'd firewall?
Next: (Answer) How do I get started using MySQL?
This document is: http://www.netmax.org/cgi-bin/fom.cgi?file=401
[Search] [Appearance]
This is a Faq-O-Matic 2.721.
This FAQ administered by ...Cybernet Systems Corp.