rsmuc/health_monitoring_plugins

New firmware release breaks check_snmp_eaton_ups.py

Stevesibilia opened this issue · 1 comments

Firmware 2.0.5 of eaton ups nic breaks output_power check and input_frequency check.
Something is changed in device's MIB so the check responds:
Unknown - No response from device for output load

The solution is to change OID in eaton.py file and set the indexing method to INDEX_SCALAR.
I'v attached my patch file for eaton.py, let me know if it is useful.

eaton.py_patch.txt

Regards
Stefano

For anyone else who stumbles on these plugins because they want to monitor an Eaton UPS in 2024 - thought I'd note the following:

  • The plugin does work with the latest Eaton device/firmware
  • As @Stevesibilia said, input_frequency is broken, but actually output_power works fine for me out of the box
  • environment_temperature and external_environment_temperature didn't work for me, but I'm not sure if that's a SNMP issue, or if I'm missing the environmental probe
  • The authors noted their roadmap included replacing netsnmp, but looks like they never got around to it

On my Ubuntu 20.04 server, I just had to download https://sourceforge.net/projects/net-snmp and more or less do the following

apt install python3
apt install python3-pip
apt install python-is-python3
apt-get install libperl-dev
pip install health_monitoring_plugins

cd net-snmp-5.9.4
./configure
make 
make install

cd python
python setup.py install

ldconfig

Then the majority of the checks work perfectly