Hi,

In executing the following bundle:

   bundle agent test {

     vars:

            "junkvar" int =>
   readintarray("loadaverage","/proc/loadavg","^ "," ","2","99");

     classes:
            "loadavgsafe" expression =>
   islessthan("$(loadaverage[1])","1");


     reports:

           loadavgsafe::
            "Load average is safe";
   }


cf-agent reported:

    cf3 Aborting read: file /proc/loadavg has zero bytes



It's true that /proc/loadavg is reported as being 0 bytes but that's a dimension of the /proc filesystem. The file does contain data which I'd like to utilize.

   [inputs]# ll /proc/loadavg
   -r--r--r-- 1 root root 0 Apr 13 14:43 /proc/loadavg
   [inputs]# cat /proc/loadavg
   2.01 2.10 1.81 3/220 21768

I'm thinking of filing this as a minor bug unless someone can point out a work-around.

Thanks,
Frans

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

Reply via email to