disable walk for ups

This commit is contained in:
2025-02-10 01:59:43 +01:00
parent 1d67cfeba2
commit cebdd10c89

View File

@@ -8,7 +8,7 @@
- https://easysnmp.readthedocs.io/en/latest/session_api.html - https://easysnmp.readthedocs.io/en/latest/session_api.html
""" """
__version__ = '0.13.0' __version__ = '0.13.1'
__author__ = 'anima' __author__ = 'anima'
# imports # imports
@@ -643,7 +643,7 @@ class SNMPSynologyUPSResource(nagiosplugin.Resource):
nagiosplugin.Metric: single metric element (return) nagiosplugin.Metric: single metric element (return)
""" """
baseoid = '1.3.6.1.4.1.6574.4' baseoid = '1.3.6.1.4.1.6574.4'
data = self.session.walk(baseoid) # data = self.session.walk(baseoid)
# not sure if this value time remaining ... # not sure if this value time remaining ...
time_until_empty = self.session.get(baseoid + '.3.6.1.0').value time_until_empty = self.session.get(baseoid + '.3.6.1.0').value
# not shure what (for my ups) satus 'OL' says, maybe "online" ? # not shure what (for my ups) satus 'OL' says, maybe "online" ?