Thomas Glanzmann escribió:
Hello,
I would like to write a script similiar to pingd that is spawnd and
populates a value in the cib that I can build a rule on. What do I have
to do to obtain the above. Concrete questions are:
- What do I have to put in the cib to spawn such an 'agent'?
- How do I propagate the value into the cib?
With attrd_updater. This tool can update a attribute and then you can
use it on a rule. Example (attribute name is mysql_running):
/usr/sbin/attrd_updater -n mysql_running -d 5s -v 0
Thomas
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems