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) |