Click to See Complete Forum and Search --> : Cron MRTG error


datadan_1
09-28-2003, 06:37 PM
In my /var/log/cron file I am getting these messages:

Sep 28 15:20:00 mail CROND[12066]: (root) CMD (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)

I checked
crontab -l
/etc/cron.daily
/etc/cron.hourly
/etc/cron.weekly
/etc/cron.monthly

and
/etc/mrtg/mrtg.cfg

I see no reference to mrtg in the cron files and no way of stopping this from happening every five minutes.

Where else can I look to turn this off?

Thanks

fredg
09-28-2003, 07:36 PM
Did you look in root's crontab?

su to root then

crontab -l

datadan_1
09-28-2003, 08:25 PM
Yup.

All commands logged in as root. Still no luck.
Process runs every 5 minutes

fredg
09-28-2003, 08:43 PM
How about in

/etc/crontab

datadan_1
09-29-2003, 03:19 PM
Yes there it is Fredg.

Thank you!!!

Can I edit /etc/crontab with vi or do I need a special editor like crontab -e?

Thanks,

fredg
09-29-2003, 03:24 PM
You'll have to edit /etc/crontab with any text editer, so long as you are root when you do it.

The user crontabs, usually located in /var/spool/cron are best handled with the crontab editer run while being logged in as the owner of the cronatb being edited.