NCPA Reports Incorrect Disk Free Percent
Posted: Mon Oct 19, 2015 4:19 pm
If I run a "df -h" on my server I received:
# df -h /app
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_lun0-lvol0
250G 237G 0 100% /app
That is 250GB total volume, with 237GB used and 0GB free, with 100% used.
You and I know that for 100% it should be 250G/250G. 237G/250G is 94.9% used.
Nagios reports that exactly (see attachment) at 94%
I know it is 100% as you can no longer write files. Not a single byte left.
I could probably add a custom script plugin to the ncpa agent to do a "df -h" and capture those metrics Size, Used, Avail, Use% and report those in. But I dont know if that is the recommended approach.
What do you all think?
# df -h /app
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_lun0-lvol0
250G 237G 0 100% /app
That is 250GB total volume, with 237GB used and 0GB free, with 100% used.
You and I know that for 100% it should be 250G/250G. 237G/250G is 94.9% used.
Nagios reports that exactly (see attachment) at 94%
I know it is 100% as you can no longer write files. Not a single byte left.
I could probably add a custom script plugin to the ncpa agent to do a "df -h" and capture those metrics Size, Used, Avail, Use% and report those in. But I dont know if that is the recommended approach.
What do you all think?