Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: Jáder on August 18, 2016, 08:16:06 PM
-
I´d like to receive an e-mail anytime the clam updates himself... but on another account not in root!
There are some DB VARIABLE to change or should I change some file ?
Thanks
Jáder
EDIT: I just found "/sbin/e-smith/freshclam-update-ok" should I change it and cron to each 4/6/8 hours ?
-
Just a question: why?
-
The client is a financial institution subject to some compliance rules...one of them is to show updated AV SW on server.
It´s easier to prove showing an e-mail than capture a screen each day.
-
smeserver-mailsorting on admin account can be a good solution.
-
You can also make a simple cronjob that mails you the output of "freshclam -V" - right now "ClamAV 0.99.2/22173/Fri Sep 2 17:27:58 2016" in my setup
basically as bash script
/usr/bin/freshclam -V | mail yourname@domain.com -s "ClamDB status"
Or more "complex" - change the file /sbin/e-smith/freshclam-update-ok to do the same or uncomment the content and change "admin" to the right user.
-
Knuddi,
That´s a cleaner solution... It´s easier to final user to read a date only.
I´ve implemented your tip on /sbin/e-smith/freshclam-update-ok file.