LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-23-2002, 03:06 PM   #1
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Rep: Reputation: 31
What's LogWatch and why is it there?


I have noticed my hard drive cranking for no reason. Recently, I caught it in the act and ran "top," which said nothing. When I quit top, I noticed I had new mail. The message said:

###### LogWatch 2.6 Begin #######
--------------- sendmail Begin -----------------

330 bytes transferred
1 messages sent
--------------- sendmail Begin -----------------

###### LogWatch 2.6 Begin #######

I have no idea what this message means. I also have no idea what LogWatch is or why it needs to keep rattling the hard drive and sending me mail.

I was wondering if anyone knew what LogWatch is and if it's OK to get rid of it.
 
Old 12-23-2002, 07:29 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yes it's ok to remove

It is handy to have on a server, it will mail you the information in your system logs. Some of which may be important.
 
Old 12-23-2002, 08:13 PM   #3
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
How exactly do you remove it?
 
Old 12-24-2002, 03:44 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you could try this


Code:
rpm -e logwatch
 
Old 12-24-2002, 04:28 PM   #5
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Might I add, that it's probably not logwatch rattling your drive.

It's more likely to be locate.

locate does an update I think, once a night to keep it's database fresh.

look in /etc/cron.daily for slocate.cron

and you'll see why you get the rattle

Slick.
 
Old 12-26-2002, 12:42 AM   #6
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
Doh! I forgot all about the cron jobs! There's a big bunch of stuff in cron.daily including longwatch and slocate.cron. However, when I caught it action again and ran "top", I couldn't find anything running that was in cron.daily. Does that sort of stuff not show up or was it some other cron job?

Oh, well. I guess I'll try to figure out what the rest of the cron.daily stuff does....

(I assume most of you have moved onto warmer threads, but I just thought I'd at least try to redeem myself by acting like I kind of know what I'm doing.)
 
Old 12-27-2002, 09:04 AM   #7
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
It depends on what you've installed as to what appears in cron.daily.

For the most part though it's stuff which is rebuilding generally static databases, updating logfiles, and doing various maintenance routines on your machine.

What you won't see in top is something like :

/etc/cron.daily/somescript [user] [cpu] [mem] [blah]

If you look at the scripts - and the files in /etc/cron.daily are just scripts, you'll see that they launch a program specifically.

So, in the slocate.cron job you might see :

/usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net"

and that's what you'd see in top. Rather than the script name of \etc\cron.daily\slocate.cron

That's partly because that's the way that scripts work, and partly because that's the way that Linux displays running processes and deals with threads.

Um.. Be happy?



Slick.
 
Old 12-27-2002, 04:07 PM   #8
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
Ok. I noticed a few things popping up and running that were in cron.daily. I always feel better knowing what my computer is doing. That's one of the things I have against Windows.
 
  


Reply


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
Logwatch winchester169 Linux - Security 1 10-21-2004 10:18 AM
***logwatch*** LinuxRam Linux - General 1 08-25-2004 05:09 AM
logwatch I keep getting this help please lildrummerboy Linux - Newbie 1 08-01-2004 02:57 PM
logwatch lildrummerboy Linux - Newbie 1 07-29-2004 08:38 PM
LogWatch exyst Linux - Software 0 03-13-2004 07:04 PM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration