270
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
Assume the remote log server needs a username name1 and password A-secret-for-2.
# config -s config.eventlog.server.username=name1
# config -s config.eventlog.server.password=A-secret-for-2.
To set the remote path as /Black Box/logs to save logged data:
# config -s config.eventlog.server.path=/Black Box/logs
# config -s config.eventlog.server.type=[none|syslog|nfs|cifs|usb]
If the server type is set to usb, none of the other values need to be set. The mount point for storing on a remote USB device is /var/
run/portmanager/logdir.
The following command will synchronize the live system with the new configuration:
# config -a
15.1.12 ALERTS
You can add an email, SNMP or NAGIOS alert by following the steps below.
THE GENERAL SETTING FOR ALL ALERTS
Assume this is our second alert, and we want to send email alerts to john@Black Box.com and sms alerts to peter@Black Box.
com:
# config -s config.alerts.alert2.description=MySecondAlert
# config -s config.alerts.alert2.email=john@Black Box.com
# config -s config.alerts.alert2.email2=peter@Black Box.com
To use NAGIOS to notify of this alert
# config -s config.alerts.alert2.nsca.enabled=on
To use SNMP to notify of this alert
# config -s config.alerts.alert2.snmp.enabled=on
To increment the total alerts:
# config -s config.alerts.total=2
Below are the specific settings depending on the type of alert required.
CONNECTION ALERT
To trigger an alert when a user connects to serial port 5 or network host 3:
# config -s config.alerts.alert2.host3=hostname
# config -s config.alerts.alert2.port5=on
# config -s config.alerts.alert2.sensor=temp
# config -s config.alerts.alert2.signal=DSR
# config -s config.alerts.alert2.type=login
CHAPTER 15: CONFIGURATION FROM THE COMMAND LINE