help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cf_lastseen.db


From: Brendan Strejcek
Subject: Re: Cf_lastseen.db
Date: Fri, 17 Mar 2006 15:06:55 -0600
User-agent: Mutt/1.5.6+20040818i

This is how I use FriendStatus on my policy server:
________________________________________________________________________

# This fragment, only run on the policy server, generates warnings
# regarding cfengine clients that have connected before, but have not
# connected withing the past 24 hours (a sign that there is likely a
# problem with the client in question). Records for clients that have
# not connected for 14 days are purged from the database, so a down host
# should generate no more that two such warnings.

control:
    # Clients unseen for 14 days purged from cf_lastseen.db
    # http://www.cfengine.org/docs/cfengine-Reference.html#lastseenexpireafter
    LastSeenExpireAfter = ( 14 )

alerts:
    policyhost::
        # Warn about hosts that have not connected within the last 24 hours
        # http://www.cfengine.org/docs/cfengine-Reference.html#alerts
        FriendStatus(24)
            ifelapsed=10080 # Warn no more often than once per week




reply via email to

[Prev in Thread] Current Thread [Next in Thread]