Is there a way I can configure ClamAV to only send an email when the scan has found something?
I searched and tried every possible setting I could find in the GUI but still get an email about every scan.
ClamAV Notification only when found something
-
- OMV 3.x
- fahrer17
-
-
Noone?
-
These useless emails telling me ClamAV as nothing detected are really annoying - is there no way of configuring ClamAV in a way like this:
Code# get the value of "Infected lines" MALWARE=$(tail "$LOGFILE"|grep Infected|cut -d" " -f3); # if the value is not equal to zero, send an email with the log file attached if [ "$MALWARE" -ne "0" ];then # using heirloom-mailx below echo "$EMAIL_MSG"|mail -a "$LOGFILE" -s "Malware Found" -r "$EMAIL_FROM" "$EMAIL_TO";
Found here.
-
Did you put in a feature request on bugtracker? Most of the notifications in omv are either on or off.
-
No, I didn't (never even thought about this ).
So I just can mention it there or is there something I have to observe? I never used a bugtracker before...
Edit: Done with ID 0001821
-
I don't know a easy way to do that, but i'm open for pull requests that implement such a feature.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!