gnu.cfengine.help
[Top] [All Lists]

making Can't stat warnings visible

Subject: making Can't stat warnings visible
From: foudfou <foudil.newbie@xxxxxxxxxxx>
Date: Tue, 20 May 2008 10:42:32 -0700 (PDT)
Newsgroups: gnu.cfengine.help

Dear All,

if I use cfengine to copy a file which does not exist, I get no
warning (?!)

I have to turn verbose mode on (cfagent -v) to see :

cfengine:node08: Server returned error:  Host authentication failed.
Did you forget the domain name or IP/DNS address registration (for
ipv4 or ipv6)?
cfengine:node08: Can't stat /opt/cfengine-dev/masterinputs/foudil in
copy

But I would like to see it without -v !

I tried with 'failover' :

---------------------------------------------------------------------------
copy:
   $(update.masterinputs)/foudil dest=$(update.workdir)/inputs/foudil
server=$(update.policyhost) action=warn failover=failed_copy_foudil

alerts:
    failed_copy_foudil::
        "erreur: could not copy /tmp/foudil dest=/tmp/foudil"
---------------------------------------------------------------------------

without success.

Am I doing something wrong ?

<Prev in Thread] Current Thread [Next in Thread>
  • making Can't stat warnings visible, foudfou <=