[Pacemaker] [Question] About snmp trap of crm_mon.

Brett Moser brett.moser at gmail.com
Wed Apr 22 18:46:49 UTC 2015


I just came across this bug on the pacemaker-1.1.12-4.el6.x86_64.rpm that
comes with the RHEL6 / CentOS 6.6 distro.    I have just applied  the
crm_mon.c patch to the SRPM and built a pacemaker-1.1.12-5.el6.x86_64.rpm
for our internal use.   If anyone is interested in this I can make it
available.

regards,
-Brett Moser


On Sun, Jul 27, 2014 at 10:13 PM, Andrew Beekhof <andrew at beekhof.net> wrote:

> Will do. Thanks for testing!
>
> On 28 Jul 2014, at 1:50 pm, renayama19661014 at ybb.ne.jp wrote:
>
> >
> > Hi Andrew,
> >
> >>> Perhaps someone feels like testing this:
> >>>   https://github.com/beekhof/pacemaker/commit/3df6aff
> >>>
> >>> Otherwise I'll do it on monday
> >
> >
> > I confirmed the output of the SNMP trap of the resource and the SNMP
> trap of STONITH.
> > By your correction, the crm_mon command came to send trap.
> >
> > Please reflect a correction in Master repository.
> >
> > Best Regards,
> > Hideo Yamauchi.
> >
> >
> >
> > ----- Original Message -----
> >> From: "renayama19661014 at ybb.ne.jp" <renayama19661014 at ybb.ne.jp>
> >> To: Andrew Beekhof <andrew at beekhof.net>; The Pacemaker cluster
> resource manager <pacemaker at oss.clusterlabs.org>
> >> Date: 2014/7/25, Fri 14:21
> >> Subject: Re: [Pacemaker] [Question] About snmp trap of crm_mon.
> >>
> >> Hi Andrew,
> >>
> >>> Perhaps someone feels like testing this:
> >>>   https://github.com/beekhof/pacemaker/commit/3df6aff
> >>>
> >>> Otherwise I'll do it on monday
> >>
> >>
> >> An immediate correction, thank you.
> >> I confirm snmp by the end of Monday.
> >>
> >> Many Thanks!
> >> Hideo Yamauchi.
> >>
> >>
> >>
> >> ----- Original Message -----
> >>> From: Andrew Beekhof <andrew at beekhof.net>
> >>> To: renayama19661014 at ybb.ne.jp; The Pacemaker cluster resource
> manager <pacemaker at oss.clusterlabs.org>
> >>> Cc:
> >>> Date: 2014/7/25, Fri 14:02
> >>> Subject: Re: [Pacemaker] [Question] About snmp trap of crm_mon.
> >>>
> >>>
> >>> 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
> >>>>
> >>>
> >>
> >> _______________________________________________
> >> 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
> >>
> >>
> >>
>
>
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20150422/9cbc389a/attachment-0003.html>


More information about the Pacemaker mailing list