nrpe and check_disk - specify filesystem
Posted: Mon Dec 08, 2014 2:55 pm
I'm attempting to use the check_disk function via nrpe. My service definition is:
define service{
use generic-service
hostgroup_name cloud_hosts
service_description tmp Partition
check_command check_nrpe!check_disk!20%!10%!tmp!/
}
my npre.cfg file on my remote node is:
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p /$ARG3$
It appears that the 3rd argument isn't being passed, as the utilization is always the same for all filesystems I'm looking at, even though they're actually on separate logical volumes (RHEL 6.6, by the way). I suspect it may have something to do with the way it's being passed. Specifically, how do I specify a real filesystem for arg3 for the -p argument to check_disk?
I've tried check_nrpe!check_disk!20%!10%!tmp!/ and that doesn't work. I've tried check_nrpe!check_disk!20%!10%!"/tmp"!/ and that doesn't work. What's the solution here????
define service{
use generic-service
hostgroup_name cloud_hosts
service_description tmp Partition
check_command check_nrpe!check_disk!20%!10%!tmp!/
}
my npre.cfg file on my remote node is:
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p /$ARG3$
It appears that the 3rd argument isn't being passed, as the utilization is always the same for all filesystems I'm looking at, even though they're actually on separate logical volumes (RHEL 6.6, by the way). I suspect it may have something to do with the way it's being passed. Specifically, how do I specify a real filesystem for arg3 for the -p argument to check_disk?
I've tried check_nrpe!check_disk!20%!10%!tmp!/ and that doesn't work. I've tried check_nrpe!check_disk!20%!10%!"/tmp"!/ and that doesn't work. What's the solution here????