Professional Documents
Culture Documents
_m=knowledgebase&_a=viewarticle&kbarticleid=1129
Overview
This knowledge base article describes how to install and configure the Simple Network Management Protocol (SNMP).
Configure SNMPD
To configure the snmpd package, follow the next steps: Copy the asterisk-mib.txt and the digium-mib.txt files from /usr/share/doc/voipnow-asterisk-1.6.xx/ to /usr/share/snmp/mibs. Add the following to the /etc/snmp/snmpd.conf file:
rocommunity MY_VOIPNOW syslocation SYS_PATH syscontact ADMIN [ADMIN@HOSTNAME] master agentx agentXperms 0660 0550 nobody asterisk agentuser asterisk agentgroup asterisk com2sec local localhost MY_VOIPNOW com2sec local NETWORK/24 MY_VOIPNOW group MyROGroup any local view all included .1 access MyROGroup "" v1 noauth exact all none none
where: MY_VOIPNOW is the name of the snmp community. Do not forget to replace it everywhere, if changed. SYS_PATH is the system location. ADMIN@HOSTNAME is the administrator's email address. NETWORK/24 is the network address allowed to gather data. Add the following to the /etc/snmp/snmp.conf file:
Page 1/2 4PSA Support Zone
https://help.4psa.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=1129
Create the /var/agentx directory and change modes: chmod /var/agentx 777 Start snmpd and snmptrapd by running: /etc/init.d/snmpd start /etc/init.d/snmptrapd start After starting snmpd, the agentx socket will be created in the /var/agentx/master directory. Due to a bug in snmpd, the owner and group will be root:root. In order to enable the Asterisk connection with the socket, you have to change permissions after each restart: chown asterisk:asterik /var/agentx/master Restart Asterisk. It should connect to the agentx socket, so check out /var/log/messages for confirmation. Test the installation: export MIBS=+ASTERISK-MIB snmpwalk -c MY_VOIPNOW -v 1 localhost asterisk This should print all the snmp parameters from the Asterisk mib.