diff options
| -rw-r--r-- | THANKS.in | 1 | ||||
| -rw-r--r-- | plugins/check_snmp.c | 4 |
2 files changed, 5 insertions, 0 deletions
| @@ -194,3 +194,4 @@ Christian Mies | |||
| 194 | Andreas Behal | 194 | Andreas Behal |
| 195 | O'Shaughnessy Evans | 195 | O'Shaughnessy Evans |
| 196 | Aravind Gottipati | 196 | Aravind Gottipati |
| 197 | Kyle Tucker | ||
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index be7810e3..88f89c43 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
| @@ -254,6 +254,10 @@ main (int argc, char **argv) | |||
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | /* We strip out the datatype indicator for PHBs */ | 256 | /* We strip out the datatype indicator for PHBs */ |
| 257 | |||
| 258 | /* Clean up type array - Sol10 does not necessarily zero it out */ | ||
| 259 | bzero(type, sizeof(type)); | ||
| 260 | |||
| 257 | if (strstr (response, "Gauge: ")) | 261 | if (strstr (response, "Gauge: ")) |
| 258 | show = strstr (response, "Gauge: ") + 7; | 262 | show = strstr (response, "Gauge: ") + 7; |
| 259 | else if (strstr (response, "Gauge32: ")) | 263 | else if (strstr (response, "Gauge32: ")) |
