americanintel
Verified User
I found this little script and thought I would give it a whirl for reporting ClamAV results:
http://pandaemail.sourceforge.net/av-tools/
Demo Here
Download here
Both links can be found on the site above.
There aren't really any instructions but the install file walks you through things and is pretty simple.
I did a cd to /home/myuser/public_html/cgi-bin
then
#wget http://pandaemail.sourceforge.net/download/perl-install.tgz
(expand the url accordingly, it gets truncated here)
Untar the file:
#tar xzvf perl-install.tgz
It then creates a perl-logscan/ directory
#cd perl-logscan/
while you are there
#pico -w readme.txt
you can also take a look at the install.pl file to see what it is going to ask:
#pico -w install.pl
when you are ready to install just do:
#./install.pl
It will walk you through a few questions, language (English is default), what virus scanner you are using (CLAMAV), where to find the logs (mine and most are /var/log/maillog) then it asks where you want your /virus directory which is where it is going to place your files so, for example:
/home/youruser/public_html/cgi-bin/virus/
when it asks you about cycles just leave it at '4', has to do with log rotation, weeks..etc.
It will create the 'virus' directory in your cgi-bin and place the necessary files including crontab.pl which as you might expect reads the logs and generates the reports and display.pl which is the file you want to view in your browser to actually view the reports. You can alter display.pl to change text, colors..etc if you want.
Don't forget to change ownership to your user:
#cd .. (if you are in cgi-bin/virus/)
#pwd
you should be in:
#/home/youruser/public_html/cgi-bin
then
#chown youruser:youruser * -R
or
#chown youruser:youruser virus/ -R
Pretty simple script and setup that will give you weekly graphs, keep in mind that ClamAV will need to be running for a week or more to see any graphs. My ClamAV install is only a day old so I will have to wait a few days for results.
Note: Mod, feel free to move this to the How-To forum if you see fit or feel it is needed there.
http://pandaemail.sourceforge.net/av-tools/
Demo Here
Download here
Both links can be found on the site above.
There aren't really any instructions but the install file walks you through things and is pretty simple.
I did a cd to /home/myuser/public_html/cgi-bin
then
#wget http://pandaemail.sourceforge.net/download/perl-install.tgz
(expand the url accordingly, it gets truncated here)
Untar the file:
#tar xzvf perl-install.tgz
It then creates a perl-logscan/ directory
#cd perl-logscan/
while you are there
#pico -w readme.txt
you can also take a look at the install.pl file to see what it is going to ask:
#pico -w install.pl
when you are ready to install just do:
#./install.pl
It will walk you through a few questions, language (English is default), what virus scanner you are using (CLAMAV), where to find the logs (mine and most are /var/log/maillog) then it asks where you want your /virus directory which is where it is going to place your files so, for example:
/home/youruser/public_html/cgi-bin/virus/
when it asks you about cycles just leave it at '4', has to do with log rotation, weeks..etc.
It will create the 'virus' directory in your cgi-bin and place the necessary files including crontab.pl which as you might expect reads the logs and generates the reports and display.pl which is the file you want to view in your browser to actually view the reports. You can alter display.pl to change text, colors..etc if you want.
Don't forget to change ownership to your user:
#cd .. (if you are in cgi-bin/virus/)
#pwd
you should be in:
#/home/youruser/public_html/cgi-bin
then
#chown youruser:youruser * -R
or
#chown youruser:youruser virus/ -R
Pretty simple script and setup that will give you weekly graphs, keep in mind that ClamAV will need to be running for a week or more to see any graphs. My ClamAV install is only a day old so I will have to wait a few days for results.
Note: Mod, feel free to move this to the How-To forum if you see fit or feel it is needed there.
Last edited: