[Pacemaker] handling snmp trap with crm_mon

Andrew Beekhof beekhof at gmail.com
Thu Feb 26 06:36:37 EST 2009


On Thu, Feb 26, 2009 at 09:29, Junko IKEDA <ikedaj at intellilink.co.jp> wrote:
> Hi,
>
> Thanks for reply.
>
>> were there any errors from crm_mon?  Try invoking with some -V options
>> to see what its doing.
>
> 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.

>
>>
>> > When I call the following command from Pacemaker server(192.168.16.204),
>> > SNMP manager can notice it.
>> >
>> > * Pacemaker server;
>> > # snmptrap -v 2c -c public 192.168.16.18 '' .1.3.6.1.2.1.1.3.0
>> >
>> > * SNMP manager(/var/log/snmptrap.log);
>> > snmptrapd[13151]: 2009-02-25 15:40:30 <UNKNOWN> [UDP:
>> > [192.168.16.204]:32772]: DISMAN-EVENT-MIB::sysUpTimeInstance =
> Timeticks:
>> > (18192695) 2 days, 2:32:06.95      SNMPv2-MIB::snmpTrapOID.0 = OID:
>> > DISMAN-EVENT-MIB::sysUpTimeInstance
>> >
>> > Does crm_mon also use LINUX-HA-MIB.mib as the same as hbagent?
>>
>> No.  Right now it doesn't provide one.  I need to do something about that
> :(
>
> Are you planning to provide it if you have time to do that?

Definitely

>
>> > I think SNMP function is also included in pacemaker-pygui, is there any
>> > differences between pygui and crm_mon?
>>
>> Lots :-)
>
> I see.
> Our customer has already run heartbeat with hbagent,
> so their operators would want to get the same snmp trap message as hbagent.

The more I understood how the existing MIB was set up, the less I liked it.
I plan to take a different path.

That and we have a different namespace allocation from ICANN which
would make reusing it difficult.

> If crm_mon can also take LINUX-HA-MIB.mib, it would be great.
> And surely, if crm_mon has the additional fine feature,
> it would be wonderful!
> I find crm_mon's "daemon" option, it's good :)
>
> Thanks,
> Junko
> - Show quoted text -
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>




More information about the Pacemaker mailing list