Overview

We can use Telegraf to poll SNMP OIDs from other hosts and via our Telegraf to Prometheus connection we can expose those items in Grafana for alerting and monitoring.

This example is geared around Eaton UPS units but the principles and procedures apply to any SNMP item that you want to poll via Telegraf.

<aside> 🐌 We are assuming here that you have the Debian net-snmp package installed on your Telegraf system

</aside>

You may need a couple of extra packages:

apt-get install smistrip snmp-mibs-downloader

Load MIBs

Eaton UPS units use XUPS-MIB

This MIB depends upon two other MIBs that can be downloaded from the Eaton web site at something like https://powerquality.eaton.com/Support/Software-Drivers/Downloads/connectivity-firmware.asp

<aside> 🐿️ Note that the files may be a .mib extension and we can change that to .txt without issue

</aside>

Place these files on the Telegraf system that will be checking the OIDs under the /usr/share/snmp/mibs directory and make sure the files are chmod 644

On the Telegraf server edit /etc/snmp/snmp.conf and find this line:

# mibs :

Change the line to look like this instead:

mibs +ALL