System information

Editing /etc/asterisk/res_snmp.conf to work with your OpenNMS server
In the /etc/asterisk/res_snmp.conf file that you’ve copied over from your source direc-
tory, there are two lines you must uncomment:
[general]
;subagent=yes
;enabled=yes
Modify the res_snmp.conf file so both the SNMP client and the subagent are enabled:
[general]
subagent=yes
enabled=yes
After modifying this file, you will need to reload the res_snmp.so module in order for
the changes to take effect:
*CLI> module unload res_snmp.so
Unloaded res_snmp.so
Unloading [Sub]Agent Module
== Terminating SubAgent
*CLI> module load res_snmp.so
Loaded res_snmp.so
== Parsing '/etc/asterisk/res_snmp.conf': == Found
Loading [Sub]Agent Module
Loaded res_snmp.so => (SNMP [Sub]Agent for Asterisk)
== Starting SubAgent
Editing /etc/snmp/snmpd.conf to work with your OpenNMS server
Now you can modify the /etc/snmp/snmpd.conf file for SNMP on the host machine.
Rename the current example configuration file and create a new snmpd.conf file:
$ cd /etc/snmp
$ sudo mv snmpd.conf snmpd.sample
The first thing to do is to add the permissions control to the file. We suggest you read
the /etc/snmpd/snmp.sample file that you just renamed to get a better idea of how the
permissions are being set up. Then, add the following to your snmpd.conf file:
$ sudo cat > 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 Caledon, ON
SNMP | 553