Implementing SNMP on Debian 6 and 7

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. It is configured to proxy SNMP requests related to load-balancing to hapee-snmp.
  • SNMP plugin for HAProxy: called hapee-snmp-lb. This plugin collects data from hapee-lb.
  • HAPEE’s SNMP daemon: called hapee-snmp. It relies relies on the hapee-snmp-lb plugin to collect data from hapee-lb.

The diagram below illustrates the flow:

Install Operating System SNMP daemon: smnpd

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

Install the HAPEE SNMP daemon and plugin: hapee-snmp and hapee-snmp-lb

  • From the packages hapee-1.7r1-snmp and hapee-1.x-snmp-lb, run this command:
apt-get install hapee-1.7r1-snmp hapee-1.7r1-snmp-lb

Start up hapee-1.7-snmp

Run this this command:

/etc/init.d/hapee-1.7-snmp start

Configure the system snmpd daemon

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

view systemonly included .1.3.6.1.4.1.23263.4.3.1.3
proxy -v 2c -c public 127.0.0.1:1161 .1.3.6.1.4.1.23263.4.3.1.3

2. Restart snmpd:

service snmpd restart
There is nothing to configure for the HAPEE SNMP daemon and plugin, because their configuration comes with their respective packages and do not require any update.