Centreon 無法啟動nagios程式

Michael_DD發表於2015-02-12
Centreon 無法啟動nagios程式


導致新加監控機器未能寫進資料庫,程式號不改變

1.  修改/etc/sudoers檔案
增加如下內容:
(主節點)
#includedir /etc/sudoers.d
## BEGIN: CENTREON SUDO
#Add by CENTREON installation script
User_Alias      CENTREON=apache,centreon
Defaults:CENTREON !requiretty
# Monitoring engine Restart
CENTREON   ALL = NOPASSWD: /etc/init.d/nagios* restart
CENTREON   ALL = NOPASSWD: /etc/init.d/nagios restart
# Monitoring engine reload
CENTREON   ALL = NOPASSWD: /etc/init.d/nagios* reload
CENTREON   ALL = NOPASSWD: /etc/init.d/nagios reload
# Monitoring engine test config
CENTREON   ALL = NOPASSWD: /usr/local/nagios/bin/nagios* -v *
CENTREON   ALL = NOPASSWD: /usr/local/nagios/bin/nagios -v *
# Monitoring engine test for optim config
CENTREON   ALL = NOPASSWD: /usr/local/nagios/bin/nagios* -s *
CENTREON   ALL = NOPASSWD: /usr/local/nagios/bin/nagios -s *
# Snmptrapd Restart
CENTREON   ALL = NOPASSWD: /etc/init.d/snmptrapd restart
# Snmptt restart
CENTREON   ALL = NOPASSWD: /etc/init.d/snmptt restart
# CentStorage Restart
CENTREON   ALL = NOPASSWD: /etc/init.d/centstorage restart
# CentStorage stop
CENTREON   ALL = NOPASSWD: /etc/init.d/centstorage stop
# CentStorage start
CENTREON   ALL = NOPASSWD: /etc/init.d/centstorage start
# Broker engine Restart
CENTREON   ALL = NOPASSWD: /etc/init.d/ndo2db* restart
CENTREON   ALL = NOPASSWD: /etc/init.d/ndo2db restart
# Broker engine reload
CENTREON   ALL = NOPASSWD: /etc/init.d/ndo2db* reload
CENTREON   ALL = NOPASSWD: /etc/init.d/ndo2db reload
## END: CENTREON SUDO

新增sudo許可權


2. 確定sudo許可權沒問題後,依然有問題

重啟節點機器!!reboot!!!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29500582/viewspace-1434346/,如需轉載,請註明出處,否則將追究法律責任。

相關文章