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.

Copy to Clipboard

Find the location of the snmpd.conf file on your system.

Before we begin, create a backup of the original SNMP configuration file.

Copy to Clipboard

Next, you need to edit the snmpd.conf file.

Copy to Clipboard

Here is the original file, before our configuration and without the comments.

Copy to Clipboard

Here is the new file with our configuration.

Copy to Clipboard

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.

Copy to Clipboard

Here is an example of the expected output.

Copy to Clipboard

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.

Copy to Clipboard

Add the following lines to the end of the res_snmp.conf file.

Copy to Clipboard

Restart the Asterisk service.

Copy to Clipboard

Connect to the Asterisk console and verify if the Asterisk SNMP module was loaded.

Copy to Clipboard

In our example, we can see the Asterisk SNMP module was loaded.

Copy to Clipboard

To test your Asterisk SNMP configuration, use the following command.

Copy to Clipboard

Keep in mind that we used an SNMP community named GokuBlack just as an example.

You should see a SNMP output:

Copy to Clipboard

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

Copy to Clipboard

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.

Copy to Clipboard

Access the SNMP mib repository directory and create a file named DIGIUM-MIB.txt

Copy to Clipboard

Access this Asterisk website and copy the text content of the page to inside the DIGIUM-ASTERISK.txt file.

Here is the file content.

Copy to Clipboard

Edit the SNMP configuration file named snmp.conf.

Copy to Clipboard

Here is the original file, before our configuration.

Copy to Clipboard

Here is the new file with our configuration.

Copy to Clipboard

Restart the SNMP service.

Copy to Clipboard

Restart the Asterisk service.

Copy to Clipboard

Perform another SNMP communication test to see if the OID translation to MIB is working.

Copy to Clipboard

You should see a SNMP output using words instead of numbers.

Copy to Clipboard

Congratulations, you have installed the Asterisk MIB successfully.