Redhat Nagios安装详解

系统 Linux
我们在用Redhat的时候,常常会为了系统运行监控和网络信息监控的具体实施而烦恼,那我给大家推荐一款监控工具——Nagios,为你的监控做保障!来看看具体的安装!

Redhat是我一直用的工作平台,在日常监控中我用的是Nagios,本文具体为大家介绍下Redhat Nagios的安装。

  一、软件包

  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.

clip_image002

#p#

 

  三、Nagios配置

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

  中文版帮助手册:http://nagios-cn.sourceforge.net/nagios-cn/

文章中所介绍了Redhat平台下的监控系统——Nagios的安装详解,希望大家能真真掌握它。

【编辑推荐】

  1. Nagios 配置文件解析
  2. Nagios安装笔记
  3. Suse 9 安装Nagios过程
  4. Nagios扩展的主机和服务监测
  5. Nagios编译安装之配置Apache服务
  6. Nagios的配置文件

 

责任编辑:赵鹏 来源: 网络转载
相关推荐

2011-03-31 16:05:18

Redhat配置nagios

2011-03-31 16:05:18

Redhat配置nagios

2011-03-31 16:09:21

Redhat配置nagios

2011-03-31 15:31:06

Redhat配置nagios

2010-05-31 10:00:14

Nagios安装

2011-03-31 15:31:05

Redhat配置nagios

2011-03-31 16:11:23

Redhat配置nagios

2011-03-31 16:05:15

Redhat配置nagios

2011-03-31 16:45:39

Redhat配置nagios

2011-03-31 15:31:06

Redhat配置nagios

2009-12-16 13:44:12

2011-03-21 15:35:01

Nagiosnagios-plug安装

2011-08-22 12:25:02

nagios

2011-03-28 13:27:36

RHELnagios

2011-03-23 09:07:38

Nagios安装

2011-03-31 16:11:22

Redhat配置nagios

2011-03-31 16:10:47

Redhat配置nagios

2011-03-28 08:48:00

Nagios

2011-03-22 13:28:00

Nagios安装

2011-03-22 10:54:01

点赞
收藏

51CTO技术栈公众号