summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_disk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 9421d06..234a09d 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -150,8 +150,10 @@ main (int argc, char **argv)
150 if (spclose(child_process)!=0 && result!=STATE_CRITICAL) 150 if (spclose(child_process)!=0 && result!=STATE_CRITICAL)
151 result = STATE_WARNING; 151 result = STATE_WARNING;
152 152
153 if (usp < 0) 153 if (usp < 0) {
154 printf ("Disk \"%s\" not mounted or nonexistant\n", path); 154 printf ("Disk \"%s\" not mounted or nonexistant\n", path);
155 result = STATE_CRITICAL;
156 }
155 else if (result == STATE_UNKNOWN) 157 else if (result == STATE_UNKNOWN)
156 printf ("Unable to read output\n%s\n%s\n", command_line, input_buffer); 158 printf ("Unable to read output\n%s\n%s\n", command_line, input_buffer);
157 else 159 else