Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates > by-pkgid > 8207a98f342c712e18ab1f2fad450fa5 > files > 6

cluster-snmp-0.18.1-1.fc13.i686.rpm


net-snmp configuration:

Refer to net-snmp documentation for ACL configuration (/etc/snmp/snmpd.conf is commented as well).
To load cluster MIB's shared library, add following line to /etc/snmpd/snmp.conf
dlmod RedHatCluster /usr/lib/cluster-snmp/libClusterMonitorSnmp.so


Sample configurations:

1. cluster info is accessible from anywhere using "public" community (add the following to default /etc/snmp/snmpd.conf):

######################################
## cluster monitoring configuration ##
######################################

dlmod RedHatCluster	/usr/lib/cluster-snmp/libClusterMonitorSnmp.so
view	systemview	included	REDHAT-CLUSTER-MIB:redhatCluster

######################################
##     cluster monitoring done      ##
######################################



2. cluster info is accessible from localhost and 192.168.0.0/16 using "cluster" community:

######################################
## cluster monitoring configuration ##
######################################

dlmod RedHatCluster /usr/lib/cluster-snmp/libClusterMonitorSnmp.so

#       sec.name        source          community
com2sec	local		localhost	cluster
com2sec	localnet	192.168.0.0/16	cluster

#	groupName	securityModel	securityName
group	clusterGroup	v1		local
group	clusterGroup	v2c		local
group	clusterGroup	v1		localnet
group	clusterGroup	v2c		localnet

#	name		incl/excl	subtree					mask(optional)
view	clusterview	included	REDHAT-CLUSTER-MIB:RedHatCluster

#	group		context sec.model	sec.level	prefix	read		write	notif
access	clusterGroup	""	any		noauth		prefix	clusterview	none	none

######################################
##     cluster monitoring done      ##
######################################



net-snmp client configuration:
Place REDHAT-MIB and REDHAT-CLUSTER-MIB into ~/.snmp/mibs/, and query cluster using:
snmpwalk -v 2c -c COMMUNITY NODENAME REDHAT-CLUSTER-MIB::redhatCluster
(replace NODENAME with the hostname of one of cluster nodes running software)