rsmuc / health_monitoring_plugins

Several plugins for icinga / nagios
GNU General Public License v2.0
16 stars 15 forks source link

New firmware release breaks check_snmp_eaton_ups.py #24

Open Stevesibilia opened 3 years ago

Stevesibilia commented 3 years ago

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

angrygreenfrogs commented 9 months ago

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

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