[Pacemaker] emulate crm_mon output by xsltproc'essing cibadmin -Ql

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Mar 1 10:01:27 EST 2011


Hi Lars,

On Tue, Mar 01, 2011 at 12:31:24PM +0100, Lars Ellenberg wrote:
> I just found something I apparently tried to code up for fun
> during xmas holidays.
> 
> Any cib guru around to point out
> what information in the cib should be shown?

The stuff which is not interesting for users:

transition-key
transition-magic
crm-debug-origin
op-digest

> Can the information that crm_mon provides
> be produced by xslt alone, or does it actually _need_
> to do all those things it does, internally?
> 
> If this can be done,
> I think it would be quite useful to have various (customizable?)
> transformation style sheets to generate various details.

It could probably be useful. For instance, what was your motivation?

> use the proof of concept:
> cibadmin -Ql | xsltproc mycrm_mon.xsl - | less
> 
> Any xslt guru around to actually make this useful?

Looks useful enough to me. Though crm_mon can show operations
details (crm status ops and crm status timing).

Thanks,

Dejan

> Feel free to comment, improve, ...
> ... or ignore ;-)
> 
> -- 
> : Lars Ellenberg
> : LINBIT | Your Way to High Availability
> : DRBD/HA support and consulting http://www.linbit.com


> _______________________________________________
> 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://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker





More information about the Pacemaker mailing list