summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authortonvoon <ton.voon@opsview.com>2010-06-30 09:37:10 (GMT)
committertonvoon <ton.voon@opsview.com>2010-06-30 09:37:10 (GMT)
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 f8cae9b..e6707a0 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -493,8 +493,6 @@ main (int argc, char **argv)
493 temp_string=labels[i]; 493 temp_string=labels[i];
494 else 494 else
495 temp_string=oidname; 495 temp_string=oidname;
496 if(calculate_rate)
497 asprintf(&temp_string,"%s-rate",temp_string);
498 strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1); 496 strncat(perfstr, temp_string, sizeof(perfstr)-strlen(perfstr)-1);
499 strncat(perfstr, "=", sizeof(perfstr)-strlen(perfstr)-1); 497 strncat(perfstr, "=", sizeof(perfstr)-strlen(perfstr)-1);
500 len = sizeof(perfstr)-strlen(perfstr)-1; 498 len = sizeof(perfstr)-strlen(perfstr)-1;