免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3535 | 回复: 2
打印 上一主题 下一主题

Redhat Nagios安装详解 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-12-12 12:22 |只看该作者 |倒序浏览
一、软件包
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配置

1. 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 //监视时段配置文件路径

论坛徽章:
0
2 [报告]
发表于 2010-12-13 01:20 |只看该作者
有ubuntu的就更好了

论坛徽章:
0
3 [报告]
发表于 2011-05-14 17:35 |只看该作者
有没有详细的安装手册
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP