Jump to content
Froxlor Forum
  • 0

[solved] Clamav script angepasst


webass

Question

Hi,

auf eine Froxlor installation bezogen muss das folgende Script doch auf bestimmte werte hin angepasst werden, richtig?

 

http://blog.ip-projects.de/automatischer-virenschutz-debian-ubuntu-server/

 

Ich passe an (hier Original):

#!/bin/sh
### Allgemeine Angaben
mailbetreff="Root-Server 123456 Virenwarnung"
administratormail="info@ip-projects.de"
 
### Script
### Ausl?sen des Scans
rm -R /home/clamav/scanlog-www.log
clamscan /var/www/virtual/ --recursive=yes --log=/home/clamav/scanlog-www.log --infected --scan-html=yes --scan-pdf=yes --exclude=backups --exclude=logs --exclude=errors
rm -R /home/clamav/scanlog-mail.log
clamscan /var/mail/ --recursive=yes --log=/home/clamav/scanlog-mail.log --infected --scan-html=yes --scan-pdf=yes --exclude=new
 
### Versenden der E-Mail
if grep -rl 'Infected files: 0' /home/clamav/scanlog-www.log
then echo "kein Virus auf www gefunden"
else cat /home/clamav/scanlog-www.log | mail -s "$mailbetreff" $administratormail
fi
if grep -rl 'Infected files: 0' /home/clamav/scanlog-mail.log
then echo "kein Virus auf mail gefunden"
else cat /home/clamav/scanlog-mail.log | mail -s "$mailbetreff" $administratormail
fi

Wie folgt beim clamscan:

#!/bin/sh
### Allgemeine Angaben
mailbetreff="VPS 123456 Virenwarnung"
administratormail="email@email.cc"
 
### Script
### Ausl?sen des Scans
rm -R /home/clamav/scanlog-www.log
clamscan /var/customers/webs --recursive=yes --log=/home/clamav/scanlog-www.log --infected --scan-html=yes --scan-pdf=yes --exclude=backups --exclude=logs $
rm -R /home/clamav/scanlog-mail.log
clamscan /var/customers/mail --recursive=yes --log=/home/clamav/scanlog-mail.log --infected --scan-html=yes --scan-pdf=yes --exclude=new
 
### Versenden der E-Mail
if grep -rl 'Infected files: 0' /home/clamav/scanlog-www.log
then echo "kein Virus auf www gefunden"
else cat /home/clamav/scanlog-www.log | mail -s "$mailbetreff" $administratormail
fi
if grep -rl 'Infected files: 0' /home/clamav/scanlog-mail.log
then echo "kein Virus auf mail gefunden"
else cat /home/clamav/scanlog-mail.log | mail -s "$mailbetreff" $administratormail
fi

Korrekt?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Fragst du weil es Fehler gibt oder wie? Ist kein script von uns, woher sollenn wir wissen wo was hingeh?rt? Wenn du die Kunden webs scannen willst ist der Ordner sofern du den so in den Einstellungen hinterlegt hast korrekt.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...