Here's how I did it in cfengine 3. I don't think "repair_failed" is the most
appropriate mnemonic here, but it works.

http://serverfault.com/questions/124344/how-do-i-add-a-low-disk-space-class-to-cfengine3-if-my-disk-is-more-than-90-full

bundle agent storage
{
storage:
    "/" volume => low_disk_space;

reports:
    ohno::
       "Oh noes!";
}

body volume low_disk_space {
        freespace => "10%";

        repair_failed => { "ohno" };
}
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to