当前位置:首页 » 专业资讯
开发技术指南» 文章正文
    引言: 上回看了platinum的"mrtg能做些什么"贴子,很受启发,于是也试着做了一个。
 

 

 ·请教关于ssh的问题    »显示摘要«
    摘要: 我用putty连接,出现如下信息“the servers host key is not cached in the registry.you have no guarantee that server is the computer you think it is. the servers key fingerprint is: 1024 56:78:90:ab:56:78:90:ab:56:78:90:ab:56:78:90:ab if you ......
    摘要: 各位在工作中总会遇到问题, 对于相同的现象大家可能有不同的解决办法, 或者对于一个命令大家有不同的使用心得, 又或者您使用您自己编辑的脚本来完成工作, 我们是否可以来交流一下呢?方便自己方便他人。 但是,我觉得和[color=green:24a4bc6f9e]一句话[/color:24a4bc6f9e]应当还是不一样的。 我们可以深入讨论一个命令的用法, 可以找出解决一个问题的高效的方案。 :d:d 呵呵,全凭大家努力! 【查看......


snmp+mrtg实现对局域网内的linuxServer的监控

上回看了platinum的"mrtg能做些什么"贴子,很受启发,于是也试着做了一个。但当时对snmpd不是很熟,所以没有做成功,后来仔细看了一下snmd的有关文章与rh中的/etc/snmp/snmpd.conf文件,发现用snmp+mrtg可以很好的实现对局域网内服务器状态的监控。 【相关文章:寻求redhat 9下sis315显卡驱

【扩展阅读:How to transfer file

    现在就以用snmp+mrtg监控一台局域网内的redhat机器(ip:192.168.13.103)的网卡、内存、cpu、diskio为例子,谈一下如何实现。基本的法办就是用一台redhat监控机器(ip:192.168.13.105),通过snmpwalk命令去抓目标服务器的状态数据,然后用mrtg画出图来。 【扩展信息:装redhat作服务器的流程怎麽样的阿?

    1、首先我们要把目标snmpd.conf文件的配好。这是用snmpwalk命令一抓取数据的关健。下面是目标机器(ip:192.168.13.103)上的/etc/snmp/snmpd.conf文件部份内容,红色的部份是我对snmpd.conf所做的改动。

   [root@wy1 root]# cat /etc/snmp/snmpd.conf 

####

# first, map the community name "public" into a "security name"

#       sec.name  source          community

com2sec notconfiguser  default       public  #定义community名称为 public,映射到安全名 notconfiguser。

####

# second, map the security name into a group name:

#       groupname      securitymodel securityname

group   notconfiggroup v1           notconfiguser   #定义安全用户名notconfiguser映射到notconfiggroup组。

group   notconfiggroup v2c           notconfiguser

####

# third, create a view for us to let the group have rights to: #定义一个view,来决定notconfiguser可以操作的范围。

# make at least  snmpwalk -v 1 localhost -c public system fast again. #定义可查看的snmp的范围。

#       name           incl/excl     subtree         mask(optional)

view    systemview    included   .1.3.6.1.2.1.1

view    systemview    included   .1.3.6.1.2.1.25.1.1

[color=red:0e8fbf9ac6]view all   included  .1[/color:0e8fbf9ac6]

####

# finally, grant the group read-only access to the systemview view. #给notconfiggroup组所定义view名 all 以只读权限。

#       group          context sec.model sec.level prefix read   write  notif

[color=red:0e8fbf9ac6]access  notconfiggroup ""      any       noauth    exact  all  none none[/color:0e8fbf9ac6]#access  notconfiggroup ""      any       noauth    exact  mib2 none none

# -----------------------------------------------------------------------------

# here is a commented out example configuration that allows less


...   下一页
    摘要: 单个ip的命令是 iptables -i input -s 211.1.0.0 -j drop 不知道如何封整个段,和整个指定的部分段? 还想请问下 我想让服务器每次启动就自动运行 iptables -i input -s 211.1.0.0 -j drop 这命令把此ip给封掉 改加入到哪里呢? 【查看cu论坛原帖】【添加到收藏夹】【关闭】 platinum 回复于:2004-01-01 01:14:13 ipta......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE