Merge pull request #1465 from lausser/master

check_snmp: put the "c" (to mark a counter) after the perfdata value
This commit is contained in:
Sven Nierlein 2021-04-07 17:12:38 +02:00 committed by GitHub
commit de7effdf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -576,6 +576,9 @@ main (int argc, char **argv)
len = sizeof(perfstr)-strlen(perfstr)-1;
strncat(perfstr, show, len>ptr-show ? ptr-show : len);
if (type)
strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1);
if (warning_thresholds) {
strncat(perfstr, ";", sizeof(perfstr)-strlen(perfstr)-1);
strncat(perfstr, warning_thresholds, sizeof(perfstr)-strlen(perfstr)-1);
@ -588,8 +591,6 @@ main (int argc, char **argv)
strncat(perfstr, critical_thresholds, sizeof(perfstr)-strlen(perfstr)-1);
}
if (type)
strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1);
strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1);
}
}