一 ,准备工作,最小化安装系统
系统版本 centos 5.4
http://www.verycd.com/topics/2776496/
nagios-3.2.3.tar
http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.3.tar.gz
nagios-plugins-1.4.15.tar
http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
[root@nagios ~]# uname -a
Linux nagios 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 athlon i386 GNU/Linux
确保联网正常
[root@nagios ~]# ping www.baidu.com
PING www.a.shifen.com (61.135.169.105) 56(84) bytes of data.
64 bytes from 61.135.169.105: icmp_seq=1 ttl=55 time=19.0 ms
--- www.a.shifen.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 19.087/19.087/19.087/0.000 ms
[root@nagios ~]#
虚拟机sendmail 启动会很慢
[root@nagios ~]# cd /etc/mail
[root@nagios mail]# touch *
二 关闭不需要的服务
chkconfig --level 2345 cups off
chkconfig --level 2345 ip6tables off
chkconfig --level 2345 iptables off
chkconfig --level 2345 netfs off
chkconfig --level 2345 nfslock off
chkconfig --level 2345 portmap off
chkconfig --level 2345 rhnsd off
chkconfig --level 2345 rpcsvcgssd off
chkconfig --level 2345 rpcidmapd off
chkconfig --level 2345 smartd off
chkconfig --level 2345 xfs off
chkconfig --level 2345 bluetooth off
chkconfig --level 2345 hidd off
chkconfig --level 2345 pand off
chkconfig --level 2345 dund off
chkconfig --level 2345 capi off
chkconfig --level 2345 firstboot off
chkconfig --level 2345 kudzu off
chkconfig --level 2345 mcstrans off
chkconfig --level 2345 pcscd off
chkconfig --level 2345 restorecond off
chkconfig --level 2345 rpcgssd off
##安装必要的软件包
#yum install –y httpd
#yum install –y gcc
#yum install –y glibc glibc-common
#yum install –y gd gd-devel
#yum install mysql mysql-server mysql-devel
#yum install php
###nagios3.2.0 以后的版本必须安装php,nagios 页面访问才正常
#/usr/sbin/useradd -m nagios 添加一个名为nagios 的用户用以专门跑nagios
#passwd nagios 设置密码
#/usr/sbin/groupadd nagcmd 添加nagcmd 用户组,用以通过web 页面提交外部控制命令
#/usr/sbin/usermod -a -G nagcmd nagios 将nagios 用户加入nagcmd 组
#/usr/sbin/usermod -a -G nagcmd apache 将apache 用户加入nagcmd 组
tar zxvf nagios-3.2.3.tar.gz
cd nagios-3.2.3
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
vi /usr/local/nagios/etc/objects/contacts.cfg 修改Email
安装web接口
make install-webconf
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
##设置nagiosadmin web 登录密码
service httpd restart
##重启httpd 服务
编译并安装Nagios插件
[root@nagios download]# tar -zxvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make install
把nagios添加为系统服务并将之加入到自动启动服务队列:
chkconfig --add nagios
chkconfig nagios on
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg ##检测有无错误出现

[root@nagios nagios-plugins-1.4.15]# service nagios start
Starting nagios: done.
正式启动nagios服务
http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html
官方帮助文档,
通过web界面查看nagios:
http://your host ip/nagios



初步完成,截图留念
中文和英文的主程序安装一个即可
中文和英文的安装步骤一样
nagios-cn-3.2.3.tar 下载地址
http://sourceforge.net/projects/nagios-cn/
分享到:
相关推荐
Nagios安装后,默认配置文件位于`/etc/nagios`目录下。下面列出了一些重要的配置文件。 ##### 1. `nagios.cfg` 该文件是Nagios的核心配置文件,控制着Nagios的整体行为。为了便于调试,可以选择使用`minimal.cfg`...
本文将详细介绍在Linux环境下安装和配置Nagios的全过程,以及一些个人实践心得。 首先,确保你拥有以下软件包:httpd、imagepak-base、mysql、nagios、nagios-plugins、nrpe、perl、php、pnp4nagios和rrdtool。这些...
### Nagios安装与配置知识点详解 #### 一、Nagios概述 - **定义与背景**:Nagios是一款开源的计算机系统与网络监控工具,主要用于监控Windows、Linux及Unix等操作系统下的主机状态以及网络设备(如路由器、交换机...
本文将详细介绍如何在CentOS 6.4系统下安装和部署Nagios。 首先,Nagios的核心功能包括监控本地和远程主机的资源(如内存、CPU、磁盘空间等)、检查网络服务(如HTTP、SMTP、FTP等)的可用性,并支持自定义插件扩展...
在这个“nagios安装与配置”的主题中,我们将深入探讨Nagios的安装过程、基本配置以及如何忽略awstats配置。 一、Nagios安装 1. **系统需求**:Nagios支持多种Linux发行版,如Ubuntu、CentOS等。确保你的系统满足...
### Nagios安装与配置知识点详解 #### 一、Nagios简介及原理 **Nagios** 是一款非常流行的开源网络监控系统,主要用于监控网络中各种服务器、工作站、路由器、交换机等设备的状态。它能够有效地监控 Windows、...
### Nagios安装配置 #### 一、Nagios概述与应用场景 Nagios是一款开源的监控工具,主要用于监测网络中的主机、服务以及网络设备的状态。它广泛应用于各大企业及组织中,尤其对于需要24小时不间断运行的服务环境来...
在IT领域,监控系统是确保服务稳定性和性能的关键工具之一,Nagios作为一款开源的...提供的文档如《Solaris10下Nagios安装.doc》和《Solaris10下Nagios安装.pdf》会进一步细化安装过程,帮助用户解决可能出现的问题。
在本文中,我们将深入探讨Nagios的安装过程,并结合提供的"nagios安装必备文件",确保您能够顺利完成安装。 1. **Nagios概述** Nagios的核心功能是监测网络服务,包括HTTP、SMTP、FTP等协议的服务状态,以及服务器...
### Nagios安装与配置详解 #### 一、概述 Nagios是一款开源的网络监控工具,主要用于监控服务器、网络设备和服务的状态。通过安装Nagios,可以实现对系统的实时监控,帮助管理员及时发现并解决问题。本文档将详细...
### NAGIOS安装配置手册 #### 一、关于Nagios ##### 1. Nagios简介 Nagios是一款开源的计算机系统与网络监视系统,主要用于监控主机和服务的状态,并在某些异常情况发生时通过电子邮件、短信或用户定义的方式通知...
### Nagios安装配置知识点 #### 一、Nagios简介及功能 Nagios是一款开源的网络监控系统,主要用于监控主机和服务的状态,并在状态发生变化时(例如:出现故障或者恢复正常)发送通知。它可以监控各种各样的系统...
Nagios 和 Cacti 安装部署指南 Nagios 是一个开源的应用软件,用于监控系统和网络。它通常运行于一个主服务器上,这个服务器运行 Linux 或 Unix 操作系统。Nagios 利用其众多的插件实现对本机和远端服务的监控, 当...
NAGIOS 安装 一、安装前准备 1.1、系统环境: 序号 软件类别 软件名称 软件版本 1 系统软件 Centos 5.4 5.4 2 数据库软件 Mysql 5.5.9 3 应用软件 jdk 1.6.0_13 4 apache 2.2.17 5 php 5.3.0RC3 6 Nagios-...
### Nagios安装配置知识点 #### 一、Nagios简介 Nagios是一款开源的网络监控系统,能够帮助用户监控网络中的服务器、路由器以及其他设备的状态。它可以检测并报告网络问题,帮助管理员快速定位并解决问题,确保网络...
### Nagios 安装步骤详解 #### 一、前言 Nagios 是一款非常流行的开源网络监控系统,主要用于监控主机和服务的状态,并在出现问题时发送警告通知。本篇指南将详细解析 Nagios 的安装步骤,确保您能够顺利地在您的...
Nagios安装及配置过程涉及多个方面的知识点,下面将详细介绍: 一、安装环境: 1、操作系统:Nagios可以在多种操作系统上安装和运行,通常推荐使用Linux发行版,例如SUSE。安装过程中需要确保操作系统环境稳定和...
本教程将详细阐述Nagios的安装步骤和配置要点。 **一、安装步骤** 1. **Apache 安装**: 在主服务器端,首先需要安装Apache Web服务器。通过`./configure`进行配置,启用所需的模块如`so`、`expires`、`headers`...
### 云监控Nagios安装步骤详解 #### Nagios简介 Nagios是一款开源的、可在Linux/Unix平台上运行的监控系统。它主要用于监控系统运行状态及网络信息,并且能够针对异常情况提供通知机制,例如当系统或服务状态发生...