Implementing SNMP on Debian 8

On a HAPEE server, the SNMP stack is split into two main components and one optional component:

  • Operating system SNMP daemon: called snmpd. It listens on a network interface on port 161/UDP and handles SNMP requests from clients.
  • SNMP plugin for HAProxy: called hapee-snmp-lb. This plugin collects data from hapee-lb for snmpd.
  • HAPEE’s SNMP daemon: called hapee-snmp (optional and does not require configuration or update.)

The diagram below illustrates the flow:

Install Operating System SNMP daemon: smnpd

  • Run the following command:
apt-get install snmp
Skip this step if your system already has an SNMP daemon installed.

Install the HAPEE SNMP plugin: hapee-snmp-lb

  • From the package hapee-1.6r2-snmp-lb, run this command:
apt-get install hapee-1.6r2-snmp-lb

Configure the system snmpd daemon

1. Edit the file /etc/snmp/snmpd.conf to add the lines below, depending on your operating system:

pass_persist  .1.3.6.1.4.1.23263.4.3.1.3 /opt/hapee-1.6r2/bin/hapee-snmp-lb

2. Restart snmpd:

service snmpd restart

HAPEE SNMP plugin

There is nothing to configure for this software, as its configuration is provided by the package and does not require any update.