[monitoring-plugins] check_snmp: small improvement by anonymous ...
Sven Nierlein
git at monitoring-plugins.org
Fri Oct 2 13:00:11 CEST 2015
Module: monitoring-plugins
Branch: master
Commit: 96932fd7b72a88dc6c694a2a8324464f3439bc23
Author: Jan Wagner <waja at cyconet.org>
Committer: Sven Nierlein <sven at nierlein.de>
Date: Fri Oct 2 12:57:25 2015 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=96932fd
check_snmp: small improvement by anonymous submission
- response should not start with the delimiter
- OID response value taken into account
Closes issue #1029
Closes push request #1173
---
plugins/check_snmp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index 9d966fa..62e6b8b 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -418,6 +418,9 @@ main (int argc, char **argv)
else if (strstr (response, "INTEGER: ")) {
show = strstr (response, "INTEGER: ") + 9;
}
+ else if (strstr (response, "OID: ")) {
+ show = strstr (response, "OID: ") + 5;
+ }
else if (strstr (response, "STRING: ")) {
show = strstr (response, "STRING: ") + 8;
conv = "%.10g";
More information about the Commits
mailing list