FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 09-12-2012, 07:19 AM
"C. L. Martinez"
 
Default Problems with logwatch under CentOS 6.3

Hi all,

Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
of them, I receive every day problems with logwatch:

/etc/cron.daily/0logwatch:

Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch
line 1040, <TESTFILE> line 1.
Can't execute sendmail -t: No such file or directory

It is really strange, because I am using default config ... On the
other side, I have three CentOS 6.2 servers and these problems doesn't
appears ...

How can I debug this??

Thanks.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 07:27 AM
Arek Czereszewski
 
Default Problems with logwatch under CentOS 6.3

On 12 September 2012 09:19, C. L. Martinez <carlopmart@gmail.com> wrote:
> Hi all,
>
> Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
> of them, I receive every day problems with logwatch:
>
> /etc/cron.daily/0logwatch:
>
> Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch
> line 1040, <TESTFILE> line 1.
> Can't execute sendmail -t: No such file or directory
>
> It is really strange, because I am using default config ... On the
> other side, I have three CentOS 6.2 servers and these problems doesn't
> appears ...
>
> How can I debug this??
Hi,

On both versions rum command:

rpm -qf `which sendmail`

For me it's looks like you don't have postfix/sendmail on 6.3.

If you have sendmail command on 6.3, then check is path to sandmail is in
logwatch script.

Kind regards
Arek
--
UNIX allows me to work smarter, not harder.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 07:32 AM
Laurent
 
Default Problems with logwatch under CentOS 6.3

Le 2012-09-12 09:19, C. L. Martinez a écrit*:
> Hi all,
>
> Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
> of them, I receive every day problems with logwatch:
>
> /etc/cron.daily/0logwatch:
>
> Can't exec "sendmail": No such file or directory at
> /usr/sbin/logwatch
> line 1040, <TESTFILE> line 1.
> Can't execute sendmail -t: No such file or directory
>
> It is really strange, because I am using default config ... On the
> other side, I have three CentOS 6.2 servers and these problems
> doesn't
> appears ...
>
> How can I debug this??

It sounds like an SELinux issue:

https://bugzilla.redhat.com/show_bug.cgi?id=617472
https://bugzilla.redhat.com/show_bug.cgi?id=617790

--
Laurent.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 07:50 AM
"C. L. Martinez"
 
Default Problems with logwatch under CentOS 6.3

On Wed, Sep 12, 2012 at 7:27 AM, Arek Czereszewski <arekczer@gmail.com> wrote:
> On 12 September 2012 09:19, C. L. Martinez <carlopmart@gmail.com> wrote:
>> Hi all,
>>
>> Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
>> of them, I receive every day problems with logwatch:
>>
>> /etc/cron.daily/0logwatch:
>>
>> Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch
>> line 1040, <TESTFILE> line 1.
>> Can't execute sendmail -t: No such file or directory
>>
>> It is really strange, because I am using default config ... On the
>> other side, I have three CentOS 6.2 servers and these problems doesn't
>> appears ...
>>
>> How can I debug this??
> Hi,
>
> On both versions rum command:
>
> rpm -qf `which sendmail`
>
> For me it's looks like you don't have postfix/sendmail on 6.3.
>
> If you have sendmail command on 6.3, then check is path to sandmail is in
> logwatch script.
>

Nop, postfix it is installed and logwatch contains the correct
sendmail binary ...
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 07:55 AM
"C. L. Martinez"
 
Default Problems with logwatch under CentOS 6.3

On Wed, Sep 12, 2012 at 7:32 AM, Laurent <laurent@tnpl127.net> wrote:
> Le 2012-09-12 09:19, C. L. Martinez a écrit :
>> Hi all,
>>
>> Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
>> of them, I receive every day problems with logwatch:
>>
>> /etc/cron.daily/0logwatch:
>>
>> Can't exec "sendmail": No such file or directory at
>> /usr/sbin/logwatch
>> line 1040, <TESTFILE> line 1.
>> Can't execute sendmail -t: No such file or directory
>>
>> It is really strange, because I am using default config ... On the
>> other side, I have three CentOS 6.2 servers and these problems
>> doesn't
>> appears ...
>>
>> How can I debug this??
>
> It sounds like an SELinux issue:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=617472
> https://bugzilla.redhat.com/show_bug.cgi?id=617790
>
> --

Uhmm Maybe, this can be the problem:

[root@plcossrv01 scripts]# whereis logwatch
logwatch: /usr/sbin/logwatch /etc/logwatch /usr/share/logwatch
/usr/share/man/man8/logwatch.8.gz
[root@plcossrv01 scripts]# ls -la /usr/sbin/logwatch
lrwxrwxrwx 1 root root 45 Sep 5 13:06 /usr/sbin/logwatch ->
../..//usr/share/logwatch/scripts/logwatch.pl
[root@plcossrv01 scripts]# ls -al ../..//usr/share/logwatch/scripts/logwatch.pl
ls: cannot access ../..//usr/share/logwatch/scripts/logwatch.pl: No
such file or directory
[root@plcossrv01 scripts]#

SELinux is disabled by default on all installations that I have do it
(including adding disable selinux during installation) ...
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 08:08 AM
"C. L. Martinez"
 
Default Problems with logwatch under CentOS 6.3

On Wed, Sep 12, 2012 at 7:55 AM, C. L. Martinez <carlopmart@gmail.com> wrote:
> On Wed, Sep 12, 2012 at 7:32 AM, Laurent <laurent@tnpl127.net> wrote:
>> Le 2012-09-12 09:19, C. L. Martinez a écrit :
>>> Hi all,
>>>
>>> Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
>>> of them, I receive every day problems with logwatch:
>>>
>>> /etc/cron.daily/0logwatch:
>>>
>>> Can't exec "sendmail": No such file or directory at
>>> /usr/sbin/logwatch
>>> line 1040, <TESTFILE> line 1.
>>> Can't execute sendmail -t: No such file or directory
>>>
>>> It is really strange, because I am using default config ... On the
>>> other side, I have three CentOS 6.2 servers and these problems
>>> doesn't
>>> appears ...
>>>
>>> How can I debug this??
>>
>> It sounds like an SELinux issue:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=617472
>> https://bugzilla.redhat.com/show_bug.cgi?id=617790
>>
>> --
>
> Uhmm Maybe, this can be the problem:
>
> [root@plcossrv01 scripts]# whereis logwatch
> logwatch: /usr/sbin/logwatch /etc/logwatch /usr/share/logwatch
> /usr/share/man/man8/logwatch.8.gz
> [root@plcossrv01 scripts]# ls -la /usr/sbin/logwatch
> lrwxrwxrwx 1 root root 45 Sep 5 13:06 /usr/sbin/logwatch ->
> ../..//usr/share/logwatch/scripts/logwatch.pl
> [root@plcossrv01 scripts]# ls -al ../..//usr/share/logwatch/scripts/logwatch.pl
> ls: cannot access ../..//usr/share/logwatch/scripts/logwatch.pl: No
> such file or directory
> [root@plcossrv01 scripts]#
>
> SELinux is disabled by default on all installations that I have do it
> (including adding disable selinux during installation) ...

OOpss, symlink is correct ... Any more ideas??

According to this https://bugzilla.redhat.com/show_bug.cgi?id=617790,
problem is created by selinux-policy package .. but I have selinux
disabled in all of these servers ...
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 08:37 AM
Leon Fauster
 
Default Problems with logwatch under CentOS 6.3

Am 12.09.2012 um 10:08 schrieb C. L. Martinez:
> On Wed, Sep 12, 2012 at 7:55 AM, C. L. Martinez <carlopmart@gmail.com> wrote:
>> On Wed, Sep 12, 2012 at 7:32 AM, Laurent <laurent@tnpl127.net> wrote:
>>> Le 2012-09-12 09:19, C. L. Martinez a écrit :
>>>
>>> It sounds like an SELinux issue:
>>>
>>> https://bugzilla.redhat.com/show_bug.cgi?id=617472
>>> https://bugzilla.redhat.com/show_bug.cgi?id=617790
>>>
>>> --
>>
>> Uhmm Maybe, this can be the problem:
>>
>> [root@plcossrv01 scripts]# whereis logwatch
>> logwatch: /usr/sbin/logwatch /etc/logwatch /usr/share/logwatch
>> /usr/share/man/man8/logwatch.8.gz
>> [root@plcossrv01 scripts]# ls -la /usr/sbin/logwatch
>> lrwxrwxrwx 1 root root 45 Sep 5 13:06 /usr/sbin/logwatch ->
>> ../..//usr/share/logwatch/scripts/logwatch.pl
>> [root@plcossrv01 scripts]# ls -al ../..//usr/share/logwatch/scripts/logwatch.pl
>> ls: cannot access ../..//usr/share/logwatch/scripts/logwatch.pl: No
>> such file or directory
>> [root@plcossrv01 scripts]#
>>
>> SELinux is disabled by default on all installations that I have do it
>> (including adding disable selinux during installation) ...
>
> OOpss, symlink is correct ... Any more ideas??
>
> According to this https://bugzilla.redhat.com/show_bug.cgi?id=617790,
> problem is created by selinux-policy package .. but I have selinux
> disabled in all of these servers ...


what says

ls -la /usr/sbin/sendmail

?

--
LF





_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 09:35 AM
Giles Coochey
 
Default Problems with logwatch under CentOS 6.3

On 12/09/2012 08:19, C. L. Martinez wrote:

Hi all,

Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
of them, I receive every day problems with logwatch:

/etc/cron.daily/0logwatch:

Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch
line 1040, <TESTFILE> line 1.
Can't execute sendmail -t: No such file or directory

It is really strange, because I am using default config ... On the
other side, I have three CentOS 6.2 servers and these problems doesn't
appears ...

How can I debug this??

Thanks.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

I had this problem on one of 18 Centos 6.x servers I have installed.

The particular server has had a large number of CPAN perl updates
applied to it.


In order to resolve the problem I added the following line to
/etc/logwatch/conf/logwatch.conf


mailer = "/usr/sbin/sendmail -t"

My systems are using postfix.



--
Regards,

Giles Coochey, CCNA, CCNAS
NetSecSpec Ltd
+44 (0) 7983 877438
http://www.coochey.net
http://www.netsecspec.co.uk
giles@coochey.net


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 09-12-2012, 10:58 AM
"C. L. Martinez"
 
Default Problems with logwatch under CentOS 6.3

On Wed, Sep 12, 2012 at 9:35 AM, Giles Coochey <giles@coochey.net> wrote:
> On 12/09/2012 08:19, C. L. Martinez wrote:
>>
>> Hi all,
>>
>> Last week I have migrated 5 CentoS 6.2 servers to CentOS 6.3. In all
>> of them, I receive every day problems with logwatch:
>>
>> /etc/cron.daily/0logwatch:
>>
>> Can't exec "sendmail": No such file or directory at /usr/sbin/logwatch
>> line 1040, <TESTFILE> line 1.
>> Can't execute sendmail -t: No such file or directory
>>
>> It is really strange, because I am using default config ... On the
>> other side, I have three CentOS 6.2 servers and these problems doesn't
>> appears ...
>>
>> How can I debug this??
>>
>> Thanks.
>> _______________________________________________
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>
> I had this problem on one of 18 Centos 6.x servers I have installed.
>
> The particular server has had a large number of CPAN perl updates applied to
> it.
>
> In order to resolve the problem I added the following line to
> /etc/logwatch/conf/logwatch.conf
>
> mailer = "/usr/sbin/sendmail -t"
>
> My systems are using postfix.
>
>
>
> --

Yep, I think you are right Gilles. I have installed some CPAN modules
in these servers and this can be the problem. I will test it.

Thanks.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 11:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org