rsmuc / health_monitoring_plugins Goto Github PK
View Code? Open in Web Editor NEWSeveral plugins for icinga / nagios
License: GNU General Public License v2.0
Several plugins for icinga / nagios
License: GNU General Public License v2.0
System: RHEL8.9
Python: 3.6.8
health monitoring plugins 0.2.1 via pip
[user@system ~]# python3 /usr/local/bin/check_snmp_idrac.py -H 192.168.x.x -C public
Traceback (most recent call last):
File "/usr/local/bin/check_snmp_idrac.py", line 104, in
idrac.process_temperature_sensors(helper, sess)
File "/usr/local/lib/python3.6/site-packages/health_monitoring_plugins/idrac.py", line 324, in process_temperature_sensors
helper.add_metric(label=snmp_result_temp_sensor_names[i] + " -Celsius-",
TypeError: can't concat str to bytes
Seems to be the same issue as it was with #21 , which was closed.
Hi,
when i try the check_moxa.py i'm getting the following errors:
./check_moxa.py -H 192.168.x.x -p 1
Traceback (most recent call last):
File "./check_moxa.py", line 23, in
from snmpSessionBaseClass import add_snmpv3_options, add_common_options, get_common_options, verify_host
ImportError: No module named snmpSessionBaseClass
Dear,
I installed a new Icinga satellite. And I installed our plugin via pip. I am using centos 8 stream edition. I installed python 2,7 and I have this error message. I have installed 3 other servers with this plugin and working well.
[root@xx]# ./check_snmp_idrac.py
Traceback (most recent call last):
File "./check_snmp_idrac.py", line 21, in
import health_monitoring_plugins.idrac
File "/usr/lib/python2.7/site-packages/health_monitoring_plugins/init.py", line 139, in
class SnmpSession(netsnmp.Session):
AttributeError: 'module' object has no attribute 'Session'
check_snmp_ilo4.py produced the following error:
.local/lib/python2.7/site-packages/health_monitoring_plugins/__init__.py", line 36, in <module> class SnmpHelper(pynag.Plugins.PluginHelper, HelperExtension): TypeError: Error when calling the metaclass bases Cannot create a consistent method resolution order (MRO) for bases HelperExtension, PluginHelper
I tried with python2 and 3 and got the same result.
To get the plugin to "work" I had to switch
class SnmpHelper(pynag.Plugins.PluginHelper, HelperExtension):
to
class SnmpHelper(HelperExtension, pynag.Plugins.PluginHelper):
Now I get the error:
Unknown - No response from device for oid .1.3.6.1.4.1.232.2.2.4.2.0
The same connection information with /usr/lib/nagios/plugins/check_snmp results in:
External command error: snmpget: Authentication failure (incorrect password, community or key)
So not sure what the iLO administrator has to configure for the plugin to work - we would like to use SNMPv3.
Good morning.
I installed your plugin for idrac but I have only phyton3 installed.
I tried to use it but I have error message:
Traceback (most recent call last):
File "/usr/local/bin/check_snmp_idrac.py", line 104, in
idrac.process_temperature_sensors(helper, sess)
File "/usr/local/lib/python3.6/site-packages/health_monitoring_plugins/idrac.py", line 324, in process_temperature_sensors
helper.add_metric(label=snmp_result_temp_sensor_names[i] + " -Celsius-",
TypeError: can't concat str to bytes
Is it possible to run it under phyton 3?
Hi,
when i try to query a Raritan PDU, i get the following output:
OK - Inlet. 4.173 A. 229.0 V. 818.0 W. 956.0 VA. 0.86. 427613.0 Wh. 49.9 Hz | 'Sensor 0'=4.173A;0.0:20.8;0.0:25.6;; 'Sensor 1'=229.0V;194.0:247.0;188.0:254.0;; 'Sensor 2'=818.0W;0.0:3250.0;0.0:3500.0;; 'Sensor 3'=956.0VA;0.0:0.0;0.0:0.0;; 'Sensor 4'=0.86;0.0:0.0;0.0:0.0;; 'Sensor 5'=427613.0Wh;0.0:0.0;0.0:0.0;; 'Sensor 6'=49.9Hz;0.0:0.0;0.0:0.0;;
4.173 A: normal
229.0 V: normal
818.0 W: normal
956.0 VA: normal
0.86 : normal
427613.0 Wh: normal
49.9 Hz: normal
The problem is now to get it in Graphite. There is only the 0.86 shown. All the others are not possible to write to Graphite. Seems like this is caused by the Units that are delivered with the Perfdata.
Can this be switched off in a way?
bye, Rico
Getting errors with the check_snmp_idrac.py on some newer idrac 9 servers.
Seems the problem is specific to some newer firmware version of the idrac.
Not 100% shure thats the issue but cant find any other differences.
Version 3.21.26.22 responds with:
IDRAC-MIB-SMIv2::chassisName.1 = No Such Instance currently exists at this OID
Version 3.15.17.15 responds with:
IDRAC-MIB-SMIv2::chassisName.1 = STRING: "Main System Chassis"
Is there any work going on for SNMPv3? What would be the best/fastest way to implement it?
In check_snmp_idrac, the cli result string is:
OK - User assigned name: Main System Chassis - Typ: PowerEdge R620 - Service tag: 1AB2345 | 'system board inlet temp'=17;;;; 'system board exhaust temp'=28;;;; 'cpu1 temp'=34;;;; 'cpu2 temp'=28;;;; 'ps1 voltage 1'=128;;;; 'ps2 voltage 2'=128;;;;
and web interface don't show the string after the caracter | .
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.
Regards
Stefano
Hello, When I use this script check_snmp_ilo4.py i always receives an unknown as a output asking to put ps, fan and drives. If i put the 3 together receives the following:
Traceback (most recent call last):
File "/usr/local/bin/test.py", line 113, in
ilo.process_temperature_sensors(helper, sess)
File "/usr/local/lib/python3.6/site-packages/health_monitoring_plugins/ilo.py", line
443, in process_temperature_sensors
temp_sensor_value, '', ":" + temp_sensor_threshold, "", "",
TypeError: must be str, not bytes
If I put only one or two paremeters receives the following:
Unknown - Amount of power supplies must be specified (--ps)
Thanks in advanced
After Upgrade the ILO Firmware from an ProLiant DL380 Gen10 there are several issues from the check_snmp_ilo.py Plugin:
first: Unknown - No response from device for controllers (.1.3.6.1.4.1.232.3.2.2.1.1.6)
could be solved with --noController
then: Global storage 'global': other. Logical drive 1 other. Logical drive 2 other (could be solved with --noController --noLogicalDrives)
Physical drive 13 status: other. Physical drive 13 smart status: ok.
Drive 13 is the Spare Drive.
Storage Controller works fine - there are no issues for ILO
Logical Drives are also works fine.
Can you help?
Hello,
I get this error when running this check on CentOS 8 - Python version 2.7.18 . Issue is not present on CentOS 7 - Python version 2.7.5
Traceback (most recent call last):
File "/usr/bin/check_snmp_idrac.py", line 21, in
import health_monitoring_plugins.idrac
File "/usr/lib/python2.7/site-packages/health_monitoring_plugins/init.py", line 139, in
class SnmpSession(netsnmp.Session):
AttributeError: 'module' object has no attribute 'Session'
Any idea how I could solve the problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.