User guide

Chapter 3 - Additional Features
User Guide 179
Step 2: Activate and Save.
To activate your new configurations and save them to flash, type:
config write
(This is essentially typing signal_ras hup and saveconf from the normal terminal
prompt.)
Syslog-ng Configuration to use with Alarm Feature
This configuration example is used for the alarm feature.
Step 1: Configure the pslave.conf file parameter.
In the pslave.conf file the parameters of the alarm feature are configured as:
all.alarm 1
conf.DB_facility 2
Step 2: Add lines to syslog-ng.conf.
The syslog-ng.conf file needs these lines:
# local syslog clients
source sysl { unix-stream("/dev/log"); };
# To filter ALARM message with the string "kernel panic" :
filter f_kpanic {facility(local2) and level(info) and
match("ALARM") and match("kernel panic"); };
# To filter ALARM message with the string "root login" :
filter f_root { facility(local2) and level(info) and
match("ALARM") and match("root login"); };
# To send e-mail to z@none.com (SMTP's IP address 10.0.0.2)
# from the e-mail address a@none.com with subject "ALARM".
# The message will carry the current date, the hostname