Chapter 24. System Monitoring and Logging

Table of Contents

logger.conf
Reviewing Asterisk Logs
Logging to the Linux syslog Daemon
Verifying Logging
Call Detail Records
CDR Contents
Dialplan Applications
cdr.conf
Backends
cdr_adaptive_odbc
cdr_csv
cdr_custom
cdr_manager
cdr_mysql
cdr_odbc
cdr_pgsql
cdr_radius
cdr_sqlite
cdr_sqlite3_custom
cdr_syslog
cdr_tds
Example Call Detail Records
Single-party call
Two-party call
Caveats
CEL (Channel Event Logging)
Channel Event Types
Channel Event Contents
Dialplan Applications
cel.conf
Backends
cel_odbc
cel_custom
cel_manager
cel_pgsql
cel_radius
cel_sqlite3_custom
cel_tds
Example Channel Events
Single-party call
Two-party call
Blind transfer
SNMP
Installing the SNMP Module for Asterisk
CentOS dependency
Ubuntu dependency
Recompiling Asterisk with the res_snmp module
Configuring SNMP for Asterisk Using OpenNMS
Installing OpenNMS
Editing /etc/asterisk/res_snmp.conf to work with your OpenNMS server
Editing /etc/snmp/snmpd.conf to work with your OpenNMS server
Enabling SNMPv3
Monitoring Asterisk with OpenNMS
Conclusion

Chaos is inherent in all compounded things. Strive on with diligence.

The Buddha

Asterisk comes with several subsystems that allow you to obtain detailed information about the workings of your system. Whether for troubleshooting or for tracking usage for billing or staffing purposes, Asterisk’s various monitoring modules can help you keep tabs on the inner workings of your system.