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.
define service{
use generic-service
host_name server
service_description Disk Space /
check_command check_disk!20%!10%!/
}
define service{
use generic-service
host_name server
service_description Disk Space Images
check_command check_disk!20%!10%!/mnt/images
}
define service{
use generic-service
host_name server
service_description Disk Space DB
check_command check_disk!20%!10%!/mnt/db
}
The first service for "/" gives a correct status.
The other two services give me an error: "DISK CRITICAL - /mnt/db is not accessible: No such file or directory "
I have a similar issue to stbender above where all but one filesystem reports back fine. The one that doesn't reports the message:
DISK CRITICAL - XXXXX is not accessible: No such file or directory
I've checked to make sure the filesystem and directories are readable by everyone and I'm not running selinux.
I can run the following command locally on the monitoring server which reports back successfully:
/usr/local/nagios/libexec/check_nrpe -H NN.NN.NN.NN -c check_disk -a w20 c10 XXXXX
DISK OK - free space: XXXXX 23710 MB (99% inode=99%);| XXXXX=206MB;25197;25197;0;25197
Can anyone help and/or give me some ideas of things to check please?