I have got the SNMP subagent from pacemaker-mgmt 2.1.2 working with corosync 2.3 and pacemaker 1.1.10.
Some modification are implemented because of wrong attach method to CIB and one nasty bug, where hbagent crashes, when it does not find an operation on parsing a change.
As for all versions of hbagent with corosync it provides only the resource table of LINUX-HA MIB, but not the node tabel
Also i have created a very simple resource agent for hbagent to manage it as cluster resource (monitor method looks for SNMP result, so it can detect hanging hbagent, but still needs improvement).
When attaching a cluster IP address to this resource, cluster resources can be monitored through this address as long as resource is running anywhere.
The plan is (when i find time to do) to integrate the SNMP table part (which works quite well) of this agent into crm_mon with an option, to let crm_mon (when running as daemon) attaching to SNMP through AgentX.
Rainer
 
Gesendet: Mittwoch, 22. Januar 2014 um 11:39 Uhr
Von: "Michael Schwartzkopff" <m...@sys4.de>
An: "Andrey Groshev" <gre...@yandex.ru>, pacemaker@oss.clusterlabs.org
Betreff: Re: [Pacemaker] Announce: SNMP agent for pacemaker
Am Mittwoch, 22. Januar 2014, 14:31:57 schrieben Sie:
> 22.01.2014, 12:43, "Michael Schwartzkopff" <m...@sys4.de>:
> > Hi,
> >
> > I am working on a SNMP agent for pacemaker. it is written in perl. At the
> > moment it is in an alpha stadium.
>
> On each node local call crm_mon/crm_resource ?

Partly yes. But in most cases I read the CIB and parse the config and status
part. I included memshare caching to minimize impact.

Mit freundlichen Grüßen,

Michael Schwartzkopff

--
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64, +49 (162) 165 0044
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein_______________________________________________
Pacemaker mailing list: Pacemaker@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@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

Reply via email to