Nagios Check_nrpe/check_disk with error message DISK CRITICAL – /apps/yourxxx is not accessible: Permission denied
This was sometimes because the user under which nagios runs by had no read permission to the file systems check_disk is going to check.
For example, if you received alert:
DISK CRITICAL – /apps/vcc/logs/way is not accessible: Permission denied
You then can log on your server, under root, run:
/usr/local/nagios/libexec/check_disk -p /apps/vcc/logs/way, you may see:
DISK OK – free space: /apps/vcc/logs/way 823 MB (21% inode=90%);| /=2938MB;;3966;0;3966
But when you run this under user nagios, you may see DISK CRITICAL again.
Grant read permission to the filesystem/directory that had problem.