一 ,准备工作,最小化安装系统
系统版本 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安装和配置全过程,具体到每一步,并加上个人安装配置心得!
nagios rpm 安装 配置 及部署 监控 nagios rpm 安装 配置 及部署 监控
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的安装部署,完美解决安装过程中遇到的各种Error
nagios 安装 中文 部署 nagios 安装 中文 部署 nagios 安装 中文 部署 nagios 安装 中文 部署
nagios安装于配置 有安装包 安装文档 其中awstats可以不用配置省略
Nagios安装配置说明: 1,nagios的安装; 2,nagios配置; 3,nagios服务
linux下nagios安装配置,及用到的插件。
nagios安装详细过程,本人借助网络上的资料亲自实践的经验总结
nagios安装过程,实现中文监控界面。
nagios安装必备文件,加上本人博客http://blog.csdn.net/akak2424/article/details/52098941可以保证安装成功,欢迎下载
Nagios安装配置手册完整版,包括出错记录,phpmyadmin,服务器端和客户端安装,
Cacti+Nagios完全攻略整合cacti与nagios安装部署.pdf
cacti+nagios安装文档中文版
nagios安装所需要的所有jar包
Nagios安装步骤(超级详细) 一步步讲解,超级详细
suse11sp1 下安装nagios监控的安装记录文档。
服务器监控软件nagios安装及配置,centos6.5安装环境。已部署在本单位主控机房。
云监控Nagios安装步骤