summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.d
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-30 14:18:42 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-30 14:18:42 +0200
commit7f1877f760a5ecdd0356010dd14c7606d44abfb0 (patch)
tree138c9ae13260b92bac0a0bff0911e249e4a541f7 /plugins/check_snmp.d
parent77a5db04d7ccc954096c2d86c21fa7b05948072d (diff)
downloadmonitoring-plugins-7f1877f760a5ecdd0356010dd14c7606d44abfb0.tar.gz
check_snmp: Fix number processing (offset + multiplier)
Diffstat (limited to 'plugins/check_snmp.d')
-rw-r--r--plugins/check_snmp.d/check_snmp_helpers.c2
-rw-r--r--plugins/check_snmp.d/config.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/check_snmp.d/check_snmp_helpers.c b/plugins/check_snmp.d/check_snmp_helpers.c
index 7725cc18..8f4bcb9c 100644
--- a/plugins/check_snmp.d/check_snmp_helpers.c
+++ b/plugins/check_snmp.d/check_snmp_helpers.c
@@ -97,7 +97,9 @@ check_snmp_config check_snmp_config_init() {
97 .string_cmp_value = "", 97 .string_cmp_value = "",
98 98
99 .multiplier = 1.0, 99 .multiplier = 1.0,
100 .multiplier_set = false,
100 .offset = 0, 101 .offset = 0,
102 .offset_set = false,
101 103
102 .use_perf_data_labels_from_input = false, 104 .use_perf_data_labels_from_input = false,
103 }; 105 };
diff --git a/plugins/check_snmp.d/config.h b/plugins/check_snmp.d/config.h
index e96dff5c..e68986e2 100644
--- a/plugins/check_snmp.d/config.h
+++ b/plugins/check_snmp.d/config.h
@@ -58,7 +58,9 @@ typedef struct check_snmp_config {
58 58
59 // Modify data 59 // Modify data
60 double multiplier; 60 double multiplier;
61 bool multiplier_set;
61 double offset; 62 double offset;
63 bool offset_set;
62 64
63 // Modify output 65 // Modify output
64 bool use_perf_data_labels_from_input; 66 bool use_perf_data_labels_from_input;