diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_snmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index 0ddfb94..8a8ee18 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
@@ -419,7 +419,7 @@ main (int argc, char **argv) | |||
419 | show = strstr (response, "Timeticks: "); | 419 | show = strstr (response, "Timeticks: "); |
420 | } | 420 | } |
421 | else | 421 | else |
422 | show = response; | 422 | show = response + 3; |
423 | 423 | ||
424 | iresult = STATE_DEPENDENT; | 424 | iresult = STATE_DEPENDENT; |
425 | 425 | ||
@@ -428,7 +428,7 @@ main (int argc, char **argv) | |||
428 | if (thlds[i]->warning || thlds[i]->critical || calculate_rate) { | 428 | if (thlds[i]->warning || thlds[i]->critical || calculate_rate) { |
429 | ptr = strpbrk (show, "0123456789"); | 429 | ptr = strpbrk (show, "0123456789"); |
430 | if (ptr == NULL) | 430 | if (ptr == NULL) |
431 | die (STATE_UNKNOWN,_("No valid data returned")); | 431 | die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show); |
432 | response_value[i] = strtod (ptr, NULL); | 432 | response_value[i] = strtod (ptr, NULL); |
433 | 433 | ||
434 | if(calculate_rate) { | 434 | if(calculate_rate) { |