1 / 20
文档名称:

Nagios监控操作手册.ppt

格式:ppt   页数:20
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

Nagios监控操作手册.ppt

上传人:经管专家 2012/9/7 文件大小:0 KB

下载得到文件列表

Nagios监控操作手册.ppt

文档介绍

文档介绍:Nagios监控操作手册 操作系统:suse10、
融创天下测试运维部
大纲
· Nagios简介
· Nagios服务器端的安装
· Nagios被监控端的安装
· 功能配置
· Nagios的应用
Nagios 简介
Nagios监控采用的是一对多的模式。
即由一台主服务器去检测多台客户端,主服
务器端获得各客户端的状态后,以网页的形式显
示各客户端的状态,当某些客户端状态出现异常
时可以通过短信或邮件通知各联系人。
要实现状态的检测,首先一个重点就是要建
立起主服务器与客户端的连通性。
总体的模式请看下图:
Nagios服务器端的安装
一﹑建立用户nagios和群组nagios:
groupadd nagios
useradd -G nagios nagios
groupadd nagcmd
usermod -G nagcmd nagios
usermod -G nagcmd wwwrun
二﹑安装nagios 和Nagios-Plugins
nagios-:
tar -zxvf nagios-
nagios-
./configure --mand-group=nagcmd
make all
make install
make install-init
make mandmode
make install-config
make install-webconf
(nagiosadmin为用户名)
htpasswd2 -c /usr/local/nagios/etc/ nagiosadmin
-plugins-:
tar -zxvf nagios-plugins-
nagios-plugins-
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
: service apache2 restart
:
cd /usr/local/nagios/bin/
检查文件:./nagios -v /usr/local/nagios/etc/ (没错误就可启服务了)
service nagios start

三﹑安装NRPE,只要check_nrpe 插件
nrpe-:
tar -zxvf nrpe-
nrpe-
./configure
注意:对于suse10系统,有时编译时会出现找不到SSL,此时需要先安装一个名为
openssl-devel--,然后再去重新编译!
( rpm –ivh openssl-devel-- )
make all
make install-plugin
Nagios被监控端的安装
一﹑建立用户和组
groupadd nagios
useradd -g nagios ngaios
二﹑安装nagios-plugins插件
-plugins-:
tar -zxvf nagios-plugins-
nagios-plugins-
./configure
make
make install
三﹑d(启不来,d服务)
service d start
四﹑安装NRPE
./configure
make all
make install-plugin
make install-daemon
make install-daemon-config
make install-d #将 nrpe 随 d一起服务
五﹑配置
编辑文件/etc/,设置服务器端的ip
only_from = #
在文件/etc/services里增加一行语句
nrpe 5666/tcp # NRPE
d: service d restart
六﹑防火墙允许服务
防火墙打开5666端口
测试服务: /usr/