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

Mersberger, Robert robert.mersberger at goldenliving.com
Thu Jan 22 20:42:34 CET 2009


 Have you looked at your crontab?  do you have a MailTo statement in there that may be your problem.


-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of mrmrmrmr
Sent: Thursday, January 22, 2009 1:00 PM
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] keep getting cron warning mails even...


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
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg


Please consider the environment before printing this e-mail.

CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively, this 'Email') are intended
only for the confidential use of the recipient(s) named above. If the reader of this
message is not the intended recipient named above or an agent responsible for
delivering it to the intended recipient named above, you have received this Email in error.
Please notify the sender immediately and permanently delete this Email and any copies thereof.



More information about the mrtg mailing list