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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

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

Post 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.
Previous Nagios employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
Locked