Version: Community Edition 3.1.0
os: debian

I want to select proccess that have as parent "1". So we can watch for 
example ntpd.

I have this process_select body:
{
         ppid            => irange("1", "1");
         process_result  => "ppid";
}


But this fails on our systems:
Setting local variable "match.0" context; $(0) = ntpd
SelectProcess(ntp       7391  0.0  0.0  28240  1700 ?        Ss   16:00 
0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 108:111)
SplitProcLine(ntp       7391  0.0  0.0  28240  1700 ?        Ss   16:00 
0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 108:111)

The parent process is '?' for cfengine3. So this fails.  I suspect that the 
ps command for debian systems is not correct.



-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to