This is not an MRTG problem.  Cron sends the output of the jobs it ran to 
the user who owned them (as specified in the MAILTO variable in crontab). 
If you don't want the emails add the following to the end of your cron 
entry:    > /dev/null 2>&1 (example cron entry would look something like: 
*/5 * * * * /etc/mrtg_scripts/mrtg_5_min_update_cron.sh > /dev/null 2>&1)
In my MRTG setup, I am logging to /var/log/mrtg.log and the only things 
that get logged are warnings or errors (such as when a switch, for 
whatever reason, stops responding to snmp queries).  This file is usually 
empty.



--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




"Andy Lewis" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
01/16/2007 02:20 PM

To
<[email protected]>
cc

Subject
[mrtg] Re: logging





I added write to the group and other so everything now has read, write
and execute but still nothing. I have MRTG/RRD running under root.

-----Original Message-----
From: Alvaro Luiz Maia Motta [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 16, 2007 11:54 AM
To: Andy Lewis; [email protected]
Subject: RES: [mrtg] logging

Check user's permissions on the /var/log.

HTH

AL

-----Mensagem original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em
nome de Andy Lewis
Enviada em: Tuesday, January 16, 2007 12:43 PM
Para: [email protected]
Assunto: [mrtg] logging

Hi all


I seem to have a problem with Logging. I am running MRTG/RRD on Linux
Enterprise 4 and I put the logging statements into my crontab (
--logging /var/log/routers.log)but It wont log. What does happen is that
my mail file (/var/spool/mail/) gets inundated with all of the log files
and gets so big that I can't even open it and I end up having to delete
it. I have successfully run MRTG/RRD for years on Windows but I thought
that it would run better on Linux. So far Windows is 10x faster.



Any suggestions would be greatly appreciated!





Andy Lewis

Network Engineer

Greenfield Online

Phone: 203-846-5776

Fax: 203-834-8686

EMail: [EMAIL PROTECTED]




--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


______________________________________________________________________
This e-mail has been scanned by Spam Manager Email Service, using
Skeptic(tm) technology powered by MessageLabs.
______________________________________________________________________

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi




--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to