Thank you, an example is very helpful! It would be good to add this to the wiki!
-Ed On Thu, 2006-03-16 at 23:38 +0000, Lionel Ostric wrote: > So here the answer : > > On the policyhost, in the 'control' section define > LastSeenExpireAfter = ( 10 ) > > Then in the 'alerts' section something like : > > alerts: > myclass:: > FriendStatus(240) > > And call 'cfagent -q -Dmyclass' and it will tidy the db for you removing > entries that are more than 10 days old (well for which the machine > didn't connect for more than 10 days). > > I tested and it worked. > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > On Behalf Of Lionel Ostric > > Sent: 17 March 2006 00:01 > > To: Ed Brown > > Cc: [email protected] > > Subject: RE: Cf_lastseen.db > > > > I just had a look at the source code and it seems that the > > cleaning of the db is ensured by the FriendStatus fucntionality > > > > However I did not test it so if someone knows how this works .... > > > > > -----Original Message----- > > > From: Ed Brown [mailto:[EMAIL PROTECTED] > > > Sent: 16 March 2006 21:49 > > > To: Lionel Ostric > > > Cc: [email protected] > > > Subject: RE: Cf_lastseen.db > > > > > > On Thu, 2006-03-16 at 20:26 +0000, Lionel Ostric wrote: > > > > I'm doing that for the same reason ... (using cfshow to get > > > the data > > > > out of the db) > > > > > > On a more careful reading of the docs, lastseenexpireafter > > looks like > > > a cfagent configuration, not for cfservd. Will try some more > > > experimenting... > > > > > > -Ed > > > _______________________________________________ Help-cfengine mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-cfengine
