Aleksey, don't mess CPU utilization with load average, these two are pretty different. While I doubt seriously that LA could rise to 100 while CPU usage is 6% only, they aren't directly connected.
2011/5/15 Aleksey Tsalolikhin <atsaloli.t...@gmail.com>: > 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 > -- SY, Seva Gluschenko. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine