From 10a7eb56fcfc68a3dc959d02ef901374ee615ec2 Mon Sep 17 00:00:00 2001 From: anima Date: Mon, 10 Feb 2025 00:11:29 +0100 Subject: [PATCH] add model to return --- checks/check_snmp_synology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checks/check_snmp_synology.py b/checks/check_snmp_synology.py index 5c73313..8473582 100755 --- a/checks/check_snmp_synology.py +++ b/checks/check_snmp_synology.py @@ -8,7 +8,7 @@ - https://easysnmp.readthedocs.io/en/latest/session_api.html """ -__version__ = '0.10.0' +__version__ = '0.10.1' __author__ = 'anima' # imports @@ -429,7 +429,7 @@ class SNMPSynologyDiskStatusResult(nagiosplugin.Result): elif self.metric.value['status'] == '4': status = 'SystemPartitionFailed' elif self.metric.value['status'] == '5': status = 'Crashed' else: status = 'unknown' - return f'{self.metric.name} (role: {self.metric.value["role"]}) is in status {status}!' + return f'{self.metric.name} (model: {self.metric.value['model']}) (role: {self.metric.value["role"]}) is in status {status}!' class SNMPSynologyDiskHealthContext(nagiosplugin.Context):