Would you like to learn how to enable Asterisk SNMP feature? In this tutorial, we are going to show you all the steps required to perform the Asterisk Snmp configuration on a computer running Ubuntu Linux.
• Ubuntu 18.04
• Ubuntu 19.04
• Asterisk 16.5.1
Hardware List:
The following section presents the list of equipment used to create this Asterisk tutorial.
Every piece of hardware listed above can be found at Amazon website.
Asterisk Playlist:
On this page, we offer quick access to a list of videos related to Ubuntu Linux.
Don’t forget to subscribe to our youtube channel named FKIT.
Asterisk Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Asterisk.
Tutorial – Asterisk SNMP Installation
First, we need to install the SNMP service on the Linux server.
Second, we need to configure the SNMP service to allow the Asterisk integration.
On the Asterisk server, use the following commands to install the SNMP service.
Find the location of the snmpd.conf file on your system.
Before we begin, create a backup of the original SNMP configuration file.
Next, you need to edit the snmpd.conf file.
Here is the original file, before our configuration and without the comments.
Here is the new file with our configuration.
The GokuBlack Community has read-only permission on the Linux server.
The contact person responsible for this Linux was configured as Zamasu.
The location of the equipment was configured as the IT Room of Universe 10.
You should also restart SNMP manually and verify the service status.
Here is an example of the expected output.
You have finished the Asterisk SNMP required configuration on Linux.
Tutorial – Asterisk SNMP Configuration
Edit the Asterisk res_snmp.conf configuration file to enable the SNMP integration.
Add the following lines to the end of the res_snmp.conf file.
Restart the Asterisk service.
Connect to the Asterisk console and verify if the Asterisk SNMP module was loaded.
In our example, we can see the Asterisk SNMP module was loaded.
To test your Asterisk SNMP configuration, use the following command.
Keep in mind that we used an SNMP community named GokuBlack just as an example.
You should see a SNMP output:
You have successfully configured the Asterisk SNMP feature.
Tutorial – Asterisk MIB Installation
Access the SNMP mib repository directory and create a file named ASTERISK-MIB.txt
Access this Asterisk website and copy the text content of the page to inside the MIB-ASTERISK.txt file.
Here is an example of the beginning of this file.
Access the SNMP mib repository directory and create a file named DIGIUM-MIB.txt
Access this Asterisk website and copy the text content of the page to inside the DIGIUM-ASTERISK.txt file.
Here is the file content.
Edit the SNMP configuration file named snmp.conf.
Here is the original file, before our configuration.
Here is the new file with our configuration.
Restart the SNMP service.
Restart the Asterisk service.
Perform another SNMP communication test to see if the OID translation to MIB is working.
You should see a SNMP output using words instead of numbers.
Congratulations, you have installed the Asterisk MIB successfully.