LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2005, 07:29 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
error: mail command failed for /var/log/squidguard/squidGuard.log.6


Dear all,

I have a cron job to rotate my squidguard.log and mail it to my e-mail address. But seems like there is a problem in the mailing procedure. Also I set rotate 5 but the rotation of squigguard reached squidguard.log.6

Below is my configuration for /etc/logrotate.d/squidguard:

/var/log/squidguard/squidGuard.log {
daily
rotate 5
mail bfyong@shinyang.com.my
copytruncate
# compress
# notifempty
missingok
}

And the error message when I did a "# /usr/sbin/logrotate -f -s /var/lib/logrotate.status /etc/logrotate.conf
"
gave me:
error: mail command failed for /var/log/squidguard/squidGuard.log.6

I am not sure why it rotates till squidguard.log.6 because I thought if I set "rotate 5" it should rotate the log files to no5.

Please help me with this,
thanks a lot
 
Old 01-22-2009, 01:24 PM   #2
diadomraz
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Logrotate required packages

I just stumbled upon a similar problem. It looks like logrotate requires to external packages for the mail and compress commands. These are mailx and ncompress.

Running

yum install mailx ncompress

fixes the problem

Regards
Dobromir Velev
 
  


Reply



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
Squidguard Error zahra79 Linux - Networking 0 05-08-2005 04:34 AM
Error log in /var/log/messages raymond117 Linux - Security 9 01-26-2005 07:17 AM
error: stat of /var/log/ppp/connect-errors failed: No such file or directory Niceman2005 Linux - Newbie 0 01-20-2005 12:29 AM
/var/log/messages shows failed login attempts... plan9 Linux - Security 8 08-08-2004 12:52 PM
Permission denied @ /var/log/mail Thorsten Linux - Software 1 11-03-2003 06:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:01 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
Open Source Consulting | Domain Registration