码迷,mamicode.com
首页 > 移动开发 > 详细

2.1 nagios 安装

时间:2016-07-05 06:34:45      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:nagios   安装   

         Nagios 官网 http://www.nagios.org

         服务器配置

         nagios 也需要 apache+php 的环境,CentOS6默认的 yum 源里没有 nagios 相关的rpm包,所以要安装一个epel的扩展源。

[root@localhost ~]# yum install -y epel-release

         安装nagios相关包

[root@localhost ~]# yum install -y httpd nagios nagios-plugins nagios-plugins-all nrpe nagios-plugins-nrpe

         设置登录nagios后台的用户和密码

[root@localhost ~]# htpasswd -c /etc/nagios/passwd nagiosadmin
New password:
Re-type new password:
Adding password for user nagiosadmin

          检查配置文件是否有问题

[root@localhost ~]# nagios -v /etc/nagios/nagios.cfg

Total Warnings: 0
Total Errors:   0
Things look okay - No serious problems were detected during the pre-flight check

           启动服务

[root@localhost ~]# service httpd start ; service nagios start

           浏览器访问:http://ip/nagios

技术分享


             输入用户名 nagiosadmin,密码是刚刚设置的。

技术分享


         此时,nagios监控的只有localhost,还没有其他客户端机器,要想添加监控客户机,还需要在客户端安装nagios相关的软件包,并且需要在服务端配置。

技术分享


技术分享


本文出自 “散宜生的学习笔记” 博客,请务必保留此出处http://sanyisheng.blog.51cto.com/11154168/1795722

2.1 nagios 安装

标签:nagios   安装   

原文地址:http://sanyisheng.blog.51cto.com/11154168/1795722

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!