Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 20th, 2012  |  syntax: None  |  size: 0.69 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Note: There was a problem with gvfs, you will see the following error message:
  2.  
  3. Nagios sent error message "DISK CRITIAL - /home/usr/.gvfs is not accessible:Permission denied"
  4.  
  5.  
  6. This problem is due to very special permissions set by fuse on the .gvfs directory. The workaround for this problem is here:
  7.  
  8. >> modify /etc/nagios/conf.d/localhost_nagios2.cfg as follows:
  9.  
  10. define command{
  11. command_name check_all_disks_plus
  12. command_line /usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -u GB -A -i .gvfs
  13. }
  14.  
  15. define service{
  16. use generic-service
  17. host_name localhost
  18. service_description Disk Space
  19. check_command check_all_disks_plus!20%!10%
  20. }
  21.  
  22. Then run
  23.  
  24. # sudo /etc/init.d/nagios3 restart