Hi,

Currently I'm confronted with some difficulties in configuring freshclam, in 
the freshclam.conf file.

More specific I want to trigger a command to the events 'OnUpdateExecute' and 
'OnErrorExecute'. My purpose is to execute a Powershell command which calls a 
local API in order to keep track of update statuses.

I'm using ClamAV 0.104.1 for Windows. The ways I have tried to configure the 
described scenario are multiple:

        OnErrorExecute = powershell.exe "D:\Updatelog.ps1"

        OnErrorExecute powershell.exe "D:\Updatelog.ps1"

        OnErrorExecute "D:\Updatelog.ps1"

        OnErrorExecute D:\Updatelog.ps1

The way I am testing this scenario is disabling internet connection for 
freshclam while updating. My expectation is that the update process fails this 
way, and that event ' OnErrorExecute' occurs. However: the Powershell script is 
never executed. To be complete: the script I have configured is working 
perfectly when executed in a command prompt window.

Is there somebody who has done this before on Windows, or knows how to 
configure this setting properly? Or could it be that my apprehension of this 
event is incorrect, and it occurs in other situations? I have seen examples 
from other people, but they were using Linux, which might be slightly different 
in this (configuration) respect. 


Thanks in advance,

Kind regards,
Tim 


PS: below I have included my config:

Checking configuration files in D:\OV\ClamAV3\clamav-0.104.1.win.x64

Config file: clamd.conf
-----------------------
LogFile = "D:\OV\ClamAV3\Log\clamd.log"
LogTime = "yes"
LogClean = "yes"
LogRotate = "yes"
DatabaseDirectory = "D:\OV\ClamAV3\Database"
TCPSocket = "3310"
TCPAddr = "localhost"

Config file: freshclam.conf
---------------------------
LogTime = "yes"
LogRotate = "yes"
DatabaseDirectory = "D:\OV\ClamAV3\Database"
UpdateLogFile = "D:\OV\ClamAV3\Log\freshclam.log"
DatabaseMirror = "database.clamav.net"
OnUpdateExecute = "= powershell.exe "D:\Updatelog.ps1""
OnErrorExecute = "= powershell.exe "D:\Updatelog.ps1""
OnOutdatedExecute = "= powershell.exe "D:\Updatelog.ps1""

clamav-milter.conf not found

Software settings
-----------------
Version: 0.104.1
Optional features supported: MEMPOOL AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 JSON RAR

Database information
--------------------
Database directory: D:\OV\ClamAV3\Database
Total number of signatures: 0

Platform information
--------------------
uname: Microsoft Windows 6.2 SP0.0 Build 9200
OS: Windows, ARCH: AMD64, CPU: AMD64
zlib version: 1.2.11 (1.2.11), compile flags: 65
platform id: 0x10058d8d080000000000077c

Build information
-----------------
Microsoft Visual C++: (0.7.124)
sizeof(void*) = 8
Engine flevel: 141, dconf: 141

_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to