[mrtg] Wow--This is Difficult to Setup!

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Thu Mar 29 16:22:18 CEST 2007


Bjorgen,

You can also use the '--no-down' or the '--show-op-down' option in cfgmaker to get all ports in the mrtg config file.
See http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html for details.

About the 3com gear:
First you have to make sure from the MRTG host you can get replies to SNMP queries to the box you want to monitor. You can use any MIB-browser to check this. (On windows Getif can be a usefull tool)
As soon as you can get replies to the SNMP queries you can tell cfgmaker to make a config file for MRTG.
I suggest you make a cfg file for each device and make a master config file with your global parameters and an include line for each individual cfg file.

Now you can decide to run indexmaker with the master config file or for each individual config file to get the html file(s) you want.

HTH,

Jan.

	-----Original Message-----
	From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Lyle Giese
	Sent: Thursday, March 29, 2007 3:18 PM
	To: Bjorgen T. Eatinger
	Cc: mrtg at lists.oetiker.ch
	Subject: Re: [mrtg] Wow--This is Difficult to Setup!


	Bjorgen

	That's the way cfgmaker works.  It will add the interfaces that are down, but will comment them out.  So if you want MRTG to ask for the stats on those ports, you need to uncomment them in the .cfg.

	Each Interface gets it's own page in MRTG with four sets of graphs, daily, weekly, monthly & yearly.  I have built some nice cgi scripts for inhouse use like you are talking about.  For instance I made a script to display the daily graphs for all interfaces on a managed switch and made those links to the full MRTG page for that interface.

	I have not played with RRD, but should do that here as the processing time for MRTG to make the graphs can get intensive on larger systems can be excessive.

	Lyle Giese
	LCR Computer Services, Inc.

	Bjorgen T. Eatinger wrote:

		Hello Kevin,
		
		Thank you for your reply!  I managed to get the service running correctly, and now that aspect is working great.
		
		And I looked in the MRTG.CFG file and found that it appears that the switches were, for the most part, configured somewhat, but that everything was completely commented out for some reason.  Some of the ports were commented out as they are disabled (by us administrators), but I still need all ports to be monitored whether disabled or not.
		
		Also, I am wondering if I will get a separate HTML file for each of these devices, or if I will simply get one massive HTML page.  We would much rather have separate HTML files for each device, if that is possible, then we will build our own front-end menu to select the device we wish to monitor.
		
		Sincerely, Bjorgen

  _____ 

		From: Kevin Stone [mailto:kjstone at gmail.com]
		Sent: Wednesday, March 28, 2007 8:01 PM
		To: Bjorgen T. Eatinger
		Subject: Re: [mrtg] Wow--This is Difficult to Setup!
	
	
		On Windows I've never tried to run it as a service.  Typically I set up a batch file to be run from the Task Scheduler every 5 minutes for 23 hours and 55 minutes.  This has worked for me many times over many years.  Alternatively, there are some free/OSS cron clones for Windows.  These may work as well.
	
		I can't help on the cfgmaker issue, all my devices are and have been Cisco and that works quite well.
	
		-Kevin
	
	
		On 3/28/07, Bjorgen T. Eatinger <beatinger at edenhosting.net> wrote:

			I have completely installed and managed to get running most of the MRTG code, running on MS Advanced Server 2003, IIS v6.0, including using the SRVANY.EXE so that the MRTG script will run as a service.
			
			I have 2 problems, as follows:
			
			1. Using the cfgmaker script, I cannot get more than just a router added to the MRTG.CFG file.  We have a Cisco 1720 router, a Cisco PIX 506e (which we probably don't need to monitor), and six 3COM 24-port switches.  Of most interest are the six 3COM switches.  How do we get all of these devices in the configuration file?
			
			2. Even with the one device (the Cisco router) correctly configured in the MRTG.CFG file, we cannot get the updates to work reliably.  I don't see much activity happening.  I finally stopped the MRTG service for a few hours, then started it again, and then saw activity, but then left the service running again for several hours, and no additional activity occurred.  How do we tell the service to run the mrtg script from time to time?
			
			The statistics were last updated Wednesday, 28 March 2007 at 19:50,
			at which time 'TheEdenGroup.tierzero.net' had been up for 2 days, 10:44:15.
			
			
			You can hit the graphs at the following URL:
			
			http://mrtg.edenhosting.net/208.179.153.225_fastethernet0.html
			
			Your help is greatly appreciated!
			
			Sincerely, Bjorgen T. Eatinger
			www.edenhosting.net
			

			_______________________________________________
			mrtg mailing list
			mrtg at lists.oetiker.ch
			https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
		
		




		--
		-Kevin
		--
		This message has been scanned for viruses and
		dangerous content by MailScanner <http://www.mailscanner.info/> , and is
		believed to be clean.
	
  _____ 


		_______________________________________________
		mrtg mailing list
		mrtg at lists.oetiker.ch
		https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
		 




_________________________________________________________

Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.
_________________________________________________________

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The state accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
_________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070329/8a2c77e3/attachment.html 


More information about the mrtg mailing list