[mrtg] keep getting cron warning mails even...

mrmrmrmr mrmrmrmr at gmail.com
Thu Jan 22 19:59:53 CET 2009


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.



More information about the mrtg mailing list