snmpd service is required and acts as the master agent. Since the foghorn 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
/etc/snmp/snmpd.conf file:
trap2sink hostsnmpd.conf man page.
snmpd daemon is enabled and running by executing the following commands:
#chkconfig snmpd on#service snmpd start
messagebus daemon is not already enabled and running, execute the following commands:
#chkconfig messagebus on#service messagebus start
foghorn daemon is enabled and running by executing the following commands:
#chkconfig foghorn on#service foghorn start
COROSYNC-MIB generates SNMP traps and to ensure that the corosync-notifyd daemon is enabled and running:
#echo "OPTIONS=\"-d\" " > /etc/sysconfig/corosync-notifyd#chkconfig corosync-notifyd on#service corosync-notifyd start
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.