On Fri, Jun 20, 2008 at 10:53:04AM -0400, Meyer, Fred H (Fred) wrote: > How do you configure an unmanaged resource in the CIB? I have > been looking at the Configuration Explained doc.
Just set its is_managed attribute to false. You'll also need to create a script for heartbeat to invoke, but that's not too difficult. e.g. <primitive id="squid" class="ocf" type="squid" provider="local" is_managed="false"> Note that unmanaged resources don't seem to be usable at the moment, so you probably don't want to actually do this unless you want to test and/or bugfix. > I am interested in having the Mon utility monitor the server's > hardware using OpenIPMI and alert Heartbeat when failure > conditions are detected. > > I expected to create a Mon alert script that would execute a cib > admin command to change the value of a score_attribute variable of > a rsc_location rule. > > Is there another way to do this with an unmanaged resource? I doubt it, because as Andrew says the current heartbeat version doesn't start monitors for unmanaged resources, so the only way to get it to run monitors is to make it a managed resource, which will then result in heartbeat trying to start and stop it on a particular node in the cluster. I'm planning to do something similar to your plan, having a separate process do some polling of the service and update the CIB itself. _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
