summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Jenny <haraldj@users.noreply.github.com>2021-07-05 08:29:09 (GMT)
committerSven Nierlein <sven@nierlein.org>2021-10-25 14:28:15 (GMT)
commita08215368e5f9dc0164fcce9f5591c5310fdeb8c (patch)
tree5de77a28bc016a404ffa0a39baab672718a7bc41
parenta96161c824f7f97830f4aa4daa166013961d55f1 (diff)
downloadmonitoring-plugins-a08215368e5f9dc0164fcce9f5591c5310fdeb8c.tar.gz
Create check_load.c
just a cosmetic fix so the load plugin display a LOAD prefix before check results
-rw-r--r--plugins/check_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_load.c b/plugins/check_load.c
index bf7b94b..0e4de54 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -209,7 +209,7 @@ main (int argc, char **argv)
209 else if(la[i] > wload[i]) result = STATE_WARNING; 209 else if(la[i] > wload[i]) result = STATE_WARNING;
210 } 210 }
211 211
212 printf("%s - %s|", state_text(result), status_line); 212 printf("LOAD %s - %s|", state_text(result), status_line);
213 for(i = 0; i < 3; i++) 213 for(i = 0; i < 3; i++)
214 printf("load%d=%.3f;%.3f;%.3f;0; ", nums[i], la[i], wload[i], cload[i]); 214 printf("load%d=%.3f;%.3f;%.3f;0; ", nums[i], la[i], wload[i], cload[i]);
215 215