On Wed, 8 Jan 2014 13:33:28 +1100 Andrew Beekhof <and...@beekhof.net> wrote:
> > # crm configure primitive ClusterMon ocf:pacemaker:ClusterMon > > params user="root" update="10" extra_options="-E /root/monitor.sh > > -e 192.168.100.188" op monitor on-fail="restart" interval="60" > > > > Entity: line 24: element nvpair: Relax-NG validity error : Type ID > > doesn't allow value > > 'ClusterMon-instance_attributes-/root/monitor.sh' > > Looks like crmsh is having trouble parsing your command line. More recent versions of crmsh have a configurable option 'add_quotes' which, when enabled (and should be enabled by default), works around bash de-quoting arguments with spaces in them. With this option enabled, the given command ought to parse correctly. I'd recommend upgrading to crmsh 1.2.6. It can be downloaded from OBS: https://build.opensuse.org/package/show/network:ha-clustering:Stable/crmsh Another option is to circumvent bash completely: crm configure <<END primitive ClusterMon ocf:pacemaker:ClusterMon \ params user="root" update="10" \ extra_options="-E /root/monitor.sh -e 192.168.100.188" \ op monitor on-fail="restart" interval="60" END -- // Kristoffer Grönlund // kgronl...@suse.com
signature.asc
Description: PGP signature
_______________________________________________ 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