From 0651464f597e1b702e954ef2cccf9ccf15148f44 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 25 Jun 2003 12:38:37 +0000 Subject: Returns critical if fs missing. Only works for single fs specified in -p, otherwise will return warning as before (reported by Jim Carroll) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@553 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_disk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 9421d060..234a09d8 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c @@ -150,8 +150,10 @@ main (int argc, char **argv) if (spclose(child_process)!=0 && result!=STATE_CRITICAL) result = STATE_WARNING; - if (usp < 0) + if (usp < 0) { printf ("Disk \"%s\" not mounted or nonexistant\n", path); + result = STATE_CRITICAL; + } else if (result == STATE_UNKNOWN) printf ("Unable to read output\n%s\n%s\n", command_line, input_buffer); else -- cgit v1.2.3-74-g34f1