hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Logwatch cron does not work in CentOS 6.0
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

Logwatch cron does not work in CentOS 6.0

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-16-2011, 02:42 AM
ZKuJoe ZKuJoe is online now
Securing the Dragon.
 
Join Date: Feb 2007
Location: Federal Heights, CO
Posts: 1,530
Angry

Logwatch cron does not work in CentOS 6.0


I've tried everything to get it to work but it will not work on any of my servers running CentOS 6.0 while it is running fine on my CentOS 5.6 servers without any configuration (besides the e-mail address). It works correctly if I run "logwatch" from the CLI but I cannot configure it as a cronjob, it just doesn't work no matter what command I try.

Any ideas?

__________________
-Joe @ SecureDragon
+ Secure your data with a dragon!
+ OpenVZ | KVM | cPanel Hosting | Backup VPSs | LowEndBoxes | Ultra LEBs | VPNs | DDOS Protection
+ Secure Dragon LLC. | Tampa, FL. | Denver, CO. | Portland, OR. | AS54561


Reply With Quote


Sponsored Links
  #2  
Old 09-16-2011, 06:41 AM
barbus barbus is offline
Aspiring Evangelist
 
Join Date: Aug 2010
Location: Prague, Czech Republic
Posts: 403
Check cron logs.

__________________
Supportex.Net server management, full range of services. EU-based outsourced company. Since 1998.
Outstanding quality for high performance projects; clustering and high-availability solutions, DDoS protection.
Cisco/Juniper network management & deployment assistance. Network design and monitoring.

Reply With Quote
  #3  
Old 09-28-2011, 01:54 AM
SavOak SavOak is offline
New Member
 
Join Date: Sep 2011
Posts: 1
From the logwatch README:

How do I use it?

Well, it should pretty much work on its own, sending you an
email every night. For more configuration options, run
'logwatch --help' or edit /usr/share/logwatch/default.conf/logwatch.conf
or /etc/logwatch/logwatch.conf.

See the file HOWTO-Customize-LogWatch for more information.

You can also use it from the command line (as documented in the
man page).


I could run it successfully from the command line also and view the output on screen, but couldn't get it to work using cron in cPanel. What I DID have to do was customize the default conf file. This file is very well commented, and I only made 3 changes: email address, range (Yesterday) and detail level.

So I think trying to run it from cron might be redundant. I had it working on my old VPS, and when I checked the crontab there, found I didn't have an entry for it. In that case I did a yum install, though. On my new server it was already installed.

Logwatch seems to have it's own cron function. But now that I've modified that default conf file - I ran it from the CLI once, just to check that it was working - it sends me an email every night, running about 3:00 am (server time).

If you're still having trouble you might want to go to the source and check the logwatch.org web site. Let us know how this worked out for you.


Last edited by SavOak; 09-28-2011 at 01:58 AM. Reason: spelling corrections
Reply With Quote
Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Diable Logwatch - CentOS WHM server kshazad86 Hosting Security and Technology 3 08-31-2011 02:42 PM
logwatch output mail not getting via cron moinkhan31 Hosting Security and Technology 1 09-30-2009 01:59 PM
Linux Security, Cron, and CentOS+BQ gnetwerker Dedicated Server 10 03-17-2008 08:55 PM
Logwatch and cron.daily HD Fanatic Hosting Security and Technology 1 09-30-2006 11:23 PM
Error in LogWatch & run-parts /etc/cron.daily SWDevil Hosting Security and Technology 5 06-12-2005 09:24 AM

Related posts from TheWhir.com
Title Type Date Posted
Jelastic Launches Version 1.9.1 of Java and PHP Hosting Platform Web Hosting News 2013-05-21 09:39:09
Solar VPS Becomes Official Mirror for Centos and Ubuntu Web Hosting News 2013-04-16 11:03:34
Web Host Rackspace Adds FreeBSD 9, CentOS 6.3 Support to Cloud Servers Web Hosting News 2012-07-30 12:47:10
Web Host ServerPronto Donates Hosting Resources to CentOS Web Hosting News 2012-07-05 14:06:27
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


Tags
logwatch

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?