LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 01-29-2009, 04:19 AM   #1
felix680
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Unhappy Ubuntu 8.10 server install logwatch weird message


Hi everyone,

I am new to Ubuntu but I was previously using Fedora for years. One thing I don't understand is that I can get a comprehensive logwatch email everyday while using Fedora; but when I used Ubuntu for the pass month, I've just received the following message with no log details:
/etc/cron.daily/00logwatch:
Cannot find shared script combined log files
run-parts: /etc/cron.daily/00logwatch exited with return code 2
Could anyone tell me what's wrong with my configuration in Ubuntu?

Note: the other cron jobs are running fine.

Machine: HP LC2000R P.III 900Mhz, 512 MB SDRAM, 60GB RAID 5 SCSI;
System: Ubuntu 8.10 (Server ISO);

Thank you in advance.

Felix
 
Old 01-30-2009, 03:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,485
Blog Entries: 54

Rep: Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902
So what does /etc/cron.daily/00logwatch look like?
 
Old 01-31-2009, 08:56 PM   #3
felix680
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by unSpawn View Post
So what does /etc/cron.daily/00logwatch look like?
I did not alter this file and it leaves as default. I think there is nothing need to be changed in this file, right?

/etc/cron.daily/00logwatch looks like:
#!/bin/bash

#Check if removed-but-not-purged
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0

#execute
/usr/sbin/logwatch --mailto root

Last edited by felix680; 02-01-2009 at 06:30 PM.
 
Old 04-20-2009, 06:51 PM   #4
felix680
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Anyone? Please help...
 
Old 04-27-2009, 08:49 AM   #5
robdavison
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Hi,

I had the same problem. I had a quick look at the logwatch script in /usr/sbin, and it is looking for a file combined.log in either of these locations:

$ConfigDir/scripts/shared/$cmd
$BaseDir/scripts/shared/$cmd

my $BaseDir = "/usr/share/logwatch";
my $ConfigDir = "/etc/logwatch";


so to get past this, I simply created a blank file with permissions 755:

/usr/share/logwatch/scripts/shared/combined.log

and it seems to work ok.

Hope this helps.
 
Old 04-28-2009, 07:09 PM   #6
felix680
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by robdavison View Post
Hi,

I had the same problem. I had a quick look at the logwatch script in /usr/sbin, and it is looking for a file combined.log in either of these locations:

$ConfigDir/scripts/shared/$cmd
$BaseDir/scripts/shared/$cmd

my $BaseDir = "/usr/share/logwatch";
my $ConfigDir = "/etc/logwatch";


so to get past this, I simply created a blank file with permissions 755:

/usr/share/logwatch/scripts/shared/combined.log

and it seems to work ok.

Hope this helps.
No, it is just the same. I am wondering why only me get this kind of error?? Anyone, please help!!

Anyway, thanks for your help robdavison!
Felix
 
Old 05-07-2009, 08:58 PM   #7
felix680
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Hello again,

Today it has been upgraded form Ubuntu 8.10 to Ubuntu 9.04, but the problem still persists!

Anyone please help!!!


Last edited by felix680; 05-07-2009 at 08:59 PM.
 
Old 07-13-2010, 10:58 PM   #8
moesplace
LQ Newbie
 
Registered: Sep 2005
Distribution: Debian/RedHat/Turbo
Posts: 15

Rep: Reputation: 0
real problem here

Remember this odd little entry in the Ubuntu formus:
Notes

For Ubuntu systems with apache server:

edit /usr/share/logwatch/dist.conf/logfiles/http.conf

and add *combined.log files to the list

I believe that this is where your actual problem is coming from.
Delete the line with *combined.log in it in the above file.

Then 'logwatch restart'

You should like the results this time.

Cheers,
-Greg
 
  


Reply

Tags
logwatch, ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message when attempting to install GUI for Ubuntu Server 7.04 calebf Linux - Server 5 04-25-2009 11:23 PM
Error message when trying to install ubuntu Craigt Ubuntu 1 09-20-2006 02:09 AM
How can i install Limewire? Im getting some weird error message... michelbehr Linux - Software 12 03-08-2004 01:46 PM
LogWatch message thelight1 Linux - Newbie 1 08-06-2003 01:11 AM
PLEASE HELP: Receiving weird error message when attempting Red Hat v8.0 install!! Soulstice Linux - General 8 01-12-2003 02:42 AM


All times are GMT -5. The time now is 01:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration