userdoc:tt_asterisk_snmp_monitoring

This is an old revision of the document!


Asterisk SNMP Monitoring

Asterisk includes the res_snmp.so module designed to provide monitoring information via SNMP. Very useful when used together with Zabbix remote monitoring.

Note: AstLinux 1.1.2 or later is required

Example: /mnt/kd/snmp/snmpd.conf

com2sec notConfigUser default public

group notConfigGroup v1  notConfigUser
group notConfigGroup v2c notConfigUser

view all included .1
view system included .iso.org.dod.internet.mgmt.mib-2.system

access notConfigGroup "" any noauth exact all none none

syslocation Omaha, NE
syscontact AstLinux - www.astlinux.org

agentaddress udp:127.0.0.1:161

master agentx
agentXSocket /var/agentx/master
agentXPerms 0660 0550

sysObjectID .1.3.6.1.4.1.22736.1
mibs +ASTERISK-MIB

Restart snmpd service:

service snmpd stop
service snmpd init

Example snmp commands:

# Linux uname -a
snmpget -OQv -v2c -c public 127.0.0.1 SNMPv2-MIB::sysDescr.0

# System uptime
snmpget -OQv -v2c -c public 127.0.0.1 SNMPv2-MIB::sysUpTime.0

# List network interfaces
snmpwalk -OQv -v2c -c public 127.0.0.1 IF-MIB::ifDescr
  • userdoc/tt_asterisk_snmp_monitoring.1368042900.txt.gz
  • Last modified: 2013/05/08 14:55
  • by abelbeck