Sounds like you have a few things going on here. And maybe your questions is not suitable to the problem you are having.
First, and foremost get your cfservd firing off with the correct configuration file. This shouldn't really be an issue. It should be using /var/cfengine/inputs/cfservd.conf. Second, are you sure that it is a wrong configuration file, and not just a bad setting in the configuration file? Your error message could be caused by a bad key or maybe you don't have your host defined in AllowConnectionsFrom. Third, be careful running with a -K, this ignore locks, this is there to protect cfagent from spamming your system. Fourth, consider running cfexecd from cron and/or as a daemon instead of cfagent. Fifth, yes you can have cfengine define a class if a copy fails: http://www.cfengine.org/docs/cfengine-Reference.html#copy server=server-host failover=classes There is also define and elsedefine. I am not certain how elsedefine differs from failover. Hope this helps. On Mon, 2005-04-18 at 18:33 -0700, Mark wrote: > Hi, > > I just had the problem that cfservd on the master was started with the wrong > config file and therefore would not authenticate the > client that was running cfagent. I got: > > "cfengine:: Server returned error: Host authentication failed. Did you > forget the domain name or IP/DNS address registration (for > ipv4 or ipv6)?" > > The client was running with the parameters "-Kqf <file>". It finished, but > did not tell me that it was not able to execute the copy > commands due to the fact that the server would not authenticate it properly. > How can I have cfagent tell me that the copy action > failed? I do not want to use "-v" because cfagent is running in ran by cron, > so I do not want any emails with the debug if there is > not a real problem with cfagent, but in this case I would like to have an > error message, since I consider this an error... > > Whats the best way to get this? > > Thanks, > > MARK > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@gnu.org > http://lists.gnu.org/mailman/listinfo/help-cfengine -- Christian Pearce http://www.sysnav.com http://www.commnav.com http://www.perfectorder.com
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Help-cfengine mailing list Help-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/help-cfengine