renayama19661014
2014-07-24 01:54:45 UTC
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.
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.
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.
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.