220+ check plugins for Icinga and other Nagios-compatible monitoring applications. Each plugin is a standalone command line tool (written in Python) that provides a specific type of check.
Describe the bug
On Proxmox VE, disk-io3 fails with that error:
bb@ct-mon1:/opt/centralcfg/scripts/icinga/linuxfabrik-monitoring-plugins$ ./disk-io3
Traceback (most recent call last):
File "/opt/centralcfg/scripts/icinga/linuxfabrik-monitoring-plugins/./disk-io3", line 294, in 'module'
main()
File "/opt/centralcfg/scripts/icinga/linuxfabrik-monitoring-plugins/./disk-io3", line 131, in main
lib.base3.version(platform.release()) '= lib.base3.version('4.18.0'),
File "/opt/centralcfg/scripts/icinga/linuxfabrik-monitoring-plugins/lib/base3.py", line 617, in version
return tuple(map(int, (v.split("."))))
ValueError: invalid literal for int() with base 10: ''
Environment:
uname -a:
Linux ct-mon1 5.13.19-4-pve #1 SMP PVE 5.13.19-9 (Mon, 07 Feb 2022 11:01:14 +0100) x86_64 GNU/Linux
This is due to that platform.release() contains more than 1 hyphen which leads a comparision based on lib.base3.version() to fail.
I will provide a fix / pull request to fix that shortly at Linuxfabrik/lib.
Describe the bug On Proxmox VE,
disk-io3
fails with that error:Environment:
uname -a
:This is due to that
platform.release()
contains more than 1 hyphen which leads a comparision based onlib.base3.version()
to fail.I will provide a fix / pull request to fix that shortly at Linuxfabrik/lib.