diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index a775f95e..47414541 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c @@ -489,6 +489,8 @@ 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;