Forum: Cfengine Help
Subject: cf_lastseen adding old key?
Author: matter
Link to topic: https://cfengine.com/forum/read.php?3,20285,20285#msg-20285

Greetings,

I have this issue where an old key keeps creeping back into the lastseen 
database and I don't know how. I have a small program that dumps the lastseen 
database. I get this output (x.yy.zz.mm is the ip of the host in question):


key:-MD5=34d99abb937c81eed2c2af6dcc12c553 value:X.YY.ZZ.MM
key:-MD5=87ff187c8829701671b11bc52b706cea value:X.YY.ZZ.MM


I have another program that I use to purge the key from the lastseen database. 
I remove it and it comes back after some time. Running cf-report show the same 
information:


IP - MD5=34d99abb937c81eed2c2a         somehost.com      X.YY.ZZ.MM  @  not 
seen for (3.36) hrs, Av 0.00 +/- 0.00 hrs
IP - MD5=87ff187c8829701671b11         somehost.com      X.YY.ZZ.MM  @  not 
seen for (0.62) hrs, Av 0.00 +/- 0.00 hrs


It shows 3.36 hours, but I have seen it show 22 hours and other times as well. 
I purge the bad key, then I can connect back to the host fine, but a few hours 
later, it is back.

I tried everything, removing the lastseen database altogether, generating new 
key, change versions of cfengine from 3.0.3 all the way up to the lastest, but 
the invalid one never goes away. The bad key will be sent when trying to 
contact the host, so I have to mess with it daily to get it to work since I 
can't figure out what is going on.

cf-key shows the same info:
 

     X.YY.ZZ.MM somehost.com         MD5=34d99abb937c81eed2c2a 
     X.YY.ZZ.MM somehost.com         MD5=87ff187c8829701671b11 


I am using Berkely DB-5 if that makes a difference. I am at my wits end trying 
to figure this one out. If anyone has some suggestions, please let me know.

Matt

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to