diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-03 03:48:24 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2004-03-03 03:48:24 +0000 |
commit | 190419aee19deee6a107ebff0410118639d91147 (patch) | |
tree | 78a199b3be9861b824ee689aeddd4aa5046870bb | |
parent | ca19083638e3bfb4a2f066b353a877701c561202 (diff) | |
download | monitoring-plugins-190419aee19deee6a107ebff0410118639d91147.tar.gz |
check_disk was getting blocks instead of bytes (Michael Musikhin - http://sourceforge.net/tracker/index.php?func=detail&aid=900215&group_id=29880&atid=397599)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@839 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/check_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 86b90f7c..cb5e49e6 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -186,7 +186,7 @@ main (int argc, char **argv) | |||
186 | 186 | ||
187 | if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) { | 187 | if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) { |
188 | usp = (double)(fsp.fsu_blocks - fsp.fsu_bavail) * 100 / fsp.fsu_blocks; | 188 | usp = (double)(fsp.fsu_blocks - fsp.fsu_bavail) * 100 / fsp.fsu_blocks; |
189 | disk_result = check_disk (usp, fsp.fsu_bavail); | 189 | disk_result = check_disk (usp, fsp.fsu_bavail * fsp.fsu_blocksize); |
190 | result = max_state (disk_result, result); | 190 | result = max_state (disk_result, result); |
191 | psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult; | 191 | psize = fsp.fsu_blocks*fsp.fsu_blocksize/mult; |
192 | asprintf (&perf, "%s %s", perf, | 192 | asprintf (&perf, "%s %s", perf, |