[Pacemaker] SNMP monitoring
Proskurin Kirill
k.proskurin at corp.mail.ru
Wed Jul 6 15:17:14 CET 2011
On 07/05/2011 12:05 PM, Raoul Bhatia [IPAX] wrote:
> Proskurin, if you get snmp working, would you kindly post your
> configuration to the mailinglist?
>
> the snmp-topic has popped up several times and it would be nice if
> we got a working config in the mailinglist archive - or better: in the
> wiki - as a reference.
Ok I get it.
You need:
snmptrapd
pacemaker with snmp support
snmptrapd.conf:
disableAuthorization yes
traphandle SNMPv2-SMI::enterprises.32723.1.1 /tmp/trap.sh
traphandle SNMPv2-SMI::enterprises.32723.1.2 /tmp/trap.sh
traphandle SNMPv2-SMI::enterprises.32723.1.3 /tmp/trap.sh
traphandle SNMPv2-SMI::enterprises.32723.1.4 /tmp/trap.sh
traphandle SNMPv2-SMI::enterprises.32723.1.5 /tmp/trap.sh
traphandle SNMPv2-SMI::enterprises.32723.1.6 /tmp/trap.sh
traphandle SNMPv2-SMI::enterprises.32723.1.7 /tmp/trap.sh
/tmp/trap.sh - Any sh script to parse result.
For example:
#!/bin/sh
read host
read ip
while read oid val
do
echo -e "$host $ip == $oid == $val\n" >> /tmp/trap.out
done
crm_mon --daemonize -S snmptrapd-ip-addr -- to send traps.
OR you can use your monitoring system and send traps directly to it.
P.S. This works for me on CentOS 5.x with pacemaker 1.1.5 and snmp-5.3.2.
--
Best regards,
Proskurin Kirill
More information about the Pacemaker
mailing list