Update Virus Database Definitions Using ClamAV

Updated by Van Glass on

This custom trigger action updates the virus database definitions using ClamAV anti-virus software, specifically the freshclam command. 

Downloads

Source code and build instructions

 

How to update virus database definitions

 Let me now show you how to implement that.

1.  Make sure you have already ClamAV installed in the server

Before creating a custom trigger action, you need to have ClamAV anti-virus software installed in the server where JSCAPE MFT Server is running.

2.  Create a Trigger for ClamAV Virus Database Definition update

Login into admin console of JSCAPE MFT Server > Triggers and Click Add to create a Trigger

Give the trigger a Name and then select the Current Time event type from the drop-down list. 

 

clam_av_virus_update_img1

Click Next to Step 2 where a condition can be set to execute the trigger.

Below screen shows a condition that the trigger should execute at 22 Hours 30 minute . Set the condition as Hour =22 AND Minute 30 ( Clam AV Virus Database will be updated every day at 22 hours 30 minutes )

Once the condition is set Click Next to proceed

 

clam_av_virus_update_img2 

 

The step 3 asks to add an action, Add the action "Clam Av Update Virus Definitions" from drop down list. If the action not found read the build instructions (Source code and build instructions) .

Add the action and Click OK to proceed

 

clam_av_virus_update_img3

 

The Parameters for the action "Clam Av Update Virus Definitions" are ;

  • Location 
  • Arguments
  • Output Log

 

As the name indicates, Location is the path where "freshclam" process is located. Arguments (not mandatory) represent the parameters passed along with "freshclam" command. Multiple arguments can be passed using comma separator as below. 

 

--show-progress,--quiet

 

Output log  (not mandatory as freshclam has its own default log settings) is the file where all freshclam log information will be written. The freshclam.conf has all configuration settings.

Click OK to save the settings 

 

clam_av_virus_update_img4-1

 That's it. Now you know how to create a trigger to update the ClamAV Virus Database Definitions.

 


Downloads

Source code and build instructions

 

Topics: JSCAPE MFT, Triggers, Actions

Get A Free Trial

Download Your 7-Day Free Trial Version of JSCAPE MFT Server.

Get Your Free Trial