/Run/user/1000/gvfs is not accessible Nagios monitoring problem, gvfsnagios
Install nagios3.5.1 in Ubuntu14.04 and use the local machine as the server. After/etc/init. d/nagios3 start, a red warning is displayed on the web interface, as shown below:
Disk critial-/run/user/1000/gvfs is not accessible: Permission denied
Then I went to a naigos FAQ and found it. The official website said this was a bug, for bug #615848. The problem was caused by the problem that the FUSE file system and permissions did not match. Here we will briefly discuss the solution.
Because the default is self-check, that is, the local machine is checked. The official method is to ignore and check this folder because it is OK if you do not check this folder.
The method is as follows:
Cd/etc/nagios-plugins/config
Vim disk. cfg
Add-A-I/run/user/1000/gvfs at the end of command check_disk and check_all_disks (you can add the absolute path of your own folder here ).
# 'Check _ disk' command definition
Define command {
Command_name check_disk
Command_line/usr/lib/nagios/plugins/check_disk-W' $ ARG1 $ '-C' $ ARG2 $'-e-p' $ ARG3 $ '-A-I/run /user/1000/gvfs
}
# 'Check _ all_disks 'command definition
Define command {
Command_name check_all_disks
Command_line/usr/lib/nagios/plugins/check_disk-W' $ ARG1 $ '-C' $ ARG2 $'-A-I/run/user/1000/gvfs
}
Then restart nagios3 (/etc/init. d/nagios3 restart.