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
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine