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
snmpdservice is required and acts as the master agent. Since thefoghornservice is the subagent and uses the AgentX protocol, you must add the following line to the/etc/snmp/snmpd.conffile to enable AgentX support:master agentx
master agentxCopy 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.conffile:trap2sink host
trap2sink hostCopy to Clipboard Copied! Toggle word wrap Toggle overflow For more information on notification handling, see thesnmpd.confman page. - Make sure that the
snmpddaemon is enabled and running by executing the following commands:chkconfig snmpd on service snmpd start
# chkconfig snmpd on # service snmpd startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If the
messagebusdaemon is not already enabled and running, execute the following commands:chkconfig messagebus on service messagebus start
# chkconfig messagebus on # service messagebus startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Make sure that the
foghorndaemon is enabled and running by executing the following commands:chkconfig foghorn on service foghorn start
# chkconfig foghorn on # service foghorn startCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Execute the following command to configure your system so that the
COROSYNC-MIBgenerates SNMP traps and to ensure that thecorosync-notifyddaemon 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 startCopy 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.