服务端安装:
1、yum安装,首先安装epel扩展源
wget https://mirrors.aliyun.com/epel/epel-release-latest-6.noarch.rpm
rpm -ivh epel-release-latest-6.noarch.rpm
2、yum安装nagios及依赖包软件
yum install -y httpd nagios nagios-plugins
nagios-plugins-all nrpe nagios-plugins-nrpe
3、设置nagios用户及密码
htpasswd -c /etc/nagios/passwd nagiosadmin
4、检查配置文件是否有错
nagios -v /etc/nagios/nagios.cfg
5、启动服务:
service httpd start;service nagios start
6、浏览器访问:http://ip/nagios
输入用户及密码登录。
转载于:https://www.cnblogs.com/ddgen/p/7130232.html