monitoring-plugins
monitoring-plugins copied to clipboard
snmp: Error running Unit-Test test3 (the check works fine)
In GitLab by @markuslf on Aug 31, 2021, 16:28
./snmp3 --hostname 127.0.0.1 --test=examples/EXAMPLE01,,0
Traceback (most recent call last):
File "/home/markus.frei/git/linuxfabrik/monitoring-plugins/check-plugins/snmp/./snmp3", line 340, in main
value = eval(recalc, {}, {'value': value, 'values': values})
File "'string'", line 1, in 'module'
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/markus.frei/git/linuxfabrik/monitoring-plugins/check-plugins/snmp/./snmp3", line 451, in 'module'
main()
File "/home/markus.frei/git/linuxfabrik/monitoring-plugins/check-plugins/snmp/./snmp3", line 344, in main
'value': "The recalc in {} failed with {}: '{}'.".format(args.DEVICE, type(e).__name__, e.message),
AttributeError: 'TypeError' object has no attribute 'message'