/run/user/1000/gvfs is not accessible Nagios監控問題

來源:互聯網
上載者:User

標籤:

在Ubuntu14.04下安裝nagios3.5.1, 且本機作為server端,/etc/init.d/nagios3 start之後,在web介面突然看到有一個紅色警告,顯示如下

DISK CRITIAL - /run/user/1000/gvfs is not accessible: Permission denied

然後去個naigos FAQ上找了下,竟然官方說這是一個bug,為bug#615848. 問題原因是FUSE檔案系統和許可權不配的問題,這裡簡要說下解決方案。

因為預設是自檢,即對本機進行檢查。官方給出的方法的忽略檢查這個檔案夾,因為檢不檢查這個檔案夾都可以。

方法如下:

cd /etc/nagios-plugins/config

vim disk.cfg

在command check_disk 和check_all_disks 最後加上 -A -i /run/user/1000/gvfs(此處可能有所不同,添加你自己的此檔案夾的絕對路徑即可),改後如下

# ‘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
    }

然後再重啟nagios3(/etc/init.d/nagios3 restart),就沒有這個問題了。



/run/user/1000/gvfs is not accessible Nagios監控問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.