With the use of alerts the state and results of a scan can be sent to others systems automatically. Alerts are anchored within the system in a way that each configured event will trigger an action, for example, when a task is started or completed. Additionally this can be tied to a condition. This could be the discovery of a vulnerability of a severity greater than 9. If met, an email or a SNMP trap can be triggered.
To create an alert change to Configuration/Alerts. Now add a new alert .
Now, the following can be defined:
Here additional conditions, that have to be met, are being defined. The alert message can occur:
Here the method for the alert is selected. Only one method per alert can be chosen. If different alerts for the same event should be triggered, multiple alerts must be created and linked to the same task.
This is the most powerful and most used method. To use this method the mailserver to be used must be defined in the GSM command line (see section Mail Server). Then you can chose between the following options:
Here the content of the email can be defined:
If the event for the completion of the task (Default: Done) is selected the report can be included in the email. Here a report format that uses the content type text/* can be chosen as an email does not support binary content directly. Additionally you can modify the contents of the email message. Within the message you may use variables:
- $c condtion description
- $e event description
- $F name of filter
- $f filter term
- $H host summary
- $i report text
- $n task name
- $r report format name
- $t a note if the report was truncated
- $z timezone
With the HTTP Get method, for example, an SMS text message or a message to a trouble ticket system can be sent automatically. The following variables can be used when specifying the URL:
$n
: Name of the task$e
: Description of the event (Start, Stop, Done)$c
: Description of the condition that occurred$$
: The $ symbolFor the alert to be used afterwards, a specific task definition must be created (see figure Alerts must be activated in their respective task.). To do so edit the respective task. This change of the task is also allowed for already defined and used tasks as it does not have any effect on already created reports.
Afterwards the respective alert displays that it is in use as well (see figure In an alert its use within different tasks can be referenced.).