diff options
| -rw-r--r-- | lib/utils_base.h | 2 | ||||
| -rw-r--r-- | plugins/check_snmp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils_base.h b/lib/utils_base.h index 04f6370c..d69b0da1 100644 --- a/lib/utils_base.h +++ b/lib/utils_base.h | |||
| @@ -62,7 +62,7 @@ int check_range(double, range *); | |||
| 62 | int get_status(double, thresholds *); | 62 | int get_status(double, thresholds *); |
| 63 | 63 | ||
| 64 | /* All possible characters in a threshold range */ | 64 | /* All possible characters in a threshold range */ |
| 65 | #define NP_THRESHOLDS_CHARS "0123456789.:@~" | 65 | #define NP_THRESHOLDS_CHARS "-0123456789.:@~" |
| 66 | 66 | ||
| 67 | char *np_escaped_string (const char *); | 67 | char *np_escaped_string (const char *); |
| 68 | 68 | ||
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index ca17970c..d516fbc1 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
| @@ -459,7 +459,7 @@ main (int argc, char **argv) | |||
| 459 | /* Process this block for numeric comparisons */ | 459 | /* Process this block for numeric comparisons */ |
| 460 | /* Make some special values,like Timeticks numeric only if a threshold is defined */ | 460 | /* Make some special values,like Timeticks numeric only if a threshold is defined */ |
| 461 | if (thlds[i]->warning || thlds[i]->critical || calculate_rate) { | 461 | if (thlds[i]->warning || thlds[i]->critical || calculate_rate) { |
| 462 | ptr = strpbrk (show, "0123456789"); | 462 | ptr = strpbrk (show, "-0123456789"); |
| 463 | if (ptr == NULL) | 463 | if (ptr == NULL) |
| 464 | die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show); | 464 | die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show); |
| 465 | while (i >= response_size) { | 465 | while (i >= response_size) { |
