RHEL安装nagios(1)(2)
6.Configure the Web Interface (配置下Web接口)
#make install-webconf
#htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin (nagios web后台用户名和密码就在这里生成)
#service httpd restart
7.Compile and Install the Nagios Plugins (没有插件的nagios似乎没有什么用,怎么感觉和WordPress很相似呀)
#tar xzf nagios-plugins-1.4.14.tar.gz
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install
8.Start Nagios
#chkconfig --add nagios
#chkconfig nagios on
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (仅仅是个测试)
#service nagios start
9.Modify SELinux Settings (如果你开启了selinux,那么你可能需要修改相关安全上下文)
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
10.Login to the Web Interface
http://localhost/nagios/
通过文章的介绍,我们清楚的知道了RHEL安装nagios的全过程!
评论暂时关闭