Centreon 無法啟動nagios程式
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!!!
導致新加監控機器未能寫進資料庫,程式號不改變
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Nagios+Centreon監控系統簡介iOS
- pg_ctl:無法啟動伺服器程式伺服器
- @FeignClient @Resource 無法注入Bean Springboot無法啟動clientBeanSpring Boot
- win10安裝程式無法正常啟動怎麼辦_win10安裝程式無法正常啟動如何解決Win10
- win10應用程式無法正常啟動怎麼解決_win10應用程式無法啟動解決教程Win10
- .net 程式通過 crontab 無法啟動,手動執行指令碼可以啟動指令碼
- Jtti:c++無法啟動程式的原因有哪些JttiC++
- 快速修復應用程式無法正確啟動
- php-worker 無法啟動PHP
- Manjaro下Steam無法啟動JAR
- 記vscode無法啟動解決辦法VSCode
- win10 sxstrace.exe無法啟動解決辦法_win10系統應用程式無法正常啟動怎麼辦Win10
- 程式無法正常啟動0xc0000142解決方法
- MySQL服務名無效或者MySQL正在啟動 MySQL無法啟動MySql
- jenkins安裝提示無法啟動Jenkins
- springboot連線hive無法啟動Spring BootHive
- [20231003]windows 2003無法啟動.txtWindows
- laradock安裝rabbitmq無法啟動MQ
- Oracle 12c RAC CSSD程式無法啟動real time模式OracleCSS模式
- 無法啟動mysql服務”1067 程式意外終止”解決辦法【簡記】MySql
- StarRocks-FE無法啟動,日誌:
- tomcat無法啟動的解決方法Tomcat
- Webphser Applcation Server Dmgr無法正常啟動WebAPPServer
- Flask 框架啟動無法改變埠Flask框架
- 解決ASM無法啟動問題ASM
- 解決GITLAB無法啟動runsv no runningGitlab
- 無法啟動?教你進入安全模式模式
- GitLab修改配置後nginx無法啟動GitlabNginx
- win10快速啟動無法勾選怎麼修復_win10啟動快速啟動無法勾選解決方法Win10
- 啟動vmware虛擬機器報錯:“無法獲得VMCI驅動程式的版本:控制程式碼無效”虛擬機
- 【Azure Bot Service】部署NodeJS ChatBot程式碼到App Service中無法自動啟動NodeJSAPP
- win10 ituns無法正常啟動怎麼辦_win10 ituns無法正常啟動解決方法Win10
- Asp.net 無法啟動IIS Express 解決辦法ASP.NETExpress
- docker無法啟動排查運維記錄Docker運維
- linux mysql無法啟動怎麼解決?LinuxMySql
- Oracle Haip無法啟動問題學習OracleAI
- hbase region server 無法啟動一例。Server
- Redis 線上安裝後無法啟動?Redis
- MYSQL資料庫服務無法啟動MySql資料庫