NCPA Reports Incorrect Disk Free Percent

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
AGray
Posts: 15
Joined: Wed May 29, 2013 1:34 pm

NCPA Reports Incorrect Disk Free Percent

Post by AGray »

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?
Attachments
image.png
image.png (5.44 KiB) Viewed 1065 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NCPA Reports Incorrect Disk Free Percent

Post by Box293 »

You're not the only one that has seen this, it has been reported on GitHub.

https://github.com/NagiosEnterprises/ncpa/issues/168
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked