aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-18 19:38:57 +0200
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-18 19:38:57 +0200
commitc7c1102fcba72eed4e0a52a700d591fca0a0f668 (patch)
tree21ec67468bec874c0537c64c37dff4b48685e064 /plugins
parentdc1d1c46d6f9ca1a15609c126cf212bf3bb5ee4e (diff)
downloadmonitoring-plugins-c7c1102fcba72eed4e0a52a700d591fca0a0f668.tar.gz
NEWS: Mention the new "check_snmp --offset" option
... and apply two small cosmetic changes to check_snmp.c. Closes #59.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_snmp.c4
1 files changed, 2 insertions, 2 deletions
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)
ptr = strpbrk (show, "0123456789");
if (ptr == NULL)
die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show);
- response_value[i] = strtod (ptr, NULL)+offset;
+ response_value[i] = strtod (ptr, NULL) + offset;
if(calculate_rate) {
if (previous_state!=NULL) {
@@ -1088,7 +1088,7 @@ print_help (void)
printf (" %s\n", "--rate-multiplier");
printf (" %s\n", _("Converts rate per second. For example, set to 60 to convert to per minute"));
printf (" %s\n", "--offset=OFFSET");
- printf (" %s\n", _("Allows to add/substract a value to numeric sensor data."));
+ printf (" %s\n", _("Add/substract the specified OFFSET to numeric sensor data"));
/* Tests Against Strings */
printf (" %s\n", "-s, --string=STRING");