Understanding SNMP in a SIEM environment and Monitoring Zevenet Appliance

An introduction to SNMP

SNMP or Simple Network Management Protocol is an application layer protocol defined by the IETF in it’s current amend RFC 1157. SNMP base its data representation in an ASN.1 (presentation layer protocol) modification, defined also by the IETF in the RFC 1065 as SMI (Structure and Identification of Management Information).

SNMP allows two ways of working, synchronous (or polling) and asynchronous. The synchronous mode is the most common way of using SNMP, it works by sending PDUs (Protocol Data Units) to managed devices which implements SNMP in the network, those PDU could be for data retrieval (GetRequest) which requires a response from the device (GetResponse) or to set a value in a specific object (SetRequest).

SNMP in asynchronous mode works by the use of traps. Traps are unsolicited alert PDUs sent by the managed device to a central trap collector station, those traps are the indicator that a critical event has happened in the monitored device, for example, overheating or too much memory usage and are directed to the UDP port 162.

MIB – Management Information Base

Each object which could be managed by SNMP are grouped hierarchically and represented in a special file called MIB files, those MIBs are descriptors of groups of managed objects organized by under a tree of OIDs (Object Identifiers) which identifies each object in a unique way.

We can see an example of a MIB content in the following picture:

One of the most common MIB files is defined by the IETF in the MIB-II.

SNMP – Architecture

SNMP defines 3 types of entities in its architecture:

Network Management Stations: Execute management applications to control and monitor the network elements.
Network elements: Devices such as a Zevenet Load Balancer which will be monitored by the network management station.
Agents: Software responsible for executing orders sent by the network management stations, like retrieving the value of a specific OID.

In the following picture, it’s shown an example of an usual SNMP architecture in a network:

Configuring SNMP in Zevenet Appliances

Zevenet appliances come with an SNMP agent implemented on it allowing the Debian GNU/Linux default OIDs to be polled synchronously by a network management station in order to control the state of the load balancer.

To configure SNMP in Zevenet appliances, it could be done in an easy way through the web GUI as follows:

1. Navigate to the appliance web GUI and go to the section System > Local Services on the sidebar:

2. Enable the SNMP checkbox and configure the interface from which the incoming requests will be allowed. It’s recommendable to set up here the management interface.

3. We can change the listening port and the community name, notice that the such name is required when requesting an OID and should be included in the request.

4. The last field is the IP address or subnet from which the service will allow incoming requests.

With this service your application delivery can be monitor in a centralized SIEM platform in order to ensure the right traffic behavior.

Please find below some useful SNMP OIDs in order to monitor properly a load balancer. Note that there are a lot of different OIDs to use, so we recommend to use a tool like snmptranslate in order to translate them to a more understandable name for network managers.

SNMP OIDs for Memory Statistics

Use the following OIDs for Zevenet Appliances in order to get different memory stats:

memTotalSwap: Total swap space configured for the host in kB (.
memAvailSwap: Swap space currently available in kB (.
memAvailSwap: Real memory installed on the host in kB (.
memAvailReal: Real memory available in kB (.
memTotalFree: Total of free memory in kB (.
memShared: Total of real or virtual memory allocated for use as shared memory in kB (.
memBuffer: Total of real or virtual memory allocated for use as memory buffer in kB (.
memCached: Total of real or virtual memory allocated for use as cache memory in kB (.

SNMP OIDs for CPU Load Statistics

Use the following OIDs for Zevenet Appliances in order to get the CPU load values:

1 minute CPU Load (.
5 minute CPU Load (.
15 minute CPU Load (.

SNMP OIDs for CPU Statistics

Use the following OIDs for Zevenet Appliances in order to get the CPU stats:

SsCpuSystem: percentages of system CPU processing system-level time (.
ssCpuRawSystem: Ticks spent in system-level code (.
ssCpuIdle: Percentage of processor time in idle state (.
ssCpuRawIdle: Ticks spent idly by cpu (.

SNMP OIDs for Network Interfaces Statistics

Use the following OIDs for Zevenet Appliances in order to get the network interfaces stats:

ifNumber: Number of interfaces in the system (
interfaces: table for interfaces statistics (

This OID corresponds with a table in the MIB2. Note that tables are different in their representation than scalar objects. Imagine a table with an OID xTable, with columns Coli and index i, to gain access to the column Col1 and index 1, we should request a snmpget for xTable.xEntry.Col1.1, where xEntry has only a conceptual meaning, we can also get all entries of a column Col1 with an snmpwalk to xTable.xEntry.Col1 or get the full table with a snmpwalk to its OID (xTable.xEntry). Lets what we get as columns:

ifDescr: Interfaces names (
ifType: Interfaces type, for example, ethernet (
ifMtu: Maximum Transfer Unit (
ifSpeed: Current estimated or nominal bandwidth in b/s (
ifPhysAddress: lower protocol layer address, for example, MAC address (
ifOperStatus: Current status (
ifInOctets: Number of incoming octets (
ifInUcastPkts: Number of incoming unicast packets (
ifInDiscards: Number of inbound packets discarded (
ifInErrors: Number of inbound packets with errors preventing them to be delivered (
ifOutOctets: Number of transmitted octets (
ifOutUcastPkts: Number of transmitted unicast packets (
ifOutDiscards: Number of transmitted packets discarded (
ifOutErrors: Number of outgoing packets with errors which couldn’t be transmitted (

Backends SNMP monitoring from the load balancer

On the other hand, SNMP is very useful in a load balancer point of view as it could be used to gather backends metrics and use them to change the scheduler behavior or to automate the activation and deactivation of backends. Refer to this link to get more information about how to use a custom farm guardian check with SNMP.

Further application delivery monitoring

There are use cases where it’s needed to get specific monitoring values like the farms, backends or clustering statistics and states. To gather these specific values, please follow this article it can also be done through the REST api.

Further monitoring resources

Refer to the articles about how to monitor Zevenet Appliances with Nagios or Zabbix through the following links:


Hope that you find this article useful and that it takes you to the next level of using SNMP to monitor Zevenet Appliances!


UCD-SNMP-MIB http://www.net-snmp.org/docs/mibs/UCD-SNMP-MIB.txt
SNMP protocol RFC: https://tools.ietf.org/html/rfc1157
SIM RFC: https://tools.ietf.org/html/rfc1065
net-snmp: http://www.net-snmp.org/wiki/
Debian wiki snmp: https://wiki.debian.org/SNMP
UCD-SNMP-MIB: http://www.net-snmp.org/docs/mibs/UCD-SNMP-MIB.txt

Share on:

Documentation under the terms of the GNU Free Documentation License.

Was this article helpful?

Related Articles