服务监控软件介绍与配置

15 views
Skip to first unread message

David chen

unread,
Aug 23, 2011, 1:46:00 AM8/23/11
to My Network
Nagios是一款非常有名的监控和管理软件,而且配置非常灵活,详细可以参考以下文档:
Learning Nagios 3.0 (Packt 2008).pdf
http://ishare.iask.sina.com.cn/f/10091374.html

官网:
http://www.nagios.org

常用命令列表:
http://old.nagios.org/developerinfo/externalcommands/commandlist.php

这个命令同样可以帮助你管理各种服务,当然要做好合理的权限分配,详细的可以参考sudo的文献,再上面的文档里你将会看到怎么样自动重启apache
等服务的配置,以及对smtp,pop3等服务的监控,同时也可以用到分布式系统里进行服务器的调度和资源分配,这一切都要结合自己的实际应用,同时也
欢迎部署应用的同学在这里讨论.

David chen

unread,
Aug 23, 2011, 2:03:36 AM8/23/11
to My Network
一些非常有用的插件下载:
http://www.nagios.org/download/addons/

1)DNX is a modular extension of Nagios that offloads a significant
portion of the work normally done by Nagios to a distributed network
of remote hosts. The DNX module ensures that work is distributed
fairly and evenly among the registered DNX client hosts.
http://dnx.sourceforge.net/

2)NSCA allows you to integrate passive alerts and checks from remote
machines and applications with Nagios. Useful for processing security
alerts, as well as deploying redundant and distributed Nagios setups.
http://prdownloads.sourceforge.net/sourceforge/nagios/nsca-2.7.2.tar.gz

On Aug 23, 1:46 pm, David chen <cheng...@gmail.com> wrote:
> Nagios是一款非常有名的监控和管理软件,而且配置非常灵活,详细可以参考以下文档:

> Learning Nagios 3.0 (Packt 2008).pdfhttp://ishare.iask.sina.com.cn/f/10091374.html

黄昊

unread,
Aug 23, 2011, 2:10:59 AM8/23/11
to share...@googlegroups.com
这个还是要学习一下

David chen

unread,
Aug 23, 2011, 4:21:08 AM8/23/11
to My Network
http://nagios.sourceforge.net/docs/3_0/toc.html

详细的实例,包括每个变量的解释,复制下来就可以用:)

On Aug 23, 2:03 pm, David chen <cheng...@gmail.com> wrote:
> 一些非常有用的插件下载:http://www.nagios.org/download/addons/
>
> 1)DNX is a modular extension of Nagios that offloads a significant
> portion of the work normally done by Nagios to a distributed network
> of remote hosts. The DNX module ensures that work is distributed

> fairly and evenly among the registered DNX client hosts.http://dnx.sourceforge.net/


>
> 2)NSCA allows you to integrate passive alerts and checks from remote
> machines and applications with Nagios. Useful for processing security

> alerts, as well as deploying redundant and distributed Nagios setups.http://prdownloads.sourceforge.net/sourceforge/nagios/nsca-2.7.2.tar.gz

David chen

unread,
Aug 24, 2011, 3:43:34 AM8/24/11
to My Network
今天搭了一个环境,涉及到了以下内容稍微整理一下:
1. 如果要想监控路由器、交换机等网络设备,需要借助mrtg工具生成相应的日志文件,然后分析log文件可以获得网络流量等信息,前提是网络设备要
打开snmp
2. 如需要收集服务器等信息有几种办法
1)snmp
这个需要对应的服务器打开snmp服务,并开放指定的OLD或MIB,有关snmp的概念可以参考这个文档(http://
ishare.iask.sina.com.cn/f/13473641.html
SNMP Trap Translator http://www.snmptt.org/
OpenNMS http://www.opennms.org/
2)ssh
这个需要自己下载nagios的插件进行编译,缺点是如果有多个平台不能互相拷贝文件,但是如果都是相同的系统就好配置了

实验报告:
Ubuntu 11.04: nagios
监控服务:http, https, smb, pop, smtp, port, dhcp, dns, disk, processes
方式:snmp+ssh
类型:Redhat server, cisco 3550, printer, windows

总体来说功能很强大,自己可以根据需求定制脚本和监控服务等,可以设定不同的阀值。

David chen

unread,
Aug 25, 2011, 1:25:35 AM8/25/11
to My Network
这个网站有现成的MIB和OLD对应表,要查什么看看这个比较方便

http://www.mibdepot.com/cgi-bin/getmib3.cgi?abc=0&n=NETWORK-APPLIANCE-
MIB&r=netapp&f=netapp_1_4.mib&t=tree&v=v1&i=0&obj=cp

On Aug 24, 3:43 pm, David chen <cheng...@gmail.com> wrote:
> 今天搭了一个环境,涉及到了以下内容稍微整理一下:
> 1. 如果要想监控路由器、交换机等网络设备,需要借助mrtg工具生成相应的日志文件,然后分析log文件可以获得网络流量等信息,前提是网络设备要
> 打开snmp
> 2. 如需要收集服务器等信息有几种办法
> 1)snmp
> 这个需要对应的服务器打开snmp服务,并开放指定的OLD或MIB,有关snmp的概念可以参考这个文档(http://
> ishare.iask.sina.com.cn/f/13473641.html
> SNMP Trap Translator http://www.snmptt.org/

> OpenNMShttp://www.opennms.org/

David chen

unread,
Aug 25, 2011, 2:03:24 AM8/25/11
to My Network
以下两个网站对于OID解释比较详细,并有对应RFC,估计以后的物连网也是用这个管理的,数据库很强大
http://www.alvestrand.no/objectid/top.html
http://www.oid-info.com/index.htm
Reply all
Reply to author
Forward
0 new messages