[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Cf_lastseen.db
From: |
Ed Brown |
Subject: |
RE: Cf_lastseen.db |
Date: |
Thu, 16 Mar 2006 17:03:10 -0700 |
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: help-cfengine-bounces+lionel.ostric=arm.com@gnu.org
> > [mailto:help-cfengine-bounces+lionel.ostric=arm.com@gnu.org]
> > On Behalf Of Lionel Ostric
> > Sent: 17 March 2006 00:01
> > To: Ed Brown
> > Cc: help-cfengine@gnu.org
> > 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:ebrown@lanl.gov]
> > > Sent: 16 March 2006 21:49
> > > To: Lionel Ostric
> > > Cc: help-cfengine@gnu.org
> > > 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
> > >