help-cfengine
[Top][All Lists]
Advanced

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

Re: No email output - cfengine-2.1.14


From: David E. Nelson
Subject: Re: No email output - cfengine-2.1.14
Date: Mon, 6 Jun 2005 08:55:51 -0500 (CDT)


Hi Christian,

I've logged two cases: 'no email output' and 'redundant code' on SF.

         /\/elson

On Mon, 6 Jun 2005, Christian Pearce wrote:

This sort of fall into the "Damned if you do, damned if you don't"
category.  Has anyone launched a bug on this?  Could you please?

I am actually going to submit something soon about having Cfengine
support multiple comma separated email addresses.

On Mon, 2005-06-06 at 07:24 -0500, David E. Nelson wrote:
Hi Dmitry,

This was originally titled for RH-AS but since upgrading my Solaris from 2.1.11
to 2.1.14 it now also applies.

You are correct in that cfexecd is responsible to sending the email.  So now
I'm looking at/into cfexecd just not sure what to look for/at.  As I mentioned
earlier, 2.1.11 used to email without any problems so the configs should be
correct for 2.1.14.

Question: Will cfexecd still email if run from cron using '-F'?  Or is it the
admin's responsibility to redirect the output and email?

Also, I was browsing the cfexecd src code (2.1.14) and noticed the following
"bug":

  if (strlen(MAILFROM) == 0)
     {
     sprintf(VBUFF,"From: cfengine@%s\r\n",VFQNAME);
     Debug("%s",VBUFF);
     }
  else
     {
     sprintf(VBUFF,"From: cfengine@%s\r\n",VFQNAME);
     Debug("%s",VBUFF);
     }

Both actions are the same so I'm not sure what is trying to be accomplised here
(or what isn't being accomplished).

Thanks,
         /\/elson


On Sun, 1 May 2005, Dmitry Sazonov wrote:

afaik, cfexecd  - is the one that sends email.

On Friday 29 April 2005 05:45 pm, David E. Nelson wrote:

Hi All,

I've got one config file (cfagent.conf) w/ the 'sysadm', 'EmailFrom',
'EmailMaxLines', and 'smtpserver' all defined.  Yet I receive no email output.

I've done a 'cfagent -d2' and looked through the output.  The var is being
expanded/defined but that's about it.  There's no attempt to contact the smtp
server even thought I've got 'inform=true' defined in various areas of the conf
file.

Any ideas?

Thanks,
         /\/elson





--
~~ ** ~~ 4 out of 3 people have problems with fractions ~~ ** ~~




reply via email to

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