11.2. Configuring SNMP with the Red Hat High Availability Add-On
To configure SNMP with the Red Hat High Availability Add-On, perform the following steps on each node in the cluster to ensure that the necessary services are enabled and running.
- To use SNMP traps with the Red Hat High Availability Add-On, the
snmpd
service is required and acts as the master agent. Since thefoghorn
service is the subagent and uses the AgentX protocol, you must add the following line to the/etc/snmp/snmpd.conf
file to enable AgentX support:master agentx
master agentx
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To specify the host where the SNMP trap notifications should be sent, add the following line to the to the
/etc/snmp/snmpd.conf
file:trap2sink host
trap2sink host
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For more information on notification handling, see thesnmpd.conf
man page. - Make sure that the
snmpd
daemon is enabled and running by executing the following commands:chkconfig snmpd on service snmpd start
# chkconfig snmpd on # service snmpd start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - If the
messagebus
daemon is not already enabled and running, execute the following commands:chkconfig messagebus on service messagebus start
# chkconfig messagebus on # service messagebus start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Make sure that the
foghorn
daemon is enabled and running by executing the following commands:chkconfig foghorn on service foghorn start
# chkconfig foghorn on # service foghorn start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Execute the following command to configure your system so that the
COROSYNC-MIB
generates SNMP traps and to ensure that thecorosync-notifyd
daemon is enabled and running:echo "OPTIONS=\"-d\" " > /etc/sysconfig/corosync-notifyd chkconfig corosync-notifyd on service corosync-notifyd start
# echo "OPTIONS=\"-d\" " > /etc/sysconfig/corosync-notifyd # chkconfig corosync-notifyd on # service corosync-notifyd start
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
After you have configured each node in the cluster for SNMP and ensured that the necessary services are running, D-bus signals will be received by the
foghorn
service and translated into SNMPv2 traps. These traps are then passed to the host that you defined with the trapsink
entry to receive SNMPv2 traps.