splitting a "blank" line

2010-03-11 Thread Justin Lloyd
I want to do the following (unimportant details omitted) and so far I'm stumped: bundle agent test { vars: "output" string => execresult("somecommand", "noshell"); "netgroups" slist => splitstring("$(output)", "\s+", 20); files: "/etc/passwd" edit_lin

Re: cf-execd & cf-monitord - Memory leaks?

2010-03-11 Thread Eystein Måløy Stenberg
The agent detaches from its parent and can kill it with no problems. --Eystein On 03/11/2010 08:51 PM, Lebel, Marco wrote: > Glad that you are suggesting this since I was playing with the idea but > before I go ahead and do it I have the following question: > > If the process running cf-agent ki

RE: Defining classes using "dist"

2010-03-11 Thread Justin Lloyd
I'm not so sure about your second possible expectation, but I was thinking of the first, that only one such promise would exist. I can, however, see an argument for any or all of a dist's class existing at any given time, rather than being mutually exclusive, as it's really a matter of personal int

Re: Defining classes using "dist"

2010-03-11 Thread Daniel V Klein
This looks like a bug - although reading the code, I am not sure where it is. Even setting the persist time to 0 doesn't change things, but what I am seeing is not what I'd expect. I would expect either "n% of the time, you will see exactly one class_n" or else "n% of the time, you will see all th

RE: cf-execd & cf-monitord - Memory leaks?

2010-03-11 Thread Lebel, Marco
Glad that you are suggesting this since I was playing with the idea but before I go ahead and do it I have the following question: If the process running cf-agent kills the cf-execd parent process do I not shoot myself down since killing the parent usually means killing the children hence I wil

Re: process miscounting?

2010-03-11 Thread Matt Richards
Primarily on AIX, I have not noticed the issue on other OS'es (I do not have Solaris in the mix, but that will be soon). 2010/3/11 : > Matt what types of systems do you see this on?   I've only seen it on a > Sparc Solaris 10 host. ___ Help-cfengine ma

RE: Defining classes using "dist"

2010-03-11 Thread Justin Lloyd
Mark, I just re-read the documentation on this (since I'm going back to fill in comments in my policy files) and noticed that the notes for dist say that it assigns "one generic class (always) and ONE additional class" (emphasis mine), e.g. my_dist and my_dist_10. That makes it sound like the resu

Re: cf-execd & cf-monitord - Memory leaks?

2010-03-11 Thread Mark Burgess
Incidentally, as a work around you can simply get cf-agent to restart cf-execd once a week or once per day for that matter. M Francoeur, Louis wrote: > After installing 3.0.4, we let cfengine run for almost 24 hours > and it looks like we still have a memory leak. > > Wed Mar 10 14:13:13 EST

Re: process miscounting?

2010-03-11 Thread NWatson
Given Matt's input I'm inclined to think that the issue in how cf-agent gets the process list or how is matches them. I spent the morning try to reproduce this in a controlled manner but failed. I'm out of ideas at the moment and lack the C skill to do any serious code diving. Matt what types

Re: process miscounting?

2010-03-11 Thread Matt Richards
I do not run cf-execd from a cron job directly, I use cf-agent (however, that could spawn a cf-execd). I do run cf-execd as a daemon. 50 * * * * /var/cfengine/bin/cf-agent -KD verify_cf_procs The -D verify_cf_procs is a class to just check the cfengine processes to make sure they are running, and

Re: process miscounting?

2010-03-11 Thread NWatson
Matt Richards wrote on 2010-03-10 15:05:32: > I have seen this behavior as well. Not very common, but it happens > every now and then. Matt, Do you call cf-execd from a cron job? If so can you please provide your cron entry. Sincerely, -- Neil Watson 416-673-3465 CONFIDENTIALITY WARNING

Re: cf-execd & cf-monitord - Memory leaks?

2010-03-11 Thread Mark Burgess
If you are able to trace or diagnose it further, please let me know. I don't see this kind of growth in monitord and we have seen big improvements in cf-execd. So far we have not been able to explain the source of the leaks. Francoeur, Louis wrote: > After installing 3.0.4, we let cfengine run

RE: cf-execd & cf-monitord - Memory leaks?

2010-03-11 Thread Francoeur, Louis
After installing 3.0.4, we let cfengine run for almost 24 hours and it looks like we still have a memory leak. Wed Mar 10 14:13:13 EST 2010 2076K cf-execd Thu Mar 11 13:04:28 EST 2010 4508K cf-execd Louis -Original Message- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine

Re: Linux 3.0.4 binaries

2010-03-11 Thread Mark Burgess
We've been pretty busy these past weeks finishing our Nova release, so it will be probably in the coming week. Ingersoll, Robert wrote: > > Is there a schedule for when the Linux 3.0.4 binaries will be available > at cfengine.com? > > Thanks > > > ---

Linux 3.0.4 binaries

2010-03-11 Thread Ingersoll, Robert
Is there a schedule for when the Linux 3.0.4 binaries will be available at cfengine.com? Thanks The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination

Re: Undefining a class

2010-03-11 Thread Nicolas Charles
Found it, cancel_kept/repaired/notkept, which are new. Thank you Mark Mark Burgess wrote: > Yes, see classes body docs > > Nicolas Charles wrote: > >> Hi everyone, >> >> Is there a way to undefine a class, other than using a module ? I find >> myself in a situation where i'd like to undefine

Re: Cfengine Server Web Interface/Client!

2010-03-11 Thread Gus Tofwin
Hi Jan, Interesting page but I think its a bit old: June 23, 2003 9:48:27 PM was the last modified day of the page. Does anyone know of softclass manager like this? --gusto On Thu, Mar 11, 2010 at 6:05 AM, Jan Muhammad wrote: > Hi, > > I wonder is there web interface/client for Cfengine 2 exis

Cfengine Server Web Interface/Client!

2010-03-11 Thread Jan Muhammad
Hi, I wonder is there web interface/client for Cfengine 2 exist (it might be included in Cf3) which can connect to Cfengine server in the backend. I came accross this link ( http://eecs.oregonstate.edu/iis/cfengine-0.2/Docs/cfengine_manual.htm#_Toc44153913) which talks about a simple console-b

Re: Undefining a class

2010-03-11 Thread Mark Burgess
Yes, see classes body docs Nicolas Charles wrote: > Hi everyone, > > Is there a way to undefine a class, other than using a module ? I find > myself in a situation where i'd like to undefine a persistant class, and > cannot do it... > > Thank you ! > Nicolas >

Undefining a class

2010-03-11 Thread Nicolas Charles
Hi everyone, Is there a way to undefine a class, other than using a module ? I find myself in a situation where i'd like to undefine a persistant class, and cannot do it... Thank you ! Nicolas ___ Help-cfengine mailing list Help-cfengine@cfengine.org