[Nagiosplug-devel] check_disk plugin fails on 80 TB filesystem
sean finney
seanius at seanius.net
Sat Sep 22 16:59:35 CEST 2007
On Friday 21 September 2007 10:49:07 pm Alan Hagge wrote:
> > If yes, can df display these sizes without problems?
>
> Yes, it is (RHEL4). And yes, df can display sizes without problems:
>
> [root at backup ~]# df /sans/hpsans10
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/cvfsctl4_hpsans10
> 17178804224 11927464768 5251339456 70% /sans/hpsans10
>
> [root at backup ~]# df /sans/hpfata07
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/cvfsctl1_hpsans7
> 85854740480 67022606640 18832133840 79% /sans/hpfata07
>
> [root at backup ~]# df -h /sans/hpfata07
> Filesystem Size Used Avail Use% Mounted on
> /dev/cvfsctl1_hpsans7
> 80T 63T 18T 79% /sans/hpfata07
i'm going to go out on a limb and guess that this is a 32-bit system, or that
the plugins are at least 32-bit binaries compiled on a 32-bit system
regardless of the architecture of the host. if that's the case, there are
various
if this is true, then i think you should be able to fix this problem by
appending the output of "getconf LFS_CFLAGS" to the CFLAGS used to compile.
usually this is something like -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64.
./configure <rest of your configure stuff> CFLAGS=`getconf LFS_CFLAGS`
then, hopefully, assuming taht we've programmed this plugin correctly using
the various foo_t's instead of ints, it ought to work. maybe we should make
CFLAGS include this (output of getconf LFS_CFLAGS) by default, or provide a
configure switch if that's the case?
sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://nagios-plugins.org/archive/devel/attachments/20070922/84f9101c/attachment.sig>
More information about the Devel
mailing list