Page 1 of 1

check_disk (NRPE Linux) to show full volume size in GB

Posted: Tue Dec 20, 2016 9:11 am
by dlukinski
Hello XI support

How to make check_disk show full size of the volume (not just free space) in GB ?

current argument: -a '-w 20% -c 10% -p /var'

Thank you

Re: check_disk (NRPE Linux) to show full volume size in GB

Posted: Tue Dec 20, 2016 12:17 pm
by avandemore
/usr/local/nagios/libexec/check_disk -h will show the builtin help.

There is no direct way with that plugin to display full disk size.

You can write a wrapper for it to add the used and available value or create a new plugin using something like:

Code: Select all

# df -h /boot
https://nagios-plugins.org/doc/guidelines.html
https://mathias-kettner.de/checkmk_localchecks.html
http://www.yourownlinux.com/2014/06/how ... cript.html

Or there may be a plugin on https://exchange.nagios.org/ which may fulfill your needs.

Re: check_disk (NRPE Linux) to show full volume size in GB

Posted: Tue Dec 20, 2016 2:43 pm
by dlukinski
avandemore wrote:/usr/local/nagios/libexec/check_disk -h will show the builtin help.

There is no direct way with that plugin to display full disk size.

You can write a wrapper for it to add the used and available value or create a new plugin using something like:

Code: Select all

# df -h /boot
https://nagios-plugins.org/doc/guidelines.html
https://mathias-kettner.de/checkmk_localchecks.html
http://www.yourownlinux.com/2014/06/how ... cript.html

Or there may be a plugin on https://exchange.nagios.org/ which may fulfill your needs.
Alright, thank you. Please close the thread