This plugin monitors the free disk space on a specified disk.
Supported parameters are :
Example ranges : 10: - More free space than 10% :30 - Less free space than 30% 15:20 - Free space between 15% and 20%.
The following example configures the check so that all the parameters will be passed with the check_nrpe command. This way, you'll be able to use this definition to monitor all the disks.
To configure the check, we can use both the XML or the INI configuration file.
<command name="check_disk" plugin_name="CHECK_DISK"> <arg name="path" value="$ARG1$" /> <arg name="warning" value="$ARG2$" /> <arg name="critical" value="$ARG3$" /> </command>
check_disk : CHECK_DISK --path $ARG1$ --warning $ARG2$ --critical $ARG3$
Any of the parameters ($ARG?$ macros) could be hardcoded inside the JNRPE configuration.
With the following invocation example we will rise a warning if the free space on the '/' directory is less that 20% and a critical if it is less that 5%
check_nrpe -n -H my.jnrpe.server -c check_disk -a / :20 :5
If you are monitoring a Windows disk, it could be:
check_nrpe -n -H my.jnrpe.server -c check_disk -a C: :20 :5