没有合适的资源?快使用搜索试试~ 我知道了~
Cacti+Nagios完全攻略整合cacti与nagios安装部署.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 179 浏览量
2022-07-13
21:12:08
上传
评论
收藏 2.68MB PDF 举报
温馨提示
试读
25页
Cacti+Nagios完全攻略整合cacti与nagios安装部署.pdf
资源推荐
资源详情
资源评论
Nagios 简介
Nagios 是一个用来监视系统和网络的开源应用软件, 它通常运行于一个主服务器上,
这个服务器运行 Liunx 或 Unix 操作系统。Nagios 利用其众多的插件实现对本机和远端服
务的监控, 当被监控对象出现异常, Nagios 就会及时给管理人员告警。 它是一个基于 TCP/IP
协议的软件包,包含有 nagios 主程序和它的各个插件,配置非常灵活,可以监视的项目很
多,也可以通过自定义 shell 脚本进行监控服务,非常适合各类企业的网络应用。
Nagios 功能非常强大,它可以监控服务和主机,但是他自身并不包括这部分功能的
代码, 所有的监控、 检测功能都是有插件来完成的。再说报警功能,如果监控系统发现问题
不能报警那就没有意义了, 所以报警也是 nagios 很重要的功能之一。 但是,同样的, nagios
自身也没有报警部分的代码, 甚至没有插件, 而是交给用户或者其他相关开源项目组去完成。
nagios 安装,是指基本平台,也就是 nagios 软件包的安装。它是监控体系的框架,也是所
有监控的基础。
打开 nagios 官方的文档,会发现 nagios 基本上没有什么依赖包,只要求系统是
linux 或者其他 nagios 支持的系统。不过如果你没有安装 apache(http 服务),那么你就
没有那么直观的界面来查看监控信息了,所以 apache 姑且算是一个前提条件。
Nagios 系统的特点主要有下面几点:
监控主机资源和网络服务
允许用户通过设计实现简单的插件来监控自己特定的服务
当被监控对象出现问题时,会及时通知管理人员
事先定义事件处理程序,当对象出现问题时自动调用对应的处理程序
通过 web 页面来监视对象状态,警告提示和日志文件。
需要安装软件列表 :
php-devel-5.1.6-23.2.el5_3.i386.rpm
php-json-ext-1.2.1.tar.bz2
cacti-plugin-0.8.7e-PA-v2.6.zip
nagios-3.2.1.tar.gz
nagios-plugins-1.4.14
ndoutils-1.4b9.tar.gz
npc-2.0.4.tar.gz
Nagios 安装
http://sourceforge.net/projects/nagios/files/
[root@cacti-qmail soft]# wget
http://ncu.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.1/nagios-3.2
.1.tar.gz
[root@cacti-qmail soft]# tar -zxvf nagios-3.2.1.tar.gz
[root@cacti-qmail soft]#cd nagios-3.2.1
[root@cacti-qmail nagios-3.2.1 ]# ./configure --prefix=/usr/local/nagios
[root@cacti-qmail nagios-3.2.1 ]#make all
输入 make all 得到下面具体信息
==============================================================
*** Compile finished ***
If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):
make install
- This installs the main program, CGIs, and HTML files
使用 make install 来安装主程序 ,CGI 和 HTML文件
make install-init
- This installs the init script in /etc/rc.d/init.d
使用 make install-init 在/etc/rc.d/init.d 安装启动脚本
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
使用 make install-commandmode 来配置目录权限
make install-config
- This installs *SAMPLE* config files in /usr/local/nagios/etc
You'll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!
使用 make install-commandmode 来安装示例配置文件 , 安装的路径是
/usr/local/nagios/etc
make install-webconf
- This installs the Apache config file for the Nagios
web interface
使用 make install-webconf 来安装 apache 的配置文件
=================================================================
make install 在安装这个动作之前要增加一个 nagios 用户,并修改它的权限 , 不然会出现
以下错误 :
=================================================================
cd ./base && make install
make[1]: Entering directory `/home/yahoon/nagios/nagios-2.9/base'
make install-basic
make[2]: Entering directory `/home/yahoon/nagios/nagios-2.9/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install: invalid user `nagios' 非法用户 nagios
make[2]: *** [install-basic] Error 1
make[2]: Leaving directory `/home/yahoon/nagios/nagios-2.9/base'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/yahoon/nagios/nagios-2.9/base'
make: *** [install] Error 2
=====================================================================
剩余24页未读,继续阅读
资源评论
lxc15005035395
- 粉丝: 0
- 资源: 7万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功