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

Scott Ocken scott at infobunker.com
Thu Jan 22 20:17:33 CET 2009


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 <mrmrmrmr at gmail.com>:

>
> 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
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1324 bytes
Desc: PGP Public Key
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20090122/e3ee0947/attachment.bin 


More information about the mrtg mailing list