aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorGravatar tonvoon <ton.voon@opsview.com> 2010-06-30 09:37:10 +0000
committerGravatar tonvoon <ton.voon@opsview.com> 2010-06-30 09:37:10 +0000
commit34445190148ac113da9d29cbf8b62f4ce8606304 (patch)
tree4184ab6c22bf36227cba65f6d07bc77a3a282ae8 /plugins/check_snmp.c
parent752dbc20b2bfbeb2b7d253b67fa6eda3adefb8c6 (diff)
downloadmonitoring-plugins-34445190148ac113da9d29cbf8b62f4ce8606304.tar.gz
Removed suffix of "-rate" and let user decide label via --label
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index f8cae9b6..e6707a08 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -493,8 +493,6 @@ main (int argc, char **argv)
temp_string=labels[i];
else
temp_string=oidname;
- if(calculate_rate)
- asprintf(&temp_string,"%s-rate",temp_string);
strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1);
strncat(perfstr, "=", sizeof(perfstr)-strlen(perfstr)-1);
len = sizeof(perfstr)-strlen(perfstr)-1;