diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-23 12:01:21 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-23 12:01:21 (GMT) |
commit | 61cd9f525aa236250b6768e6db2977c836c57d96 (patch) | |
tree | 107e0b4fcd7bb3c42fcc1b7c51c4e7d83c726f38 /plugins/check_disk.c | |
parent | 3ebbe5c55bfbe0316652abc5e8466e78bc89eb7a (diff) | |
download | monitoring-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 0ee6dc8..fa913ac 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -275,8 +275,6 @@ main (int argc, char **argv) | |||
275 | 275 | ||
276 | } | 276 | } |
277 | 277 | ||
278 | asprintf (&output, "%s|%s", output, perf); | ||
279 | |||
280 | if (verbose > 2) | 278 | if (verbose > 2) |
281 | asprintf (&output, "%s%s", output, details); | 279 | asprintf (&output, "%s%s", output, details); |
282 | 280 | ||
@@ -290,7 +288,7 @@ main (int argc, char **argv) | |||
290 | temp_list = temp_list->name_next; | 288 | temp_list = temp_list->name_next; |
291 | } | 289 | } |
292 | 290 | ||
293 | printf ("DISK %s%s\n", state_text (result), output); | 291 | printf ("DISK %s%s|%s\n", state_text (result), output, perf); |
294 | return result; | 292 | return result; |
295 | } | 293 | } |
296 | 294 | ||