One can receive alerts via EMAIL, SYSLOG, SNMP trap or all. These alerts will be based on the strings being monitored on the serial port.
Configuration via WebUI:
- Login as admin and go to Managed Devices
- Select the device and click Logging
- Note: Multiple devices of the same type can be selected by checking each box and then clicking Edit
- Check the Data Logging and Enable data logging alerts for the port
- Add the string you need to receive the alert for in the Data String option available
- Click Save
- Go to Auditing and select Destinations to configure alerts
- Details available here: Auditing and Data Logging Settings
Note: When the string shows up in the serial session, it will trigger the event to send the alert to the configured destinations.
To access Data Logging from WebUI:
- Go to Access page
- Select the target device
- Click Data log
Configuration via CLI:
- Log in as admin in CLI (telnet/ssh/console)
- Navigate to /settings/devices/<Device_Name>/logging
- Use the set command to change the data_logging value to yes or no
- Commit the changes
Basic Data Logging settings:
[admin@nodegrid / ] # /settings/devices/Device_console/logging/
[admin@nodegrid / ] # set data_logging=yes
[admin@nodegrid / ] commit
To access Data Logging from CLI:
- Log in as admin in CLI (telnet/ssh/console)
- Navigate to /settings/devices/<Device_Name>
- Use the command access_log_audit
[admin@nodegrid / ] # /settings/devices/Device_console/
[admin@nodegrid / ] # access_log_audit
NFS settings:
[admin@nodegrid /]# cd /settings/auditing/destinations/file/
[admin@nodegrid file]# set destination=nfs
[+admin@nodegrid file]# set nfs_server=<server>
[+admin@nodegrid file]# set nfs_path=<path/filename>
[+admin@nodegrid file]# commit
Optional NFS parameters:
set nfs_file_size=
set nfs_archive_by_time=
set number_of_archives=
Syslog settings:
[admin@nodegrid /]# cd /settings/auditing/destinations/syslog/
[admin@nodegrid syslog]# set ipv4_remote_server=yes ipv4_address=<server>
[+admin@nodegrid syslog]# set datalog_facility=log_local_0
[+admin@nodegrid syslog]# commit
SNMP Trap settings via CLI:
[admin@nodegrid /]# cd /settings/auditing/destinations/snmptrap/
[admin@nodegrid snmptrap]# set snmptrap_server=<server>
[+admin@nodegrid snmptrap]# set snmptrap_version=<version>
Optional SNMP parameters:
client_address=
snmptrap_port=
snmptrap_transport_protocol=
Optional SNMPv2c parameters:
snmptrap_community=
Optional SNMPv3 parameters:
snmptrap_authentication=
snmptrap_authentication_password=
snmptrap_security_level=
snmptrap_user=
snmptrap_privacy_algo=
snmptrap_privacy_passphrase=
Note: The raw Data Logging data is stored in /var/local/DB.