Mantis - nagios_plugins
Viewing Issue Advanced Details
5147 upgrade major always 2014-02-06 22:14 2014-07-24 18:58
salderman1  
dam  
normal  
closed  
fixed  
none    
none  
0005147: check_disk incorrectly reports free space for zfs filesystems larger than 1TB
We have several SPARC T3 and T4 servers using OpenCSW nagios-plugins-1.4.16 from the testing tree. The servers which have ZFS filesystems larger than 1TB have their capacity incorrectly reported by check_disk...

Example:

# /opt/csw/libexec/nagios-plugins/check_disk -w 20% -c 10% -R "^/$|oracle$|^/u[0-9]+" -X tmpfs
DISK OK - free space: / 198350 MB (94% inode=99%); /u01 36540 MB (36% inode=99%); /u02 36540 MB (36% inode=99%); /u03 19764 MB (98% inode=99%); /u04 19764 MB (98% inode=99%); /u05 19764 MB (98% inode=99%);| /=11288MB;167711;188675;0;209639 /u01=64001MB;80433;90487;0;100542 /u02=64001MB;80433;90487;0;100542 /u03=267MB;16025;18028;0;20032 /u04=267MB;16025;18028;0;20032 /u05=267MB;16025;18028;0;20032

# df -h |grep u0
zpool01/u01 98G 63G 36G 64% /u01
zpool02/u02 2.4T 1.9T 579G 77% /u02
zpool03/u03 20G 268M 19G 2% /u03
zpool04/u04 4.9T 2.4T 2.4T 51% /u04
zpool05/u05 4.9T 839G 4.1T 17% /u05

Notice /u02, /u04 and /u05's free space is incorrectly reported in the check_disk output.

I have opened an issue on the nagios-plugins support forum and with their help have come to the conclusion that this issue has been resolved in nagios-plugins-1.5.

Here is the 1.5 version's output from the same server of the example above:

# ./check_disk -w 20% -c 10% -R "^/$|oracle$|^/u[0-9]+" -X tmpfs
DISK OK - free space: / 198350 MB (94% inode=99%); /u01 36540 MB (36% inode=99%); /u02 592830 MB (23% inode=99%); /u03 19765 MB (98% inode=99%); /u04 2562448 MB (49% inode=99%); /u05 4269915 MB (83% inode=99%);| /=11288MB;167711;188675;0;209639 /u01=64001MB;80433;90487;0;100542 /u02=1971316MB;2051316;2307731;0;2564146 /u03=267MB;16025;18028;0;20032 /u04=2566246MB;4102955;4615824;0;5128694 /u05=858723MB;4102911;4615775;0;5128639

/u02, /u04, and /u05 are now reporting correctly. I would like to request updated packages for unstable.
Issue History
2014-02-06 22:14 salderman1 New Issue
2014-02-06 22:17 salderman1 Note Added: 0010700
2014-02-06 22:19 salderman1 Note Added: 0010701
2014-03-01 14:46 dam Status new => assigned
2014-03-01 14:46 dam Assigned To => dam
2014-03-03 15:18 dam Note Added: 0010745
2014-03-03 15:19 dam Status assigned => feedback
2014-07-24 17:48 salderman1 Note Added: 0010877
2014-07-24 18:58 dam Note Added: 0010878
2014-07-24 18:58 dam Status feedback => closed
2014-07-24 18:58 dam Resolution open => fixed

Notes
(0010700)
salderman1   
2014-02-06 22:17   
Just to report the binary versions...

Good:
# ./check_disk -V
check_disk v1.5.81.g897f (nagios-plugins 1.5)

Faulty:
# /opt/csw/libexec/nagios-plugins/check_disk -V
check_disk v1.4.16 (nagios-plugins 1.4.16)
(0010701)
salderman1   
2014-02-06 22:19   
Nagios support forum thread:

http://support.nagios.com/forum/viewtopic.php?f=7&t=25160&start=10 [^]
(0010745)
dam   
2014-03-03 15:18   
Hi,

I made experimental new packages which will appear here soon:
  http://buildfarm.opencsw.org/experimental.html#nagios [^]

Please give them a try and let me know if it works.


Best regards -- Dago
(0010877)
salderman1   
2014-07-24 17:48   
I can confirm this patch seems to work. For whatever reason, I missed the update on this ticket when it was issued. We had the issue come up again, and I tracked this ticket down, put the new package on the system and the monitor cleaned up immediately on next check.

Thanks for the effort. Do you have an eta on when this might be promoted to the testing branch?
(0010878)
dam   
2014-07-24 18:58   
Updated packages 1.5,REV=2014.03.03 have been pushed to unstable/ and testing/.