Always hit the docs first.. there is a section called "RUNNING MRTG"

http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html

In your case .. 

/usr/bin/mrtg /path/to/your.cfg --logging /path/to/your/mrtg.log

I use /var/log/mrtg/mrtg.log for my location .. you can use what ever
suits you.

You can run from the shell just as you run it from crontab.. 

#> env LANG=C /usr/bin/mrtg bla bla bla bla


------
thanks
  kevin.foote

On Thu, 8 Apr 2010, Scott Danton wrote:

-> I have attached a text file from config.  I have included 2 pollings.  The 
first one is not mapping anything and the second is.  They are on the same 
physical router.
-> 
-> Can you tell me how to run this from the command line?  I will do it and 
post back.
-> 
-> I am currently running mrtg using this command.
-> 
-> env LANG=C /usr/bin/mrtg /etc/mrtg/Gallatin.cfg
-> where do I enable logging?  Is it right before the /etc/mrtg/Gallatin.cfg?  
after I enable logging where are the logs stored?
-> 
-> 
-> Thanks for everything,
-> Scott
-> 
-> From: [email protected] 
[mailto:[email protected]] On Behalf 
Of PAUL WILLIAMSON
-> Sent: Wednesday, April 07, 2010 3:09 PM
-> To: [email protected]
-> Subject: Re: [mrtg] MRTG Graphs not populating.
-> 
-> Can you poll the device from the command line?  What is the target line from 
the config?
-> 
-> Paul
-> 
-> >>> Scott Danton <[email protected]> 4/7/2010 4:02 PM >>>
-> Does anyone have any ideas on how to troubleshoot why some of my interfaces 
are not graphing.   Is there something that I can look at to see on either the 
router or the mrtg server?
-> 
-> Thanks,
-> Scott
-> 
-> From: [email protected] 
[mailto:[email protected]] On Behalf 
Of Scott Danton
-> Sent: Monday, April 05, 2010 4:13 PM
-> To: '[email protected]'
-> Subject: [mrtg] MRTG Graphs not populating.
-> 
-> I have been monitoring my t-1 lines for about 3 years and have never realy 
had a problem.  My server crashed and I rebuilt on a VM. It has been so long 
that I do not remember anything that I had to do to get things running.  I did 
have some old back ups of cfg file.  I have re-installed and I am haing a 
strange issue.  I monitor multiple interfaces on 3 devices.  Here is the 
strange part.  On one device I am collecting information on 2 of the 3 
interfaces.  One is completely blank.  The second device collect the 
information for my remote sites.  I am getting information on 4 of the 7.  So 3 
are blank.  On the last device I am missing information on 1 of the 2 
interfaces.  The config is the same one I used on the old server so that should 
not be the problem.  Each device is giving information, so I know the SNMP is 
working.  I am lost.  Please let me know if you need any further information.
-> 
-> Thanks,
-> Scott
-> 
-> ************************************
-> 
-> This email may contain privileged and/or confidential information that is 
intended solely for the use of the addressee.  If you are not the intended 
recipient or entity, you are strictly prohibited from disclosing, copying, 
distributing or using any of the information contained in the transmission.  If 
you received this communication in error, please contact the sender immediately 
and destroy the material in its entirety, whether electronic or hard copy.  
This communication may contain nonpublic personal information about consumers 
subject to the restrictions of the Gramm-Leach-Bliley Act and the 
Sarbanes-Oxley Act.  You may not directly or indirectly reuse or disclose such 
information for any purpose other than to provide the services for which you 
are receiving the information.
-> 
-> There are risks associated with the use of electronic transmission.  The 
sender of this information does not control the method of transmittal or 
service providers and assumes no duty or obligation for the security, receipt, 
or third party interception of this transmission.
-> 
-> ************************************
-> 

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

Reply via email to