
Untitled
By: a guest on
Jul 20th, 2012 | syntax:
None | size: 0.69 KB | hits: 12 | expires: Never
Note: There was a problem with gvfs, you will see the following error message:
Nagios sent error message "DISK CRITIAL - /home/usr/.gvfs is not accessible:Permission denied"
This problem is due to very special permissions set by fuse on the .gvfs directory. The workaround for this problem is here:
>> modify /etc/nagios/conf.d/localhost_nagios2.cfg as follows:
define command{
command_name check_all_disks_plus
command_line /usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -u GB -A -i .gvfs
}
define service{
use generic-service
host_name localhost
service_description Disk Space
check_command check_all_disks_plus!20%!10%
}
Then run
# sudo /etc/init.d/nagios3 restart