From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/420257-check_snmp_numeric_fix.diff | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 web/attachments/420257-check_snmp_numeric_fix.diff (limited to 'web/attachments/420257-check_snmp_numeric_fix.diff') diff --git a/web/attachments/420257-check_snmp_numeric_fix.diff b/web/attachments/420257-check_snmp_numeric_fix.diff new file mode 100644 index 0000000..8c645e1 --- /dev/null +++ b/web/attachments/420257-check_snmp_numeric_fix.diff @@ -0,0 +1,20 @@ +*** check_snmp.c Thu Aug 4 14:33:54 2011 +--- check_snmp_numeric_fix.c Thu Aug 4 14:33:13 2011 +*************** +*** 331,337 **** + /* Clean up type array - Sol10 does not necessarily zero it out */ + bzero(type, sizeof(type)); + +! is_counter=0; + /* We strip out the datatype indicator for PHBs */ + if (strstr (response, "Gauge: ")) { + show = strstr (response, "Gauge: ") + 7; +--- 331,338 ---- + /* Clean up type array - Sol10 does not necessarily zero it out */ + bzero(type, sizeof(type)); + +! is_counter = 0; +! is_numeric = 0; + /* We strip out the datatype indicator for PHBs */ + if (strstr (response, "Gauge: ")) { + show = strstr (response, "Gauge: ") + 7; -- cgit v1.2.3-74-g34f1