Menus and Keyword Monitoring Filters
3-17
the email address specified by the system administrator.
Port buffering must be enabled on the PortServer CM for the Keyword Monitoring and Notification system
to work. The units are shipped with the port buffering disabled by default. The port buffering parameters can
be modified in the pslave.conf files under
Data Buffering Configuration.
Filters must be created by the system administrator. Filters are written in XML (eXtensible Markup
Language - see XML Basics on page 3-24 for help with XML tagging), and may be created and edited with
the text editor in the Web Management Service. For administrators that do not have access to a web browser,
a limited version of
vi
is included on the system to use for editing the files.
Keyword Monitoring and Notification requires a minimum of three XML files:
•
one or more
filter definition
files
, which contain the words to search for and the message to send when a
word or phrase is found
•
one
link file
, named link.xml, which defines which ports to monitor, what filters to apply, and whom to
notify in case one of the filters detects the words it is looking for - there may be only one filter link file,
but it may contain many link definitions
•
one
global notification file
, which contains the information required to email a notification, such as the
name of the SMTP server and the addresses to put in the From and ReplyTo fields.
The PortServer CM includes samples of these files to be used as templates for creating custom monitoring
and notification systems. The samples are located in the /etc/filter directory. The filenames are filter.xml
(sample filter definition file), link.xml (sample link file) and notification.xml (sample global notification
file).