Chinaunix首页 | 论坛 | 博客
  • 博客访问: 25881506
  • 博文数量: 271
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 3358
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-12 15:28
文章分类

全部博文(271)

文章存档

2010年(71)

2009年(164)

2008年(36)

我的朋友

分类: LINUX

2010-05-17 16:46:53

Solution
If you want to use net-snmp to provide information on your Red Hat Enterprise Linux 5 cluster you need to install the cluster-snmp RPM on a node in your cluster. This will install the MIB required to query the Red Hat Enterprise Linux 5 cluster node.
 
yum install cluster-snmp
For a 32bit machine, add the following to /etc/snmp/snmpd.conf:

dlmod RedHatCluster    /usr/lib/cluster-snmp/libClusterMonitorSnmp.so
view    systemview    included    REDHAT-CLUSTER-MIB:RedHatCluster
For a 64bit machine, add the following to /etc/snmp/snmpd.conf:

dlmod RedHatCluster    /usr/lib64/cluster-snmp/libClusterMonitorSnmp.so
view    systemview    included    REDHAT-CLUSTER-MIB:RedHatCluster
You can then query your cluster node for information using the following query:

snmpwalk -v 1 -c testuser localhost REDHAT-CLUSTER-MIB::RedHatCluster
For more information on cluster-snmp please see the documentation in the /usr/share/doc/cluster-snmp-0.12.1/ directory.
阅读(1821) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~