diff options
-rw-r--r-- | plugins/check_snmp.d/check_snmp_helpers.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_snmp.d/check_snmp_helpers.c b/plugins/check_snmp.d/check_snmp_helpers.c index 9fa396d8..e18da4a3 100644 --- a/plugins/check_snmp.d/check_snmp_helpers.c +++ b/plugins/check_snmp.d/check_snmp_helpers.c | |||
@@ -273,8 +273,7 @@ snmp_responces do_snmp_query(check_snmp_config_snmp_parameters parameters) { | |||
273 | } | 273 | } |
274 | result.response_values[loop_index].value.doubleVal = *(vars->val.doubleVal); | 274 | result.response_values[loop_index].value.doubleVal = *(vars->val.doubleVal); |
275 | result.response_values[loop_index].type = vars->type; | 275 | result.response_values[loop_index].type = vars->type; |
276 | break; | 276 | } break; |
277 | } | ||
278 | case ASN_IPADDRESS: | 277 | case ASN_IPADDRESS: |
279 | if (verbose) { | 278 | if (verbose) { |
280 | printf("Debug: Got an IP address\n"); | 279 | printf("Debug: Got an IP address\n"); |
@@ -282,13 +281,13 @@ snmp_responces do_snmp_query(check_snmp_config_snmp_parameters parameters) { | |||
282 | result.response_values[loop_index].type = vars->type; | 281 | result.response_values[loop_index].type = vars->type; |
283 | 282 | ||
284 | // TODO: print address here, state always ok? or regex match? | 283 | // TODO: print address here, state always ok? or regex match? |
285 | continue; | 284 | break; |
286 | default: | 285 | default: |
287 | if (verbose) { | 286 | if (verbose) { |
288 | printf("Debug: Got a unmatched result type: %hhu\n", vars->type); | 287 | printf("Debug: Got a unmatched result type: %hhu\n", vars->type); |
289 | } | 288 | } |
290 | // TODO: Error here? | 289 | // TODO: Error here? |
291 | continue; | 290 | break; |
292 | } | 291 | } |
293 | } | 292 | } |
294 | 293 | ||