Create check_load.c

just a cosmetic fix so the load plugin display a LOAD prefix before check results
This commit is contained in:
Harald Jenny 2021-07-05 10:29:09 +02:00 committed by Sven Nierlein
parent a96161c824
commit a08215368e

View file

@ -209,7 +209,7 @@ main (int argc, char **argv)
else if(la[i] > wload[i]) result = STATE_WARNING;
}
printf("%s - %s|", state_text(result), status_line);
printf("LOAD %s - %s|", state_text(result), status_line);
for(i = 0; i < 3; i++)
printf("load%d=%.3f;%.3f;%.3f;0; ", nums[i], la[i], wload[i], cload[i]);