System information
-x DES -X 0p3nNMSv3 \
localhost .1.3.6.1.4.1.22736
If all goes well, you should get lots of lines back, including:
SNMPv2-SMI::enterprises.22736.1.5.4.1.2.1 = STRING: "SIP"
SNMPv2-SMI::enterprises.22736.1.5.4.1.2.2 = STRING: "IAX2"
SNMPv2-SMI::enterprises.22736.1.5.4.1.2.3 = STRING: "Bridge"
SNMPv2-SMI::enterprises.22736.1.5.4.1.2.4 = STRING: "MulticastRTP"
SNMPv2-SMI::enterprises.22736.1.5.4.1.2.5 = STRING: "DAHDI"
SNMPv2-SMI::enterprises.22736.1.5.4.1.2.6 = STRING: "Local"
SNMPv2-SMI::enterprises.22736.1.5.4.1.3.1 = STRING: "Session Initiation Protocol(SIP)"
SNMPv2-SMI::enterprises.22736.1.5.4.1.3.2 = STRING: "Inter Asterisk eXchange Driver"
SNMPv2-SMI::enterprises.22736.1.5.4.1.3.3 = STRING: "Bridge Interaction Channel"
SNMPv2-SMI::enterprises.22736.1.5.4.1.3.4 = STRING: "Multicast RTP Paging Channel"
SNMPv2-SMI::enterprises.22736.1.5.4.1.3.5 = STRING: "DAHDI Telephony Driver"
SNMPv2-SMI::enterprises.22736.1.5.4.1.3.6 = STRING: "Local Proxy Channel Driver"
If you don’t get data returned right away, it could be because the Asterisk
res_snmp.so module has not reconnected to the SNMP daemon. You can force this
either by restarting Asterisk, or by unloading and reloading the res_snmp.so module
from the Asterisk CLI.
Monitoring Asterisk with OpenNMS
Once you’ve installed OpenNMS and configured Asterisk with the res_snmp module,
you can use OpenNMS to monitor your Asterisk server. You can configure what sta-
tistics are monitored, as well as what notifications you would like to receive based on
those statistics. Exploring the capabilities of OpenNMS is left as an exercise for the
reader. However, we have included a few graphs to demonstrate some of the basic
information you can collect from an Asterisk server. These graphs come from an
Asterisk server that is not very heavily loaded, but they still give a good indication of
what you might see.
Figure 24-1 contains a graph of how many channels were active in Asterisk at different
times.
Figure 24-1. Graph of active Asterisk channels
558 | Chapter 24: System Monitoring and Logging