diff options
-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 0ddfb942..8a8ee180 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -419,7 +419,7 @@ main (int argc, char **argv) show = strstr (response, "Timeticks: "); } else - show = response; + show = response + 3; iresult = STATE_DEPENDENT; @@ -428,7 +428,7 @@ main (int argc, char **argv) if (thlds[i]->warning || thlds[i]->critical || calculate_rate) { ptr = strpbrk (show, "0123456789"); if (ptr == NULL) - die (STATE_UNKNOWN,_("No valid data returned")); + die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show); response_value[i] = strtod (ptr, NULL); if(calculate_rate) { |