Hi.  I am trying to think of an example of a policy that reacts to
environmental data collected by cf-monitord...

I thought I might do something with "diskfree" but there is already
"freespace" under "volume" that will warn if free space is too low.

Then I thought, how about I check CPU utilization, and if it is under
a certain threshold, we can start a program to donate CPU cycles to
SETI@home (or similar), and if CPU goes over another, top, threshold,
then we stop SETI@home program.   But $(mon.value_cpu) returns zero no
matter what my actual CPU utilization is.  I've opened bug
https://cfengine.com/bugtracker/view.php?id=612


I tried $(mon.value_loadavg) which is supposed to return kernel % CPU
utilization but it returns 100 when, according to vmstat, the system
CPU utilization percentage is closer to 6.


I still need an example of how Cfengine could react to environmental data.


Any suggestions, please?

Aleksey
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to