Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check system.disk - error on RouterOS 6.49.10 #98

Open
alexoalexo opened this issue Oct 31, 2024 · 0 comments
Open

Check system.disk - error on RouterOS 6.49.10 #98

alexoalexo opened this issue Oct 31, 2024 · 0 comments

Comments

@alexoalexo
Copy link

Hello,
check system.disk works fine on ver7 but I get the following error on v.6.49.10

DISK UNKNOWN: KeyError: 'write-sect-since-reboot'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nagiosplugin/runtime.py", line 44, in wrapper
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/nagios/custom-plugins/routeros_check/check/system_disk.py", line 155, in system_disk
    check.main(verbose=ctx.obj["verbose"])
  File "/usr/lib/python3/dist-packages/nagiosplugin/check.py", line 121, in main
    runtime.execute(self, verbose, timeout)
  File "/usr/lib/python3/dist-packages/nagiosplugin/runtime.py", line 131, in execute
    self.run(check)
  File "/usr/lib/python3/dist-packages/nagiosplugin/runtime.py", line 118, in run
    check()
  File "/usr/lib/python3/dist-packages/nagiosplugin/check.py", line 106, in __call__
    self._evaluate_resource(resource)
  File "/usr/lib/python3/dist-packages/nagiosplugin/check.py", line 73, in _evaluate_resource
    metrics = resource.probe()
              ^^^^^^^^^^^^^^^^
  File "/usr/lib/nagios/custom-plugins/routeros_check/check/system_disk.py", line 45, in probe
    results = self.get_routeros_metric_item(api_result_items[0])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/nagios/custom-plugins/routeros_check/resource.py", line 329, in get_routeros_metric_item
    value = api_result[metric_value_name]
            ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'write-sect-since-reboot'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant