summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--plugins/check_snmp.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index d901b1eb..df2652f9 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,7 @@ This file documents the major additions and syntax changes between releases.
25 Let check_procs use /proc/<PID>/exe (if available) instead of getpid(2), unless -T is specified 25 Let check_procs use /proc/<PID>/exe (if available) instead of getpid(2), unless -T is specified
26 Let check_mysql support SSL 26 Let check_mysql support SSL
27 Let check_mysql add perfromance metrics for all checks 27 Let check_mysql add perfromance metrics for all checks
28 New check_snmp --offset option to allow for adding/substracting an offset value to sensor data
28 29
29 FIXES 30 FIXES
30 Change the MAIL FROM command generated by check_smtp to be RFC compliant 31 Change the MAIL FROM command generated by check_smtp to be RFC compliant
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index cd503896..7c3bc4b9 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -432,7 +432,7 @@ main (int argc, char **argv)
432 ptr = strpbrk (show, "0123456789"); 432 ptr = strpbrk (show, "0123456789");
433 if (ptr == NULL) 433 if (ptr == NULL)
434 die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show); 434 die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show);
435 response_value[i] = strtod (ptr, NULL)+offset; 435 response_value[i] = strtod (ptr, NULL) + offset;
436 436
437 if(calculate_rate) { 437 if(calculate_rate) {
438 if (previous_state!=NULL) { 438 if (previous_state!=NULL) {
@@ -1088,7 +1088,7 @@ print_help (void)
1088 printf (" %s\n", "--rate-multiplier"); 1088 printf (" %s\n", "--rate-multiplier");
1089 printf (" %s\n", _("Converts rate per second. For example, set to 60 to convert to per minute")); 1089 printf (" %s\n", _("Converts rate per second. For example, set to 60 to convert to per minute"));
1090 printf (" %s\n", "--offset=OFFSET"); 1090 printf (" %s\n", "--offset=OFFSET");
1091 printf (" %s\n", _("Allows to add/substract a value to numeric sensor data.")); 1091 printf (" %s\n", _("Add/substract the specified OFFSET to numeric sensor data"));
1092 1092
1093 /* Tests Against Strings */ 1093 /* Tests Against Strings */
1094 printf (" %s\n", "-s, --string=STRING"); 1094 printf (" %s\n", "-s, --string=STRING");