This section describes how to configure the various alert notification methods.
![]() | Tip |
---|---|
You can configure an Alerts widget to display only alert notifications for alerts above a certain severity. Use multiple Alerts widgets to organize your alert notifications in this way. |
To configure e-mail notification for the first time, take the following steps:
Fill in the address (or hostname) of the SMTP server and the port on which is it listening.
Important FlowTraq does not support SMTP authentication or encryption. Ensure that the SMTP server is configured to allow unauthenticated, unencrypted connections.
Important The SMTP server must be reachable by FlowTraq Server. Ensure that router and firewall settings allow FlowTraq Server to reach the SMTP server at the configured port.
Tip Leave this field blank to disable e-mail notifications system-wide.
Fill in the desired "From:" address.
"From:" Address This address will be used for all outgoing FlowTraq e-mails.
Fill in the desired "To:" address.
"To:" Address This address will be used for all alert notifications for the currently logged-in user only.
Tip Leave this field blank to disable e-mail notifications for the logged-in user.
Click "OK". (A test e-mail will be sent to the "To:" address.)
![]() | Important |
---|---|
Unprivileged users may access the E-mail preference panel to change the "To:" address for their own alert notifications. However, they may not change the SMTP server, port, or "From:" address. |
To configure syslog notifications, take the following steps:
Important This configuration be used for all alert notifications for the currently logged-in user only.
Important The syslog collector must be reachable by FlowTraq Server. Ensure that router and firewall settings allow FlowTraq Server to reach the collector at the configured port.
Tip Leave this field blank to disable syslog notifications for the currently logged-in user.
![]() | Important |
---|---|
The command line interface (CLI) is described in detail in Chapter 11, Command Line Interface. |
/opt/flowtraq/cmdline/ns2hostsb -s flowtraq.example.com / -un alertuser -up MASKED -al -au alertuser -at -3m
The output of this command might look something like this:
04/11/2012 01:57:03.569706 1 MEDIUM "Upper threshold / exceeded on sessions initiated for address / xxx.xxx.xxx.xxx." ID=11 type=ANALYTICAL / state=NOT-ACKNOWLEDGED user=alertuser / v1=17 v2=10 04/11/2012 10:50:03.811054 1 MEDIUM "Upper threshold / exceeded on bytes sent for address xxx.xxx.xxx.xxx." / ID=13 type=ANALYTICAL state=NOT-ACKNOWLEDGED / user=alertuser v1=48 v2=1
MM/DD/YY HH:MM:SS.usec ALERTDEF SEVERITY "MESSAGE" / ID=id TYPE=type state=STATE user=USER v1=COUNT / v2=THRESHOLD
ALERTDEF
is an integer that uniquely identifies the alert condition.ID, TYPE, STATE,
andUSER
can be safely ignored in this context.THRESHOLD
is the threshold you set when you defined the triggered alert.#! /bin/bash function getAlerts() { /opt/flowtraq/cmdline/ns2hostsb -s flowtraq.example.com / -un alertuser -up MASKED -al -au alertuser -at -1m } while read line do echo "Processing Alert: " $line # add your own code here to parse the details of # the alert and take action accordingly done <<EOF $(getAlerts)