This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Nagios安装 - 服务端(192.168.0.11) | |
Centos6默认的yum源里没有nagios相关的rpm包,但是我们可以安装一个epel的扩展源: | |
yum install -y epel-release | |
然后安装nagios相关的包 | |
yum install -y httpd nagios nagios-plugins nagios-plugins-all nrpe nagios-plugins-nrpe | |
设置登录nagios后台的用户和密码:htpasswd -c /etc/nagios/passwd nagiosadmin | |
vim /etc/nagios/nagios.cfg | |
nagios -v /etc/nagios/nagios.cfg 检测配置文件 | |
启动服务:service httpd start; service nagios start |