[Pacemaker] [Question] About snmp trap of crm_mon.
Andrew Beekhof
andrew at beekhof.net
Fri Jul 25 05:02:57 UTC 2014
On 24 Jul 2014, at 6:32 pm, Andrew Beekhof <andrew at beekhof.net> wrote:
>
> On 24 Jul 2014, at 11:54 am, renayama19661014 at ybb.ne.jp wrote:
>
>> Hi All,
>>
>> We were going to confirm snmptrap function in crm_mon of Pacemaker1.1.12.
>> However, crm_mon does not seem to support a message for a new difference of cib.
>
> dammit :(
Perhaps someone feels like testing this:
https://github.com/beekhof/pacemaker/commit/3df6aff
Otherwise I'll do it on monday
>
>>
>>
>> void
>> crm_diff_update(const char *event, xmlNode * msg)
>> {
>> int rc = -1;
>> long now = time(NULL);
>> (snip)
>> if (crm_mail_to || snmp_target || external_agent) {
>> /* Process operation updates */
>> xmlXPathObject *xpathObj = xpath_search(msg,
>> "//" F_CIB_UPDATE_RESULT "//" XML_TAG_DIFF_ADDED
>> "//" XML_LRM_TAG_RSC_OP);
>> int lpc = 0, max = numXpathResults(xpathObj);
>> (snip)
>>
>> Best Regards,
>> Hideo Yamauch.
>>
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140725/4d029351/attachment-0004.sig>
More information about the Pacemaker
mailing list