2010-10-05 133 views
0

當試圖打開Nagios的任何圖表拋出以下錯誤:Nagiosgraph投擲誤差

Nagiosgraph已經檢測到錯誤的配置文件中:/etc/nagios/nagiosgraph/nagiosgraph.conf 日誌:/無功/日誌/ nagios/nagiosgraph.log未能打開!

回答

0

確保權限設置是否正確上/var/log/nagios

的WWW(或www數據或Apache)用戶必須具有寫權限。

一種方法是創建一個名爲nagcmd的組,並將www用戶放入此組。

然後設置權限:

chown nagios.nagcmd /var/log/nagios 
chown nagios.www /var/log/nagios/nagiosgraph.log 
chmod 775 /var/log/nagios 
chmod 664 /var/log/nagios/nagiosgraph.log 

另一種方法是保持單獨的日誌文件,一個用於數據收集(nagiosgraph.log),另一個用於繪圖(nagiosgraph-cgi.log)。有關詳細信息,請參閱nagiosgraph.conf。