|
|
@@ -567,6 +567,18 @@ 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);
|
|
|
strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1);
|