LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-29-2007, 11:43 AM   #1
stannerack
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
Cron errors in cron.d directory


Hi all.

I am having a problem with a Red hat 9 box. It has MRTG installed which in turn creates a Cron job when installed to run every 5 minutes or so.

There is a file in the folder /etc/cron.d called mrtg. I guess this is the script that is run.

The problem is that the script will not run due to some permissions error. I get an email every 5 mins with similar messages to this:

Quote:
ERROR: Creating templock /etc/mrtg/mrtg.cfg_l_21152: Read-only file system at /usr/bin/mrtg line 1274.
I have checked the permissions on the /etc/mrtg directory and they are set to 0755

Alternatively, how do I stop this cron job from running? I have run the crontab -l command as root, but there are no cron jobs listed.

Does anyone have any ideas? Sorry for my ignorance, but I am more a Windows guru than Linux master, so any help would be appreciated.

Many thanks in advance!
 
Old 07-02-2007, 12:04 AM   #2
Russell Griffiths
LQ Newbie
 
Registered: May 2006
Location: Sydney, Australia
Distribution: Red Hat 7.3
Posts: 27

Rep: Reputation: 15
Stannerack, hi

best way (by a long shot) to manage CRON jobs is with Webmin (see www.webmin.com). It shows ALL the CRON jobs on a machine, even those 'buried' in different places, like /etc/crontab, etc/cron.d/mrtg, as well as the usual /var/spool/cron location. I had the same probs finding a 'rogue' job to kill until I found webmin, who found/saw EVERYTHING.

Usually the executables for MRTG go in /usr/bin/mrtg, or usr/local/bin.
the config file usually sit in /etc/mrtg/mrtg.conf, and the outputs go (usually) to a folder onm the apache server, usually /var/www/mrtg. Logs go in /var/log/mrtg.

If they are in the wrong place, MRTG needs to run as root to read/write to the logs.

does this help?

Grif
 
Old 07-02-2007, 12:57 AM   #3
stannerack
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Hello Russell

Thanks for your help.

I now know why I am getting the error. There is disk corruption creeping in and the file system has managed to remount itself as Read-only.

MRTG cannot seem to function on a read-only volume.

Looks like I need to fix that first!

Thanks again
 
  


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
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 08:09 AM
cron file 000-delay.cron (it is on my FC5) - what is the purpose? jtmoon Linux - Server 1 03-08-2007 11:15 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 01:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 01:50 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:18 AM.

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