From 982cbeea0008c7dbbf670b2fa274115ee13556fb Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Mon, 16 Sep 2013 15:30:56 +0200 Subject: 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. --- plugins/check_disk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') 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) } else if (fs_include_list && !np_find_name (fs_include_list, me->me_type)) { continue; } - - stat_path(path); - get_fs_usage (me->me_mountdir, me->me_devname, &fsp); } + stat_path(path); + get_fs_usage (me->me_mountdir, me->me_devname, &fsp); + if (fsp.fsu_blocks && strcmp ("none", me->me_mountdir)) { get_stats (path, &fsp); -- cgit v1.2.3-74-g34f1