|
|
@@ -571,6 +571,17 @@ main (int argc, char **argv)
|
|
|
len = sizeof(perfstr)-strlen(perfstr)-1;
|
|
|
strncat(perfstr, show, len>ptr-show ? ptr-show : len);
|
|
|
|
|
|
+ if (warning_thresholds) {
|
|
|
+ strncat(perfstr, ";", sizeof(perfstr)-strlen(perfstr)-1);
|
|
|
+ strncat(perfstr, warning_thresholds, sizeof(perfstr)-strlen(perfstr)-1);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (critical_thresholds) {
|
|
|
+ if (!warning_thresholds) strncat(perfstr, ";", sizeof(perfstr)-strlen(perfstr)-1);
|
|
|
+ strncat(perfstr, ";", sizeof(perfstr)-strlen(perfstr)-1);
|
|
|
+ strncat(perfstr, critical_thresholds, sizeof(perfstr)-strlen(perfstr)-1);
|
|
|
+ }
|
|
|
+
|
|
|
if (type)
|
|
|
strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1);
|
|
|
if (nunits > (size_t)0 && (size_t)i < nunits && unitv[i] != NULL) {
|