aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_disk.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-23 12:01:21 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-03-23 12:01:21 +0000
commit61cd9f525aa236250b6768e6db2977c836c57d96 (patch)
tree107e0b4fcd7bb3c42fcc1b7c51c4e7d83c726f38 /plugins/check_disk.c
parent3ebbe5c55bfbe0316652abc5e8466e78bc89eb7a (diff)
downloadmonitoring-plugins-61cd9f525aa236250b6768e6db2977c836c57d96.tar.gz
Incorrect output when checking non-existent disk (John Rouillard - 1326050)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1349 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r--plugins/check_disk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 0ee6dc87..fa913ac7 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -275,8 +275,6 @@ main (int argc, char **argv)
}
- asprintf (&output, "%s|%s", output, perf);
-
if (verbose > 2)
asprintf (&output, "%s%s", output, details);
@@ -290,7 +288,7 @@ main (int argc, char **argv)
temp_list = temp_list->name_next;
}
- printf ("DISK %s%s\n", state_text (result), output);
+ printf ("DISK %s%s|%s\n", state_text (result), output, perf);
return result;
}