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 07:24:08 -0500 (CDT)


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



--
~~ ** ~~  If you didn't learn anything when you broke it the 1st ~~ ** ~~
                        time, then break it again.




reply via email to

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