[monitoring-plugins] Create check_load.c
Sven Nierlein
git at monitoring-plugins.org
Mon Oct 25 16:30:13 CEST 2021
Module: monitoring-plugins
Branch: master
Commit: a08215368e5f9dc0164fcce9f5591c5310fdeb8c
Author: Harald Jenny <haraldj at users.noreply.github.com>
Committer: Sven Nierlein <sven at nierlein.org>
Date: Mon Jul 5 10:29:09 2021 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=a082153
Create check_load.c
just a cosmetic fix so the load plugin display a LOAD prefix before check results
---
plugins/check_load.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
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]);
More information about the Commits
mailing list