summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Nierlein <Sven.Nierlein@consol.de>2013-09-16 15:30:56 +0200
committerSven Nierlein <sven@consol.de>2013-09-16 15:30:56 +0200
commit982cbeea0008c7dbbf670b2fa274115ee13556fb (patch)
tree5d7947fcbda64c54bd18ebcb252262de9b19050d
parent63312395eed8fc0628cf81eebe3b11b4d299adc6 (diff)
downloadmonitoring-plugins-982cbeea0008c7dbbf670b2fa274115ee13556fb.tar.gz
check_disk: get_fs_usage hasn't been run if using groups
the reason why it still worked sometimes was fsu_blocks beeing uninitialized which resulted in a true test sometimes.
-rw-r--r--plugins/check_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 47dc0adc..04d588fb 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -263,11 +263,11 @@ main (int argc, char **argv)
263 } else if (fs_include_list && !np_find_name (fs_include_list, me->me_type)) { 263 } else if (fs_include_list && !np_find_name (fs_include_list, me->me_type)) {
264 continue; 264 continue;
265 } 265 }
266
267 stat_path(path);
268 get_fs_usage (me->me_mountdir, me->me_devname, &fsp);
269 } 266 }
270 267
268 stat_path(path);
269 get_fs_usage (me->me_mountdir, me->me_devname, &fsp);
270
271 if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) { 271 if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) {
272 get_stats (path, &fsp); 272 get_stats (path, &fsp);
273 273