# apt-get install apache2 libapache2-mod-php5 mysql-server安裝 Nagios Server :
# apt-get install nagios3 nagios-plugins ndoutils-nagios3-mysql nagios-nrpe-plugin安裝完會在 Apache 設定檔資料夾裏產生 nagios 的設定檔連結
# ls -l /etc/apache2/conf.d/nagios3.conf重新啓動 Apache
/etc/apache2/conf.d/nagios3.conf -> /etc/nagios3/apache2.conf
# /etc/init.d/apache2 restart
Configuration :
可設定羣組,以分類主機 (by OS, Service, ...)
# vi /etc/nagios3/conf.d/hostgroups_nagios2.cfg
設定警報通知聯絡人
# vi /etc/nagios3/conf.d/contacts_nagios2.cfg
設定監視的主機
# vi /etc/nagios3/conf.d/generic-host_nagios2.cfg
設定主機監視的服務(by /etc/nagios3/conf.d/commands.cfg or nagios-plugins (check_http, check_ssh)或執行系統狀態檢查指令 (with nagios-nrpe-plugin)
# vi /etc/nagios3/conf.d/generic-service_nagios2.cfg
* nagios-plugins :
# ls /usr/share/nagios-plugins/
# ls /usr/lib/nagios/plugins/
* NRPE - Nagios Remote Plugin Executor
Reference :
Setting up Nagios on Debian or Ubuntu » cloud101
Monitoring Publicly Available Services
利用插件扩展Nagios的监控功能_风信网
Install Nagios 3.5.0 manually on Debian 7.0 | IT Secure NetIT Secure Net
沒有留言:
張貼留言