[Notifications] Section

In the [Notifications] section, you can specify settings for notifications sent on various events (scanning and processing errors, detection of malware, etc.).

Parameter

Description

[Notifications]

ExternalProgram = {String}

Command for external program execution after an action (remove, quarantine, cure, report) is applied to a file. After the command is executed, information on the event is logged.

A thread executing this command waits for it to terminate, and if the return code is not zero, the corresponding message is logged.

You can use the following macros in this command:

$HOSTMASTER$ - Hostmaster parameter value

$REASON$ - name of the event that cause the command execution

$ACTION$ - name of the applied action

$VERSION$ - current product version

$FILE$ - full path to the file which caused the event

$SIZE$ - size (in bytes) of the file which caused the event

$TIME$ - local server time when the command was executed

$DAEMON_REPORT$ - Dr.Web Daemon report received after the file was processed. The report can be empty. Lines in report are delimited with a line feed character

$VIRUSES$ - list of viruses detected during scanning. The list can be empty. Items in the list are separated by commas.

Example: (must be specified on a single line):

"kdialog --passivepopup \"<html><font color=\"red\" size=\"5\">Attention, $REASON$ event is occured!</font><br>File <font color=\"blue\">$FILE$ (size=$SIZE$)</font><br> action=$ACTION$<br></html>\" 10"

In this exapmle, the KDE environment, upon every event (for example, scan errors, malware detection) a pop-up notification appears.

Default value:

ExternalProgram =

SendMail = {logical}

Enables or disables sending of e-mail messages after remove, quarantine, cure or report applied to a file.

Command to sending an e-mail notification is executed after an action is applied but before it is logged.

An e-mail notification is sent to the address specified in the Hostmaster parameter value. Templates for the notifications are taken from the directory specified in Templates parameter.

Default value:

SendMail = No

Templates = {path to directory}

Path to the directory containing notification templates.

Currently, only email.templ template must be located in this directory. For that template, you can use macros listed in the ExternalProgram parameter value.

Default value:

Templates = /etc/drweb/templates/nss

Hostmaster = {e-mail address}

E-mail address where e-mail notifications are sent.

Default value:

Hostmaster = root@localhost

MailCommand = {String}

Shell command executed to send a notification to the administrator.

Default value:

MailCommand = "/usr/sbin/sendmail -i -bm -f drweb-nss -- %s"