You might want to check /etc/cron.d/ for a mrtg cron file. I know that the rpm install of MRTG on CentOS 4 creates a cron file there by default on install.

Scott

Quoting mrmrmrmr <[email protected]>:


Thanks for your comments.
I've just tried putting a command which produces error output to the same
crontab.
With the redirection "> /dev/null 2>&1" , I didn't get any email from that
cron job.
However, mrtg produces mail from error messages.

I am sure that is the specific cron job that mrtg is run, because there is
no other crontab of any other user.
I don't know why mrtg produces these. I can't track it also, because the
error is not occuring at each run.

Anyway, I installed Cacti running RRDtool. Maybe I'll pass to Cacti.

Thanks.


At 01:47 PM 1/21/2009, you wrote:

Hi,

you are not talking to yourself but I don't understand your comment.what is
the relevance with OS ? This is a Linux installation. Distro is CentOS 4.

The OS handles the ooutput of the cronjob - not mrtg.

Maybe someone else who uses CentOS can chime in, but some things to try:

Like I mentioned before, set up a cron job for every 10 minutes to do a
LS /  > /dev/null 2>&1
Does that get e-mailed?

Are you SURE it's that cronjob? Set up that same job every 10
minutes. Do you get an e-mail every 10 minutes?

Do you have other cron jobs that have output to /dev/null ? Do they
get e-mailed also?

Everything I'm seeing on CentOS says
 > /dev/null 2>&1
Works.

--
View this message in context: http://n2.nabble.com/keep-getting-cron-warning-mails-even...-tp2187838p2199464.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg



Attachment: binsnocJ72bUw.bin
Description: PGP Public Key

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to