您好,登錄后才能下訂單哦!
這篇文章主要講解了“Redhat Nagios的安裝步驟”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“Redhat Nagios的安裝步驟”吧!
一、軟件包
1. nagios-3.2.1.tar.gz
2. nagios-plugins-1.4.14.tar.gz
二、安裝步驟
1. useradd –m nagios
2. groupadd nagcmd
3. usermod –a –G nagcmd nagios
4. usermod –a –G nagcmd apache
5. tar zxvf nagios-3.2.1.tar.gz
6. cd nagios-3.2.1
7. ./configure –prefix=/usr/local/nagios –with-command-group=nagcmd --with-httpd-conf=/usr/local/apache/conf
8. Make install
9. Make install-init
10. Make install-config
11. Make install-commandmode
12. Vi /usr/local/nagios/etc/objects/contacts.cfg修改email為你的EMAIL地址
13. Make install-webconf
14. Htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin //增加nagiosadmin用戶并設置密碼
15. cd /usr/local/apache/conf
16. 拷貝nagios.conf中的內容到httpd.conf中,放在httpd.conf***
17. Cd /var/local/software
3. Tar zxvf nagios-plugins-1.4.14.tar.gz//安裝nagios插件
18. Cd nagios-plugins-1.4.14
19. ./configure --prefix=/usr/local/nagios-plus --with-nagios-user=nagios --with-nagios-group=nagios;
20. Make
21. Make install
22. Chkconfig –add nagios
23. Chkconfig nagios on
24. /usr/local/nagios/bin/nagios –v /usr/local/nagios/etc/nagios.cfg//測試nagios配置是否正確
25. Service nagios start/stop
26. Killall httpd
27. /usr/local/apache/bin/apachectl –k start
28. 訪問http://localhost/nagios輸入nagiosadmin密碼 nagiosadmin設置的密碼
29.
三、Nagios配置
cfg_file=/usr/local/nagios/etc/contactgroups.cfg //聯系組配置文件路徑
cfg_file=/usr/local/nagios/etc/contacts.cfg //聯系人配置文件路徑
cfg_file=/usr/local/nagios/etc/hostgroups.cfg //主機組配置文件路徑
cfg_file=/usr/local/nagios/etc/hosts.cfg //主機配置文件路徑
cfg_file=/usr/local/nagios/etc/services.cfg //服務配置文件路徑
cfg_file=/usr/local/nagios/etc/timeperiods.cfg //監視時段配置文件路徑
感謝各位的閱讀,以上就是“Redhat Nagios的安裝步驟”的內容了,經過本文的學習后,相信大家對Redhat Nagios的安裝步驟這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。