summaryrefslogtreecommitdiffstats
path: root/plugins/check_load.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-03-26 15:31:52 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-03-26 15:31:52 (GMT)
commit36f4495deee8611f2fc4c62e54616d52f5c25979 (patch)
tree4c9579bd02124c34c543f874c5b4f5d40ef957ba /plugins/check_load.c
parent066b6e68242b5e7a6f1eb665df9b227d896aec66 (diff)
downloadmonitoring-plugins-36f4495deee8611f2fc4c62e54616d52f5c25979.tar.gz
Rename output to cmd_output
Diffstat (limited to 'plugins/check_load.c')
-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 0e4de54..fdfa1da 100644
--- a/plugins/check_load.c
+++ b/plugins/check_load.c
@@ -372,7 +372,7 @@ int cmpstringp(const void *p1, const void *p2) {
372 372
373static int print_top_consuming_processes() { 373static int print_top_consuming_processes() {
374 int i = 0; 374 int i = 0;
375 struct output chld_out, chld_err; 375 struct cmd_output chld_out, chld_err;
376 if(np_runcmd(PS_COMMAND, &chld_out, &chld_err, 0) != 0){ 376 if(np_runcmd(PS_COMMAND, &chld_out, &chld_err, 0) != 0){
377 fprintf(stderr, _("'%s' exited with non-zero status.\n"), PS_COMMAND); 377 fprintf(stderr, _("'%s' exited with non-zero status.\n"), PS_COMMAND);
378 return STATE_UNKNOWN; 378 return STATE_UNKNOWN;