![Black Box LS1016A Скачать руководство пользователя страница 181](http://html.mh-extra.com/html/black-box/ls1016a/ls1016a_user-manual_2763435181.webp)
Chapter 3 - Additional Features
User Guide
181
log { source(sysl); filter(f_kpanic); destination(d_mail1);
destination(d_trap); };
# To send e-mail and pager if message received from local
syslog client has the string
# "root login":
log { source(sysl); filter(f_root); destination(d_mail1);
destination(d_pager); };
Alarm, Sendmail, Sendsms and Snmptrap
Alarm
This feature is available only for the Console Server Application. The BLACK BOX
®
Advanced Console Server sends messages using pager, e-mail, or snmptrap if the serial port
receives messages with specific string. To configure this feature:
Step 1: Activate alarm in Portslave configuration file.
Parameter all.alarm - 0 inactive or <> 0 active.
Step 2: Configure filters in the syslog-ng configuration file.
filter f_alarm { facility(local[0+conf.DB_facility]) and
level(info) and match("ALARM") and match("<your string>"); }
;
Example: to filter the ALARM message with the string “kernel panic"
(conf.DB_facility is configured with value 1):
filter f_kpanic {facility(local1) and level(info) and
match("ALARM") and match ("kernel panic"); };
Example: to filter the ALARM message with the string “root login" :
filter f_root { facility(local1) and level(info) and
match("ALARM") and match("root login"); };
Step 3: Configure actions in the syslog-ng configuration file.
(See more details in syslog-ng examples.)
Example: alarm is active and if the serial port receives the string “kernel panic," one
message will be sent to the pager.
Содержание LS1016A
Страница 12: ...Table of Contents 12 BLACK BOX Advanced Console Server This page has been left intentionally blank ...
Страница 30: ...Introduction and Overview 30 BLACK BOX Advanced Console Server This page has been left intentionally blank ...
Страница 282: ...Time Zone 282 BLACK BOX Advanced Console Server This page has been left intentionally blank ...
Страница 406: ...Appendix H Web User Management 406 BLACK BOX Advanced Console Server Figure 43 Access Limit List default page ...
Страница 414: ...Appendix H Web User Management 414 BLACK BOX Advanced Console Server This page has been left intentionally blank ...
Страница 439: ...List of Figures User Guide 439 47 Terminal Server diagram 422 48 Ports configured for Dial in Access 424 ...
Страница 440: ...List of Figures 440 BLACK BOX Advanced Console Server This page has been left intentionally blank ...
Страница 449: ...This page has been left intentionally blank ...