[Nagiosplug-help] check_disk on ZFS > 1TB
Alloo, Vincent
v-alloo at ti.com
Thu Mar 20 13:05:28 CET 2008
Hello,
This can be solved by modifying gl/fusage.c (using statvfs64 type):
get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp)
{
#if defined STAT_STATVFS /* POSIX */
struct statvfs64 fsd;
if (statvfs64 (file, &fsd) < 0)
return -1;
/* f_frsize isn't guaranteed to be supported. */
fsp->fsu_blocksize = (fsd.f_frsize
? PROPAGATE_ALL_ONES (fsd.f_frsize)
: PROPAGATE_ALL_ONES (fsd.f_bsize));
Result is now:
--SSH-- > ./check_disk -w 10 -c 5 -p /pooldbnbu
DISK OK - free space: /pooldbnbu 1239417 MB (57% inode=99%);|
/pooldbnbu=921731MB;2161139;2161144;0;2161149
Regards,
Vincent Alloo
TI France Design Systems Operations Manager
Europe, Middle East and Africa IT Services
Texas Instruments France
E-Mail: v-alloo at ti.com
Phone: +33 4 93 22 26 97
Mobile: +33 6 82 13 00 80
________________________________
From: nagiosplug-help-bounces at lists.sourceforge.net
[mailto:nagiosplug-help-bounces at lists.sourceforge.net] On Behalf Of
Alloo, Vincent
Sent: Wednesday, March 19, 2008 5:38 PM
To: nagiosplug-help at lists.sourceforge.net
Subject: [Nagiosplug-help] check_disk on ZFS > 1TB
Hello,
I'm trying to use check_disk plugin on ZFS (Solaris 10) on mount point >
1TB.
Here is the output:
--SSH-- > uname -a
SunOS xxx 5.10 Generic_127112-07 i86pc i386 i86pc
--SSH-- > zfs list
NAME USED AVAIL REFER MOUNTPOINT
nb6_pool 2.59G 265G 24.5K /pool/nb6
nb6_pool/bplogs 1.00G 149G 1.00G /export/bplogs
nb6_pool/openv 1.59G 265G 1.59G /usr/openv
pooldbnbu 900G 1.18T 900G /pooldbnbu
tmpdb 5.61G 128G 5.61G /export/tmpdb
--SSH-- > df -k /pooldbnbu
Filesystem kbytes used avail capacity Mounted on
pooldbnbu 2213019648 943853382 1269163258 43%
/pooldbnbu
--SSH-- > ./check_disk --version
check_disk v1793 (nagios-plugins 1.4.10)
--SSH-- > ./check_disk -w 10 -c 5 -p /pooldbnbu
DISK OK - free space: /pooldbnbu 4332308954993 MB (0%
inode=-208438065308%);|
/pooldbnbu=-2147483648MB;-2147483648;-2147483648;0;-2147483648
Can you help?
Thanks.
Vincent Alloo
TI France Design Systems Operations Manager
Europe, Middle East and Africa IT Services
Texas Instruments France
E-Mail: v-alloo at ti.com
Phone: +33 4 93 22 26 97
Mobile: +33 6 82 13 00 80
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080320/fd04a219/attachment.html>
More information about the Help
mailing list