summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 546410a)
raw | patch | inline | side by side (parent: 546410a)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Tue, 15 Jan 2008 11:34:15 +0000 (11:34 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Tue, 15 Jan 2008 11:34:15 +0000 (11:34 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1907 f882894a-f735-0410-b71e-b25c423dba1c
NEWS | patch | blob | history | |
plugins/check_disk.c | patch | blob | history |
index bf863dde0ab146fa020f77b76537fde83577d7a4..27dc51d06cfec7edc29307e16cba676fa506ec7e 100644 (file)
--- a/NEWS
+++ b/NEWS
check_dns now sorts addresses for testing results for more than one returned IP (Matthias Urlichs)
Fix segfault in check_ntp_time and (deprecated) check_ntp. (Bug #1862300)
check_disk should now work with large file systems (2TB+) on all archs that supports it
+ Fixed check_disk disk usage calculation when using --group=NAME (related to bug #1348746)
1.4.11 13th December 2007
Fixed check_http regression in 1.4.10 where following redirects to
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index b8bbdbda3acf04568194284cb4fe03605c1f4167..5ef957de2df1f36c9defd0b88a5ab9ca6cd02b1e 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
(fsp.fsu_blocks + tmpfsp.fsu_blocks); /* Size of a block. */
fsp.fsu_blocks += tmpfsp.fsu_blocks; /* Total blocks. */
fsp.fsu_bfree += tmpfsp.fsu_bfree; /* Free blocks available to superuser. */
- fsp.fsu_bavail += tmpfsp.fsu_bavail; /* Free blocks available to non-superuser. */
+ /* Gnulib workaround - see comment about it a few lines below */
+ fsp.fsu_bavail += (tmpfsp.fsu_bavail > tmpfsp.fsu_bfree ? 0 : tmpfsp.fsu_bavail); /* Free blocks available to non-superuser. */
fsp.fsu_files += tmpfsp.fsu_files; /* Total file nodes. */
fsp.fsu_ffree += tmpfsp.fsu_ffree; /* Free file nodes. */