On 19 Jan 2010, at 4:19 pm, Guillaume Rousse wrote:

> Hello list.
>
> I'm trying to keep track of cfengine execution time, in order to  
> monitor
> policy changes effect.
>
> The easiest way seems to add start/stop messages in the logs.
>
> If invocating cfagent from a cron task, it's quite simple, but doesn't
> allow to discriminate between update and main phase:
> 1 * * * * logger "cfengine start"; cfagent; logger "cfengine stop"

Doesn't SplayTime make that a rather meaningless measurement?

> maybe they are better/easier ways to do it ? cfengine has a lot of
> files under its state directory, but none seems to have the relevant
> informations.

cfshow -p

can give you some performance information for particular parts of your  
config, but doesn't seem to include the complete runtime.

Tim


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to