[Pacemaker] handling snmp trap with crm_mon
Junko IKEDA
ikedaj at intellilink.co.jp
Mon Mar 2 08:11:40 UTC 2009
> I just tried again, and its working here.
> How are you checking for traps?
I got it!
I should have to set this;
# echo "disableAuthorization yes" > /etc/snmp/snmptrapd.conf
Sorry for lacking of snmp knowledge...
By the way, I can get the resource's status via snmp,
How about node's status?
Thanks,
Junko
>
> I get the following:
>
> c001n05:~ # echo "disableAuthorization yes" > /etc/snmp/snmptrapd.conf
> c001n05:~ # sudo snmptrapd -f -a -e -Le -d -Drun:shell,snmptrapd:auth
> registered debug token run:shell, 1
> registered debug token snmptrapd:auth, 1
> NET-SNMP version 5.4.2.1
>
> Received 208 bytes from UDP: [10.10.222.159]->[10.10.222.157]:-29306
> snmptrapd:auth: authorization turned off
> snmptrapd:auth: authorization turned off: not checking
> snmptrapd:auth: authorization turned off
> 2009-03-02 08:40:21 c001n03.suse.de [UDP:
> [10.10.222.159]->[10.10.222.157]:-29306]:
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1235979384) 143
> days, 1:16:33.84 SNMPv2-MIB::snmpTrapOID.0 = OID:
> SNMPv2-SMI::enterprises.32723.1 SNMPv2-SMI::enterprises.32723.1.2 =
> STRING: "rsc_c001n01" SNMPv2-SMI::enterprises.32723.1.1 = STRING:
> "c001n01" SNMPv2-SMI::enterprises.32723.1.3 = STRING:
> "stop" SNMPv2-SMI::enterprises.32723.1.4 = STRING:
> "ok" SNMPv2-SMI::enterprises.32723.1.6 = INTEGER:
> 0 SNMPv2-SMI::enterprises.32723.1.7 = INTEGER:
> 0 SNMPv2-SMI::enterprises.32723.1.5 = INTEGER: 0
> snmptrapd:auth: authorization turned off
>
> Received 205 bytes from UDP: [10.10.222.159]->[10.10.222.157]:-29306
> snmptrapd:auth: authorization turned off
> snmptrapd:auth: authorization turned off: not checking
> snmptrapd:auth: authorization turned off
> 2009-03-02 08:40:21 c001n03.suse.de [UDP:
> [10.10.222.159]->[10.10.222.157]:-29306]:
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1235979384) 143
> days, 1:16:33.84 SNMPv2-MIB::snmpTrapOID.0 = OID:
> SNMPv2-SMI::enterprises.32723.1 SNMPv2-SMI::enterprises.32723.1.2 =
> STRING: "migrator" SNMPv2-SMI::enterprises.32723.1.1 = STRING:
> "c001n02" SNMPv2-SMI::enterprises.32723.1.3 = STRING:
> "stop" SNMPv2-SMI::enterprises.32723.1.4 = STRING:
> "ok" SNMPv2-SMI::enterprises.32723.1.6 = INTEGER:
> 0 SNMPv2-SMI::enterprises.32723.1.7 = INTEGER:
> 0 SNMPv2-SMI::enterprises.32723.1.5 = INTEGER: 0
> snmptrapd:auth: authorization turned off
>
> etc etc
>
>
> On Mon, Mar 2, 2009 at 08:32, Junko IKEDA <ikedaj at intellilink.co.jp>
wrote:
> >> > I tried this.
> >> > # crm_mon -S 192.168.16.28 -VVVVV
> >> >
> >> > but there is no log message both of ha-debug, syslog or stderr.
> >> > Is any installation failures?
> >>
> >> No. You'll get a big error message if you use -S and snmp support
> >> wasn't compiled in.
> >
> > I got the logs.
> > Log says, "ret = snmp_send(session, trap_pdu)" completed successfully.
> > but SNMP manager couldn't get any traps.
> >
> > Thanks,
> > Junko
> >
> > _______________________________________________
> > Pacemaker mailing list
> > Pacemaker at oss.clusterlabs.org
> > http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> >
> >
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list