Sunday, February 8, 2009

CONFIG MRTG

Installing MRTG on a Windows Platform

MRTG is the most popular open source performance measuring tool being used around the world today. While MRTG is open source, it has been widely adopted by major companies everywhere who use it to measure network performance and adherence to SLAs, among other things. For an interesting snapshot of who is using MRTG, and for what purpose, go to MRTG's “Where, What, How” page and have a look at some of the interesting things MRTG is being used to track. Although MRTG started out as an application to measure network performance on routers (MRTG stands for “Multi Router Traffic Grapher“), it is being used today to graph everything from traffic jams in the Netherlands to the local temperature in Wroclaw. If you can provide a numeric value to MRTG, it can produce a graph of it.

This article is going to take you step by step into installing a fully-functional MRTG system, and give you some pointers on where to go from there. We are going to take advantage of some handy shortcuts, for the sake of time. Some of the steps may seem a bit weird initially, but this is the quickest and easiest way to get up and running. And that is the point of this exercise.

We will be relying on a number of pre-compiled packages to get us up and running. You should go fetch them now and have them available when we need them:

I opted to use MRTG Bundle for a number of reasons:

  • It comes with RRDTool, the defacto standard for performance-minded MRTG installations
  • It uses Routers2.cgi for the web front-end, which is generally preferred over the default 14all.cgi.
  • It comes with a small installation of Apache, so you don't have to reduce the security of your IIS server in order to view MRTG's output. This Apache installation runs on Port 9191, so it will not interfere with any IIS installation already running (unless IIS is also running on port 9191, which would be unusual)
  • Includes GetIF, which is a very handy SNMP utility that we will use later to determine the appropriate OID to use within MRTG.
  • It comes with a number of very useful scripts for managing new devices (though we will enhance these slightly)
  • It comes with UNIX-like Cron, which is much more reliable than Windows' built-in scheduler service when it comes to running tasks once a minute.
  • It's dead easy to install

While MRTG also includes a set of PERL binaries, there are a couple things included in Active State's full PERL that we will be relying on in some of the more advanced tasks later on.

So, let's get started:

  1. Make sure the system you will be running MRTG on has SNMP enabled. Set the Read community to something obscure, and not easily guessed. For the purposes of this demonstration, I will use the default “public“ for the Read Community. You should use something more complicated. You should also ensure that remote systems cannot query your SNMP service for information unless you explicitly allow. These are all properties of the SNMP Service's property page, Security tab. Screen shot is available here.
  2. Install Active PERL, taking the defaults. Reboot after installation.
  3. Execute the MRTG Bundle installation package that you downloaded from Open Innovations.
  4. Read and accept the GNU public license.
  5. DO NOT accept the default installation location. If you read the instructions on the page, you will notice they want you to install to “C:\“. Enter “C:\“ in the text box where “c:\mrtg“ is suggested.
  6. Once the installation directory is correctly set to “c:\“, hit Install and observe the files being placed in the appropriate directories. This will take some time, there are a lot of files.
  7. Once finished, you should be left with an MRTG directory on your C drive.
  8. If you have a list of routers or other network devices that you want to have auto-detected for you, edit the c:\mrtg\mrtg\bin\myrouters.txt file. Put each device on a separate line, using the format communitystring@IPAddress. For instance, if you have a router at 10.0.0.1, with a community string of “public“, you would put public@10.0.0.1 in the myrouters.txt file. The initial entry (communitystring@ipaddressofserver) is there just for instructional purposes and should be replaced with a real entry. Entries in this file will be scanned during the next step of the installation, and an MRTG config file will be automatically generated during the next step of the installation. This is particularly handy with switches, where the large number of ports are tedious to configure manually within an MRTG config file. For the purposes of this demonstration, I am listing 2 of my Cisco switches, which are configured for the default “public“ SNMP community. My myrouters.txt file can be viewed here.
  9. Once your myrouters.txt file is complete and saved, open a command prompt and navigate to the c:\mrtg directory
  10. In c:\mrtg, execute the “install.bat“ file.
  11. Hit ENTER after reading the introduction screen. Note the warning that all input must be given in LOWER CASE during this installation process.
  12. Answer “y“ to the question about installing SNMP4W2K on the local machine (you can say no to this, but it gives you a good starting point on making config files for Windows servers), then hit ENTER.
  13. Enter a 1 or 2 when asked how many CPUs the local computer has, then hit ENTER.
  14. A new command window will launch, starting the installation of SNMP4W2K. Follow the prompts to complete that installation.
  15. When the SNMP4W2K install is complete, the command window will close, and a Readme file is displayed. You can safely close that, or read it. Your call.
  16. Notice our original command window has been patiently waiting for us to tell it that SNMP4W2K has finished installing.
  17. Hit ENTER in the original command window to proceed with the MRTG installation
  18. It will prompt you about the MyRouters.txt file. Enter “y“ here if you have configured one as I instructed in Step 8, otherwise enter “n“ and hit return to proceed.
  19. Verify the installation options, enter “y” and hit ENTER to proceed with the installation.
  20. The installation script will proceed to build your initial set of config files, querying the devices you specified in the myrouters.txt file for various interface information. It will then start the necessary services (Apache and Cron), and installation is complete
  21. Open your favorite web browser, and point it to http://localhost:9191. You should be presented with a screen that resembles this.
  22. Congratulations! MRTG is installed. You've earned a Fat Tire.

Upgrading MRTG:

Before you go much further, you will want to upgrade to the latest version of Routers2.cgi and RRDTool:

Upgrading Routers2.cgi:

  1. Go to Routers2.cgi's home page and download the latest version of Routers2.cgi. Note that the current release version has a security flaw, so we will be using one of the Beta versions, v2.14-beta7. These versions roll often, so the link to Beta7 may be old by the time you read this. Use whatever the latest version is.
  2. Unzip the files to your c:\MRTG directory (it will create a directory called routers2-v2.14 as a result)
  3. Open a command window and navigate to the c:\mrtg\routers2-v2.14 directory
  4. Execute the following: perl install.pl (note the following instructions may become inaccurate as future Routers2.cgi versions are released)
  5. Hit Enter to continue past the introduction screen
  6. You may receive warnings of various libraries not being installed. If you have installed the latest version of Active Perl, as I suggested, it is safe to ignore these warnings.
  7. When it asks what drives to check, accept the default of “C“ and hit ENTER
  8. When it asks where you web root is, DO NOT ACCEPT THE DEFAULT. In most cases, the default will be c:\inetpub\wwwroot, which is incorrect. Our installation has put our web files in c:\mrtg\wwwroot. So type that in and hit ENTER.
  9. Enter the same thing for the question about where the CGI files are kept: “c:\mrtg\wwwroot“ and hit ENTER
  10. The next question is about the location of the MRTG config files. Enter “c:\mrtg\mrtg\bin“ and hit ENTER
  11. The next question is about the names of the config files themselves, it is safe to just hit ENTER on this question, taking the default of “*.cfg“
  12. Next it wants to know where the RRD database files are being held. It defaults to c:\mrtg\wwwroot, which is correct. Just hit ENTER.
  13. Next it wants to know where your perl.exe file is located. It will default to c:\mrtg\perl\bin\perl.exe. Accept the default and hit ENTER
  14. Next it asks where your routers2.conf file is located. Although it warns you not to change the default without a good reason, ours is located in c:\mrtg\mrtg\bin\routers2.conf. Enter that in and hit ENTER.
  15. Accept the defaults for the next series of questions (“Activate Routing Table Extensions?“, “How big should K be?“, “Do you want to use authentication?“ and “Can I email the author?“). Feel free to say YES to the emailing question, if you have ready access to a mail server.
  16. Then you will be presented with a summary of the options we have just set, and asked if it's OK to proceed with the installation. Hit ENTER to proceed unless you have made a mistake somewhere along the line.
  17. When asked if you want to overwrite routers2.conf, say “yes“ and hit ENTER
  18. Hit Enter again at the “All Done?“ prompt
  19. Copy \mrtg\wwwroot\index.cgi c:\mrtg\wwwroot\index_cgi.bak
  20. Copy \mrtg\wwwroot\routers2.cgi c:\mrtg\wwwroot\index.cgi
  21. Run “net stop apache“, then “net start apache“ to restart the web server.
  22. You're all done with upgrading Routers2.cgi. Have another Fat Tire.

Upgrading RRDTool:

  1. Go to the RRDTool distribution page and download the latest Win32 binaries (currently v1.0.48)
  2. Unzip them into c:\mrtg\rrdtool\update
  3. Open a command prompt and navigate to c:\mrtg\rrdtool\update\src
  4. Copy the .exe files from each of the 4 “*_release“ directories (tool_release, stats_release, rrd_cgi_release, and bounds_release) to c:\mrtg\rrdtool, overwriting the files that were originally in that directory.
  5. You're done. What the hell, have another Fat Tire!

Tweaking Routers2.conf:

When we upgraded to the latest version of Routers2.cgi, we lost a couple things that we want to get back. One of them was the 6-hour graph, which is now disabled by default. Also, the scale of the graphs is wacky, and shows the maximum possible values at the top, instead of scaling smartly based on the data coming in. This makes for much less useful graphs, especially in environments where the traffic levels are such that they don't even seem to register properly on the graphs.

So, open c:\mrtg\mrtg\bin\routers2.conf in your favorite test editor (TextPad is mine), and make the following changes:

  • Change the line #unscaled = no to unscaled = no, removing the comment tag “#“
  • Change the line #6hour = no to 6hour = yes, removing the comment tag and changing the value to yes
  • If you want 95th Percentile calculations that show the 95% average value over the course of a given graph, remove the # in front of the line #percentile = yes. This can consume a lot of your system's CPU time on a machine monitoring a lot of devices, so don't enable it in environments where you expect the MRTG machine to be working hard already.
  • Uncomment #windowtitle and #pagetitle directives, and set them to something appropriate for your environment. This will change the default page heading from “Router Monitor“ to whatever you enter here.
  • Uncomment #withdate = yes to show the dates on the graphs when they were last generated. This is useful for troubleshooting an MRTG problem.
  • Close your editor, saving changes. The changes will be reflected the next time you refresh your web page.

Adding Devices to MRTG:

Adding devices to MRTG is a 2-step process. First, a new .cfg file must be created for the new device. Then Cron must be configured to regularly poll the device for the graph data. Remember, Cron is the facility we are using to query the devices every minute for metrics.

In the c:\mrtg directory, you will notice a number of handy batch files left behind by the Open Innovations bundle we initially used to install MRTG:

  • Update_MyRouters.bat: This batch file will process the c:\mrtg\mrtg\bin\myrouters.txt file as if they were there during the original installation. A basic cfg file will be built for the device automatically.
  • Manually-run-mrtg.bat: This batch file will run the MRTG process on the localhost.cfg file that was created during installation. This is the exact command that Cron runs every minute on each of your MRTG targets to fetch data for the graphs.

While these batch files are helpful, I found it easier to modify them slightly for my own use:

  • In the manually-run-mrtg.bat file, I replaced “localhost“ with “%1“, which allows me to run the batch file with any cfg file I specify on the command line. I also renamed it to something shorter, for usability reasons. It is now called “UpdateMe.bat“, and you can view it here. I execute it by running Updateme.bat . For instance, if I was making some tweaks to the 10.0.0.252.cfg file, and I didn't want to wait for Cron to get around to updating things, I would just execute updateme.bat 10.0.0.252 and the graphs would be updated immediately in MRTG.
  • I wanted an easy way to add a new device to MRTG without having to go through the myrouters.txt thing. I have enough devices around now that I can usually use an existing cfg file for the new device, instead of having to go through the whole process of generating a fresh cfg using Update_MyRouter.bat. So I made a shortcut batch file for that too, called NewCFG.bat. You can see it here. You must specify the name of the cfg file (without the .cfg extension) at runtime. For instance, if you had a new cfg file called “NewDevice.cfg“, you would run NewCFG.bat NewDevice and it would run the initial MRTG and add the device to the crontab.

Routers.cgi Directives in the device.cfg Files:

I've shown you how your can customize MRTG's display by diving into the Routers2.conf file. If you look through the file, you will see there are many options you can tweak with, and it is fairly well documented.

However, I prefer to use the cfg files for the individual devices to make the majority of my tweaks. And with the latest version of Routers2.cgi, it's terribly easy to do so.

Let's say we want to change the default icon for my Cisco 2916 switch at 10.0.0.252. There are a bunch of icons already made for you in the c:\mrtg\rrdtool\rrdicons directory. I want to change the icons for my Cisco device to a small Cisco icon, which is made available as “cisco-sm.ico” in the rrdicons directory. I also want to change the menu from displaying “10.0.0.252“ to something more friendly, like “2916M-XL“. Here's how it's done:

  1. With your favorite text editor, open the device's cfg file, in this case it's c:\mrtg\mrtg\bin\10.0.0.252.cfg
  2. In the section towards the top, where the Global Defaults are set, add a line that says routers.cgi*Icon: cisco-sm.gif
  3. Add another line that says routers.cgi*ShortDesc: 2916M-XL
  4. Save the file.

The next time your web site is refreshed, it should reflect the changes.

A full list of Routers.cgi directives, and what each does, can be found here.

Conclusion:

I hope I've given you enough information here to get started with MRTG on Windows, and some insight into the potential of the system. Follow-up articles will go into more detail about the configuration options available within the cfg files, as well as how to use WMI and Performance Monitor to query Windows systems for more advanced metrics.

If you notice any errors on this document, or have questions or feedback, please feel free to contact me at beaumonday@qwest.net

Update: Be sure to read this important follow-up about an error some folks are getting after upgrading to Perl 5.8.1 or later.

Posted by Beau Monday on Monday, April 26, 2004 4:06 PM

# Installing MRTG on a Windows Server 4/27/2004 1:49 AM William.Blog()

# re: Installing MRTG on a Windows Platform 6/10/2004 1:49 AM Brian

Hi Beau,
Followed your article on installing MRTG on Windows, but have come across a problem adding devices to be monitored.
I come up with an error
"Possible precedence problem on bitwise"
not sure if this 9is the cause but I can only monitor the local host.
Any ideas, asI have pulled my hair out trying to figure this out.
Thanks
Brian

# re: Installing MRTG on a Windows Platform 7/1/2004 11:18 AM Stephen

Beau,
Like Brian I am also having the same problem. Any help would be GREATLY appriciated. Here is a copy of the error:
Priming /mrtg/mrtg/bin/10.100.10.1.cfg ...
Possible precedence problem on bitwise | operator at c:/mrtg/mrtg/bin\..\lib\mrt
g2/BER.pm line 619.
Priming /mrtg/mrtg/bin/10.2.5.1.cfg ...
Possible precedence problem on bitwise | operator at c:/mrtg/mrtg/bin\..\lib\mrt
g2/BER.pm line 619.

# re: Installing MRTG on a Windows Platform 7/1/2004 1:20 PM Stephen

I am still having the same error as stated above but my real problem was the --ifref global option listed in the .cfg file. It would chocke on that option and comment out my entire cfg. So I edited the updateshellscript.pl (c:\mrtg)file and removed the --ifref option.

All is working fine...except for the "Possible precedence problem on bitwise" What ever that means.

# re: Installing MRTG on a Windows Platform 7/1/2004 6:36 PM Dan Foxley

I'm getting the same error...

# re: Installing MRTG on a Windows Platform 7/14/2004 8:07 PM rouel

am also experiencing the same thing....

# re: Installing MRTG on a Windows Platform 7/15/2004 9:22 PM Beau

I have the solution to the precedence problem! Please read this blog entry:
http://bmonday.com/archive/2004/07/15/907.aspx

Best regards
Beau

# re: Installing MRTG on a Windows Platform 7/18/2004 1:51 AM Budi

would you please explain to me how to install RRD Tool at windows 2000( windows platform)

thanks

# re: Installing MRTG on a Windows Platform 7/18/2004 10:29 AM Beau

This article was written using Windows 2000 as the target platform. What's the problem, Budi?

# re: Installing MRTG on a Windows Platform 7/20/2004 8:55 AM Stephen

Beau,
Your fix for the "Possible precedence problem on bitwise" works like a charm. Thanks for taking the time to find the fix and posting it.

# re: problem on monitoring serial 7/28/2004 7:28 PM rouel

i have a problem with one of my serial interfaces. it is always commented out by cfgmaker because "it has a speed of 0". I've tried editing the config file by placing some speed value and un-commenting the lines. The serial in question appeared in the web but no graphs, and no rrd file has been created. how can correct this? thanks

# re: Installing MRTG on a Windows Platform 7/30/2004 12:35 AM Goo

i have another problem with mrtg bundle.. i can create the cfg file but there is no graph created... what is wrong??
btw, i have solve the bitwise problem using help here...

# re: problem on monitoring serial 7/30/2004 6:34 AM Jason

Some Cisco interfaces exist as placeholders but don't have anything valid that can be polled. VLAN interfaces are like this, not sure about serial. What kind of device is it?

# re: problem on monitoring serial 8/1/2004 8:10 PM rouel

it's an ImageStream Gateway router... it's a linux-based router. I have also tried changing the OID value using snmpset but to no avail ... thanks.

# re: Installing MRTG on a Windows Platform 10/28/2004 9:25 PM Steve Shipway

Just found this site, very detailed procedure.

Anyone who is having problems with the routers2 frontend, should check out the forum at steveshipway.org/forum for help and advice.

Also, since the MRTG Bundle is getting more and more popular, I am reconfiguring the install.pl script for routers2 to detect it and default appropriately (making your upgrade job detailed above easier). This will be available from v2.15b6 and onwards.

Kudos to Beau for the articles!

# re: Installing MRTG on a Windows Platform 11/2/2004 3:25 PM Andrew

This tutorial is awesome! thanks Beau!

# re: Installing MRTG on a Windows Platform 11/17/2004 11:32 PM Nick

I recently installed the MRTG Bundle v2.1.0 on a Win 2K3 Server and I am getting what seems to be a Perl error every time MRTG attempts to run. I am running MRTG as administrator so I don't think it's a permissions issue. The entries in the mrtg.log are as follows:

2004-11-17 23:23:52 -- Started mrtg
2004-11-17 23:23:52 -- readline() on closed filehandle NF at c:/mrtg/mrtg/bin/mrtg line 1019.
2004-11-17 23:23:52 -- Use of uninitialized value in concatenation (.) or string at c:/mrtg/mrtg/bin/mrtg line 1114.

If anyone has run into this problem I would greatly appreciate a pointer in the right direction.

# re: Installing MRTG on a Windows Platform 12/1/2004 7:59 AM Don elledge

I have the same problem as nick nick did you ever figure out how to fix this problem
readline() on closed filehandle NF at mrtg line 1019.

# re: Installing MRTG on a Windows Platform 12/1/2004 8:07 PM Paul Wozney

I managed to make the errors go away.

I edited c:/mrtg/mrtg/bin/mrtg:

#open NF, "$$cfg{'workdir'}${main::SL}$$rcfg{'directory'}{$router}$router.95";
open NF, "$$cfg{'workdir'}$router.log";

It looks like it's a misconfiguration in the script.

However it's a bit late and I'm hungry so I'm not entirely certain this is going to work that well; but I thought I'd get you guys on the right track to hacking your own mrtg install.

Paul

# re: Installing MRTG on a Windows Platform 12/9/2004 9:25 AM Paul Wozney

Just a note - This hack of mine seems to have worked.

# How to chnage Description of Serial interfaces 1/19/2005 2:25 AM rahul d

I want to change the Description of targets, how to do that, for example i want se2/0 to be read as mylink.

# Update_MyRouters.bat ? where is it? 1/21/2005 12:52 PM Marcus

Cannot find the file Update_MyRouters.bat

# re: Installing MRTG on a Windows Platform 1/25/2005 3:42 PM Rob Miranda

I am having problems installing. I don't get the past step 10. It never gives me a warning like stated in step 11. Anyone got any ideas? I am trying to install it on a win 2k server.

# re: Installing MRTG on a Windows Platform 1/26/2005 7:22 AM kafel

mrtg bundle.I can create the cfg file but there is no graph and rrd file created what is wrong

# re: Installing MRTG on a Windows Platform 2/2/2005 12:06 AM Gavin

Hello, I also could did not get past step 10. Install.bat runs through some cfg files I think and then launches the services (Apache, Cron, MRTG), no warnings and nothing seems to work. Localhost is demanding a password and localhost:9191 does not seem to exist. Would appreciate any suggestions on how to fix this.

# re: Installing MRTG on a Windows Platform 2/2/2005 7:52 PM Eric

How do I get past the
Error:
can't resolve "$DEVICE" to IP address


C:\mrtg\rrdtool>perl c:/mrtg/mrtg/bin/cfgmaker --global "Interval: 1" --global "
PathAdd: c:\\mrtg\\rrdtool" --global "LogFormat: rrdtool" --global "WithPeak[_]:
ymw" --global "workdir: c:\\mrtg/wwwroot" --global "Options[_]: bits,growright"
--ifref=name --ifdesc=name --descint --no-down 67.43.152.226 > /mrtg/mrtg/bin/`
echo $DEVICE | cut -d "@" -f 2`.cfg
cut: invalid byte or field list
Try `cut --help' for more information.
--base: Get Device Info on public@67.43.152.226:
--base: Vendor Id:
--base: Populating confcache
--snpo: confcache public@67.43.152.226: Descr eth0 --> 1
--snpo: confcache public@67.43.152.226: Descr lo0 --> 2
--snpo: confcache public@67.43.152.226: Descr eth1 --> 3
--snpo: confcache public@67.43.152.226: Descr eth2 --> 4
--snpo: confcache public@67.43.152.226: Ip 0.0.0.0 --> 3
--snpo: confcache public@67.43.152.226: Ip 67.43.152.226 --> 1
--snpo: confcache public@67.43.152.226: Ip 127.0.0.1 --> 2
--snpo: Skipping ifName scanning because public@67.43.152.226: does not seem to
support it
--snpo: confcache public@67.43.152.226: Type 6 --> 1
--snpo: confcache public@67.43.152.226: Type 24 --> 2
--snpo: confcache public@67.43.152.226: Type 6 --> 3 (duplicate)
--snpo: confcache public@67.43.152.226: Type 6 --> 4 (duplicate)
--snpo: confcache public@67.43.152.226: Eth 00-06-b1-11-0b-8a --> 1
--snpo: confcache public@67.43.152.226: Eth --> 2
--snpo: confcache public@67.43.152.226: Eth 00-06-b1-11-0b-89 --> 3
--snpo: confcache public@67.43.152.226: Eth 00-06-b1-11-0b-88 --> 4
--base: Get Interface Info
--base: Walking ifIndex
--base: Walking ifType
--base: Walking ifAdminStatus
--base: Walking ifOperStatus
--base: Walking ifSpeed
--base: Get Device Info on public@$DEVICE:
Error:
can't resolve "$DEVICE" to IP address
at c:/mrtg/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 400
SNMPWALK Problem for public@$DEVICE:
at c:/mrtg/mrtg/bin/cfgmaker line 689

# re: Installing MRTG on a Windows Platform 2/2/2005 7:58 PM Eric

Ok, i feel dumb. here is my real issue

### * --ifref=name is not unique for this interface

because of this,no rrd file is created. Please help

# re: Installing MRTG on a Windows Platform 2/3/2005 12:19 PM Franq

Error when opening http://localhost:9191/

Cannot read config file c:\mrtg\mrtg\bin\routers2.conf.

==============================================
Error in the command prompt:

Here is all the information that I have gathered before I proceed:
--> You have installed SNMP on this local machine so it can be added to MRTG.
--> You have 1 processors.
--> You have prepared a "c:\mrtg\mrtg\bin\myrouters.txt" file

Do you wish to continue with these options? (y/n) -->
y
c:\mrtg\shellscript.sh: no matches found: /mrtg/mrtg/bin/*.cfg [128]
c:\mrtg\shellscript.sh: permission denied: c:/mrtg/mrtg/bin/localhost.cfg [132]
c:\mrtg\shellscript.sh: permission denied: c:/mrtg/mrtg/bin/localhost.cfg [137]
c:\mrtg\shellscript.sh: permission denied: c:/mrtg/mrtg/bin/localhost.cfg [139]
c:\mrtg\shellscript.sh: permission denied: c:/mrtg/mrtg/bin/localhost.cfg [140]
c:\mrtg\bin\cat.EXE: /mrtg/mrtg/bin/myrouters.txt: No such file or directory
c:\mrtg\shellscript.sh: no matches found: /mrtg/mrtg/bin/*.cfg [163]

This service has already been started!

This service has already been started!

The Apache service was stopped successfully.

The Apache service is starting.
The Apache service was started successfully.


The Cron service was stopped successfully.

The Cron service is starting.
The Cron service was started successfully.

# re: Installing MRTG on a Windows Platform 2/3/2005 12:25 PM Franq

Anybody who could help me solve my problem? Thanks in advance!

# re: Installing MRTG on a Windows Platform -- Cron Issue 2/3/2005 7:20 PM Paulo Silva Jr

Hi Beau,

I just installed the MRTG following your lead and it installed all right on the first shot.
Thanks a million!!!

But... (there's always a but)

I know it's not a big issue but its quite annoying once I'm monitoring the machine where I work. Is there any way to hide the DOS window everytime the cron runs?

Or, if not, can I change the settings on the crontable to the, let's say, scheduler? (I know it's a sacriledge.. but hey we're running Windows, huh?)

Thanks a million once again...

Paulo

# re: Installing MRTG on a Windows Platform 2/9/2005 1:14 PM How to add a SNMP OID to be able monitor the CPU o

I want to know how we can monitor the CPU of a Cisco router. I know we have to get the SNMP OID but afterthat what we do with that.

# re: Installing MRTG on a Windows Platform 2/9/2005 5:40 PM Roger Sanchez

Hi, thanks for the great document. I just have 1 suggestion. You have a section on adding devices to mrtg, is it similar steps to add a windows server? I would like something like the localhost option, but need to point it to monitor another windows server.

Thanks again
Roger Sanchez

# re: Installing MRTG on a Windows Platform 2/16/2005 12:54 PM Tolli

Had to use this to install GD:
ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd

and this to install rrds:
ppm install rrds.ppd

Then it worked. Also used your suggested bitwise fix.

I'd like to see more information on how to monitor windows systems with MRTG, expecially by grabbing perfmon counters.

# re: Installing MRTG on a Windows Platform 2/22/2005 10:40 AM Greg Dzurinda

I am having issues after the install. Thought it went smooth, but when I go to IE and type in http://localhost:9191, I get the following error when I choose localhost:
----------------------------------------------
CPU1

Error reading RRD database c:\mrtg\wwwroot\cpu1.rrd
opening 'c:\mrtg\wwwroot\cpu1.rrd': No such file or directory

You can visit the configuration verification page here.

File: [localhost.cfg] localhost
Target: CPU1
Target list: localhost.memoryUsed, storageUsed-C, CPU1
-----------------------------------------------

When I look at the configuration verification page, everything looks fine except I get this error under the "MRTG Targets Check":

Target
RRD File
localhost.memoryUsed
c:\mrtg\wwwroot\localhost.memoryused.rrd
Unable to read RRD file!
storageUsed-C
c:\mrtg\wwwroot\storageused-c.rrd
Unable to read RRD file!
CPU1
c:\mrtg\wwwroot\cpu1.rrd
Unable to read RRD file!
-------------------------------------------
Can anyone help me with this? Thanks in advance for any help!

# re: Installing MRTG on a Windows Platform 2/22/2005 12:00 PM Greg Dzurinda

Well...I realized I actually don't have any .rrd files in the c:\mrtg\wwwroot directory. I wonder how the heck that would be. I followed the directions to a T!

# re: Installing MRTG on a Windows Platform 3/7/2005 8:22 PM Sree

Error reading RRD database c:\\inetpub\\earth\par\10.12.12.2_se0_0.2.rrd

# re: MRTG DSL/PPPoE with dynamic IP on Win2K 3/9/2005 2:01 AM Veek

Hello, I cant seem to figure out what option to give perl cfgmaker. I have a Dynamic IP alloted to me.I use RASPPPoE for win2K to dial over ethernet(PPPoE) and get a dynamic ip.
I cant specify hostname or ip since the ip changes every time i dial out. I would like to specify based on --ifref=nr --ifref=eth
--ifref=descr --ifref=name --ifref=type
but i dont know what to use.. and what the eth/nr/type/desc fields should be.
I use the snmp provided by Microsoft for win2k professional.
Please help

# re: Installing MRTG on a Windows Platform 4/5/2005 4:49 AM ari

Hi
I have successfully install mrtg on my network.I'm monitoring 17 routers , but i no display CPU performance of my devices. Someone can help me please

# re: Installing MRTG on a Windows Platform 4/7/2005 2:09 PM Frank

Hi, I found my MRTG only work well with the localhost(my test PC with windows XP), the other network deivces for the testing - tow san switches - never ever appear.
I found the cfg files for localhost and swithcs are different in c:\mrtg\mrtg\bin.
the cfg file for localhost likes the following:
# Created by
# c:/mrtg/mrtg/bin/cfgmaker --global 'Interval: 1' --global 'PathAdd: c:\mrtg\rrdtool' --global 'LogFormat: rrdtool' --global 'WithPeak[_]: ymw' --global 'workdir: c:\mrtg/wwwroot' --global 'Options[_]: bits,growright' --ifref=ip --ifdesc=name --descint --no-down public@localhost


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

Interval: 1
PathAdd: c:\mrtg\rrdtool
LogFormat: rrdtool
WithPeak[_]: ymw
workdir: c:\mrtg/wwwroot
Options[_]: bits,growright

######################################################################
# System: OCHISFW
# Description: Hardware: x86 Family 15 Model 2 Stepping 9 AT/AT COMPATIBLE - Software: Windows 2000 Version 5.1 (Build 2600 Multiprocessor Free)
# Contact:
# Location:
######################################################################


### Interface 1 >> Descr: 'MS-TCP-Loopback-interface' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[localhost_127.0.0.1]: /127.0.0.1:public@localhost:
# SetEnv[localhost_127.0.0.1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="MS-TCP-Loopback-interface"
# MaxBytes[localhost_127.0.0.1]: 1250000
# Title[localhost_127.0.0.1]: 127.0.0.1 -- OCHISFW
# PageTop[localhost_127.0.0.1]:

127.0.0.1 -- OCHISFW


#
#
#
#
#
#
#
#
#
System: OCHISFW in
Maintainer:
Description:MS-TCP-Loopback-interface
ifType: softwareLoopback (24)
ifName:
Max Speed: 10.0 Mbits/s
Ip: 127.0.0.1 (localhost)



### Interface 65539 >> Descr: 'Intel(R)-PRO/1000-MT-Network-Connection' | Name: '' | Ip: '172.15.101.176' | Eth: '00-0d-56-f9-e5-fa' ###

Target[localhost_172.15.101.176]: /172.15.101.176:public@localhost:
SetEnv[localhost_172.15.101.176]: MRTG_INT_IP="172.15.101.176" MRTG_INT_DESCR="Intel(R)-PRO/1000-MT-Network-Connection"
MaxBytes[localhost_172.15.101.176]: 12500000
Title[localhost_172.15.101.176]: 172.15.101.176 -- OCHISFW
PageTop[localhost_172.15.101.176]:

172.15.101.176 -- OCHISFW










System: OCHISFW in
Maintainer:
Description:Intel(R)-PRO/1000-MT-Network-Connection
ifType: ethernetCsmacd (6)
ifName:
Max Speed: 100.0 Mbits/s
Ip: 172.15.101.176 (OCHISFW.gbhs.on.ca)



Target[CPU1]: .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.48&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.48:public@localhost
RouterUptime[CPU1]: public@localhost
MaxBytes[CPU1]: 100
Title[cpu1]: CPU1
PageTop[CPU1]:

localhost CPU Utilization


ShortLegend[CPU1]: %
YLegend[CPU1]: CPU Utilization
Legend1[CPU1]: CPU Utilization in % (Load)
Legend2[CPU1]:
LegendI[CPU1]: Load:
LegendO[CPU1]:
Options[CPU1]: gauge, integer, nopercent, NOI

YLegend[storageUsed-C]: % Disk Used
WithPeak[storageUsed-C]: ymw
XSize[storageUsed-C]: 300
Options[storageUsed-C]: growright,gauge
Target[storageUsed-C]: .1.3.6.1.2.1.25.2.3.1.6.2&.1.3.6.1.2.1.25.2.3.1.6.2:public@localhost / .1.3.6.1.2.1.25.2.3.1.5.2&.1.3.6.1.2.1.25.2.3.1.5.2:public@localhost * 100
MaxBytes[storageUsed-C]: 523444000
Title[storageUsed-C]: Disk Used
ShortLegend[storageUsed-C]: %
Legend1[storageUsed-C]: C: in next minute
Legend2[storageUsed-C]: C: in next minute
Legend3[storageUsed-C]: Maximal 5 Minute C:
Legend4[storageUsed-C]: Maximal 5 Minute C:
LegendI[storageUsed-C]: C:
LegendO[storageUsed-C]: C:
PageTop[storageUsed-C]:

Local Host C Drive



YLegend[localhost.memoryUsed]: % Memory Used
WithPeak[localhost.memoryUsed]: ymw
XSize[localhost.memoryUsed]: 300
Options[localhost.memoryUsed]: growright,gauge
Target[localhost.memoryUsed]: .1.3.6.1.2.1.25.2.3.1.5.2&.1.3.6.1.2.1.25.2.3.1.5.2:public@localhost / .1.3.6.1.2.1.25.2.2.0&.1.3.6.1.2.1.25.2.2.0:public@localhost * 100
MaxBytes[localhost.memoryUsed]: 523444000
Title[localhost.memoryUsed]: Memory Used
ShortLegend[localhost.memoryUsed]: %
Legend1[localhost.memoryUsed]: Vir in next minute
Legend2[localhost.memoryUsed]: Phy in next minute
Legend3[localhost.memoryUsed]: Maximal 5 Minute Vir
Legend4[localhost.memoryUsed]: Maximal 5 Minute Phy
LegendI[localhost.memoryUsed]: Vir
LegendO[localhost.memoryUsed]: Phy
PageTop[localhost.memoryUsed]:

Local Host Memory



the cfg file was pasted as the below:
# Created by
# c:/mrtg/mrtg/bin/cfgmaker --global 'Interval: 1' --global 'PathAdd: c:\mrtg\rrdtool' --global 'LogFormat: rrdtool' --global 'WithPeak[_]: ymw' --global 'workdir: c:\mrtg/wwwroot' --global 'Options[_]: bits,growright' --ifref=name --ifdesc=name --descint --no-down public@172.15.103.178


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

Interval: 1
PathAdd: c:\mrtg\rrdtool
LogFormat: rrdtool
WithPeak[_]: ymw
workdir: c:\mrtg/wwwroot
Options[_]: bits,growright

######################################################################
# System: ONSANs1
# Description: MCDATA Sphereon 4500 Model 001 Fibre Channel Switch, firmware 06.02.00 22
# Contact: Dave Skinner ext. 2184
# Location: GBHS 1800, 8th St. E. Owen Sound N4K 6M9
######################################################################


### Interface 1 >> Descr: 'lo0' | Name: '' | Ip: '' | Eth: '00-00-00-00-00-00' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
### * --ifref=name is not unique for this interface
#
# Target[172.15.103.178_1]: 1:public@172.15.103.178:
# SetEnv[172.15.103.178_1]: MRTG_INT_IP="" MRTG_INT_DESCR="lo0"
# MaxBytes[172.15.103.178_1]: 1250000
# Title[172.15.103.178_1]: 1 -- ONSANs1
# PageTop[172.15.103.178_1]:

1 -- ONSANs1


#
#
#
#
#
#
#
#
System: ONSANs1 in GBHS 1800, 8th St. E. Owen Sound N4K 6M9
Maintainer: Dave Skinner ext. 2184
Description:lo0
ifType: softwareLoopback (24)
ifName:
Max Speed: 10.0 Mbits/s



### Interface 2 >> Descr: 'emac0' | Name: '' | Ip: '127.0.0.1' | Eth: '08-00-88-02-03-2f' ###
### The following interface is commented out because:
### * --ifref=name is not unique for this interface
#
# Target[172.15.103.178_2]: 2:public@172.15.103.178:
# SetEnv[172.15.103.178_2]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="emac0"
# MaxBytes[172.15.103.178_2]: 1250000
# Title[172.15.103.178_2]: 2 -- ONSANs1
# PageTop[172.15.103.178_2]:

2 -- ONSANs1


#
#
#
#
#
#
#
#
#
System: ONSANs1 in GBHS 1800, 8th St. E. Owen Sound N4K 6M9
Maintainer: Dave Skinner ext. 2184
Description:emac0
ifType: ethernetCsmacd (6)
ifName:
Max Speed: 10.0 Mbits/s
Ip: 127.0.0.1 (localhost)


beside these, I can not find the switch's rrd file in c:\mrtg\wwwroot.

any idea?

Thanks a lot!

Frank W.

# re: Installing MRTG on a Windows Platform 4/13/2005 3:14 AM Yus

so far so good..have installed mrtg and able to run ..but noticed though the following errors on da bat files:

Useless use of a constant in void context at c:/mrtg/bin\..\lib\mrtg2/BER.pm line 355.

Anyone has any idea whats causing it?

# re: Installing MRTG on a Windows Platform 4/19/2005 10:30 AM Travis

I just wanted to say a great big "THANK YOU!" I've been using MRTG's basic format and recently stumbled across this site by fluke. I now have a second instance of MRTG running the bundle package and it is So much more advanced!! You guys Rock!

# re: Installing MRTG on a Windows Platform 4/20/2005 10:24 AM Travis -- again

Despite my initial enthusiasm I’ve hit a snag. Everything seems to set up fine with my one router in my routers.txt. However I’m trying to add a UPS device we use for monitoring Temperature and voltage (I know it CAN be done, we have the basic MRTG monitoring it now).
If I add the community string and IP to the my routers.txt I get the infamous “precedence problem” error. I’ve run the fix and now I’m getting “The following interface is commented out because:=* --ifref=name is not unique for this interface” issue.
I’ve tried the fix mentioned by Stephen “# re: Installing MRTG on a Windows Platform 7/1/2004 1:20 PM”
Now I’m getting “Error reading RRD database c:\mrtg/wwwroot\(IP Address Here).rrd
opening 'c:\mrtg/wwwroot\(IP Address Here).rrd': No such file or directory” and sure enough there is no rrd file for this device.
Is there some way to fix this? Why am I not getting an RRD file for this device?

# re: Installing MRTG on a Windows Platform 4/21/2005 10:21 PM Vasant Gaonkar

Hi,
I have a query regarding Adding new device to Mrtg.Whenever I add new device in Myrouters.txt then i have to run Update_MyRouters.bat file which starts the entire process again.

By doing this My previous configration gets deleted ie changes made to devices.cfg file gets deleted and i have to manually change it Again.

Is there any Solution for only changing the new device added.

# re: Installing MRTG on a Windows Platform 5/13/2005 6:17 PM Bob Farrell

Can not extract any routers2.cgi file higher than than v2.14-beta7.

Thoughts ?

# re: Installing MRTG on a Windows Platform 5/18/2005 12:56 PM TS

Thank you very Beau. I am so glad to have found this information. We were using plain MRTG prior to this and this sure is better!!

I followed your directions to a "T". I found a few minor issues which I have worked through. I have updated all additional packages (Perl, Routers2.cgi, RRDTool, etc.) to the latest versions. Everything appears to be working great except for collecting data from localhost (receive the errors "Error reading RRD database c:\mrtg\wwwroot\cpu1.rrd" "opening 'c:\mrtg\wwwroot\cpu1.rrd': No such file or directory", "Error reading RRD database" "c:\mrtg\wwwroot\storageused-c.rrd
opening 'c:\mrtg\wwwroot\storageused-c.rrd': No such file or directory" and "Error reading RRD database c:\mrtg\wwwroot\localhost.memoryused.rrd"
"opening 'c:\mrtg\wwwroot\localhost.memoryused.rrd': No such file or directory", these files just don't exist.) I've checked local SNMP configuration, all seems good. I'm running on Windows 2000 Server w/ latest service packs, critical and security updates installed.

Any ideas?

Second major problem is that on one of our WAN routers (we have two currently configured), which is a Cisco 3745, we do not get any data collected for the #Se0/0:0 thru #Se3/1:0 interfaces (about 8 total). I've checked through the .cfg files and all looks good. The charts show up, but all is blank. The in and out is listed as follows:

In: Max -1.#J , Avg -1.#J , Last -1.#J
Out: Max -1.#J , Avg -1.#J , Last -1.#J

Any ideas?

Thank you again!

# re: Installing MRTG on a Windows Platform 5/18/2005 9:22 PM TS

Here's a quick update... The Cisco 3745 router T1 serial interfaces had a colon (:) in the name, like s0/0:0 and s0/0:1, etc. And, somehow when the original .cfg files were built, instead of sticking one backslash (\) before the colon, there were two! I removed one of the backslashes and it is working.

Now I just need to figure out the problem with "name is not unique for this interface" that I'm getting for my firewall! oh, and that strange localhost problem (nothing displayed).

Thanks again!

# re: Installing MRTG on a Windows Platform 5/23/2005 11:16 PM stone_redhat

Hi,

I have succesfuuly installed and Configured Mrtg-rrd.The Docuentation is great.
But i have one minor issue regarding changing time of 1 second in cron. Is it possible to change the time and how? Please suugest

Thank you

# re: Installing MRTG on a Windows Platform 5/27/2005 5:57 AM nihar ramineni

problem I am unable to generate the graphs in the mrtg after updateing the myrouter.txt
no error message is being generated

# re: Installing MRTG on a Windows Platform 5/27/2005 6:00 AM nihar ramineni


hai the same when starting the mrtg manually it is not the ip config that is ex: 192.168.1.76.cfg so please help me out in this
issue my mail id is
rnihar@gmail.com

# re: Installing MRTG on a Windows Platform 6/9/2005 1:43 AM Ramineni Nihar

y
--base: Get Device Info on public@192.168.1.76:
SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.1.76" [192.168.1.76].161)
community: "public"
request ID: -1714545641
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at c:/mrtg/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 570
SNMPWALK Problem for 1.3.6.1.2.1.1 on public@192.168.1.76:
at c:/mrtg/mrtg/bin/cfgmaker line 689
--base: Get Device Info on public@127.0.0.1:
--base: Vendor Id:
--base: Populating confcache

I am getting SNMPWALK Problem the error message is given above can any one help me on this issue my mail id is rnihar@gmail.com

# re: Installing MRTG on a Windows Platform 6/9/2005 12:07 PM Matthew Hickey

Hi,
I am having the same problem as most, no rrd file,
I have followed everything and as of yet still have no graph,
NOT ONE.


Thanks
matthew@whiteoaktransport.com

# re: Installing MRTG on a Windows Platform 6/17/2005 2:55 PM trevor

fixed the

### * --ifref=name is not unique for this interface

error for my devices...

http://mrtg.hdl.com/cfgmaker.html

The Update_MyRouters.bat calls the updateshellscript.sh, which in turn runs the cfgmaker to make the config files. The updateshellscript.sh (found in c:\mrtg\) calls cfgmaker with the --ifref=name flag. I changed this to --ifref=nr (the default) and it fixed my problems.

# re: Installing MRTG on a Windows Platform 6/20/2005 3:02 PM Wil

You may need to update both the shellscript.sh and updateshellscript.sh to point to the correct Work Directory in order to see the rrd files. Make sure it points to the following:
workdir: c:\\mrtg\wwwroot instead of c:\\mrtg/wwwroot.



# re: Installing MRTG on a Windows Platform 6/23/2005 10:29 AM Chris

Ok I got everything working... but how do you add a CPU or something else for it to scan?

# re: Installing MRTG on a Windows Platform 6/27/2005 7:28 AM Matt

Beau first I would like to say this is great and my hat is off to you for puttig together a great set of instructions on how to get this MRTG deployment up and running.

Everything appeared to be working correctly until I started to put a load onto the server running this package. I have "roughly" 215 devices that I need to monitor with several interfaces on each. It appears that the perl.exe resource is consuming over 95% of the servers resources. I have set the priority on this service to low; however, the box is still overwhelmed. Currently it is running on a 2kS/700mhZ/500M RAM. Do you have any suggestions on tweaking perl.exe or suggestions on the hardware requirements?

Again thank you very much for putting this all together.

# re: Installing MRTG on a Windows Platform 6/29/2005 10:16 AM Amjad

Thank you, I installed nrtg rrdtool successfully, when i type http://localhost:9191 it displays all the stats for the local host, how can i see displays of other devices on the network, i have created the cfg files, when chech the mrtg cfg file for that specific device its got visible=NO, please advice -- Can i monitor PC's and servers

# monitor pc's and server 6/30/2005 4:56 AM Amjad

Can you monitor pc's and servers using rdtool and routers2.cgi.

If yes can enter the device details in the routers.txt file to create the cfg file.

Please advice me

# re: Installing MRTG on a Windows Platform 7/29/2005 8:07 PM stec

I just got my box up and running - so how can I add some security to allow browser access with username & password?

# re: Installing MRTG on a Windows Platform 8/5/2005 11:53 AM Thomas

I will like to make a copy of the rrd database to an SQL server on my network. I' having problems identifying the tables and fields used to innitatate that on SQl.
Any ideas?

# Unable to Read RRD file! 8/17/2005 8:01 AM uma

I am having issues after the install. Thought it went smooth, but when I go to IE and type in http://localhost:9191, I get the following error when I choose localhost:
----------------------------------------------
CPU1

Error reading RRD database c:\mrtg\wwwroot\cpu1.rrd
opening 'c:\mrtg\wwwroot\cpu1.rrd': No such file or directory

You can visit the configuration verification page here.

File: [localhost.cfg] localhost
Target: CPU1
Target list: localhost.memoryUsed, storageUsed-C, CPU1
-----------------------------------------------

When I look at the configuration verification page, everything looks fine except I get this error under the "MRTG Targets Check":

Target
RRD File
localhost.memoryUsed
c:\mrtg\wwwroot\localhost.memoryused.rrd
Unable to read RRD file!
storageUsed-C
c:\mrtg\wwwroot\storageused-c.rrd
Unable to read RRD file!
CPU1
c:\mrtg\wwwroot\cpu1.rrd
Unable to read RRD file!
-------------------------------------------
Can anyone help me with this? Thanks in advance for any help!

# re: MRTG DSL/PPPoE with dynamic IP on Win2K 9/3/2005 1:40 AM muheeb

veek,

if you find out please post it here so we can all benfit. I am doing the same but I cant figure out hwo it can be done

Muheeb

# Obtain OID via Win2003 9/6/2005 12:06 PM asingh

Hi,

I have installed the bundle from Open Innovation's and have MRTG/RRDTool running. The cfg file only had the NIC in the system, I have tried to use Getif to obtain the CPU OID but I am still having problems getting the CPU working, I have not even tried to get mem or disk section working yet. I also have SNMP-Informant installed. I am not sure if I am using the correct OID...(How to know for sure?)

The graph that is displayed for the CPU does not change values, Max,Avg,Cur Load are always at -1%. The time updated on the page

Here is a cfg I have been testing with,
# Created by
# c:/mrtg/mrtg/bin/cfgmaker --global 'Interval: 1' --global 'PathAdd: c:\mrtg\rrdtool' --global 'LogFormat: rrdtool' --global 'WithPeak[_]: ymw' --global 'workdir: c:\mrtg\wwwroot' --global 'Options[_]: bits,growright' --ifref=nr --ifdesc=name --descint --no-down trans@165.154.67.203


### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

Interval: 1
PathAdd: c:\mrtg\rrdtool
LogFormat: rrdtool
WithPeak[_]: ymw
workdir: c:\mrtg\wwwroot
LoadMIBs: C:\Program Files\SNMP Informant\standard\mibs\SMIv2\WTCS.MIB,C:\Program Files\SNMP Informant\standard\mibs\SMIv2\INFORMANT-STD.MIB
Options[_]: bits,growright

######################################################################
# System: LAB01
# Description: Hardware: x86 Family 15 Model 2 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 5.2 (Build 3790 Uniprocessor Free)
# Contact:
# Location:
######################################################################


### Interface 1 >> Descr: 'MS-TCP-Loopback-interface' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[165.154.67.203_1]: 1:trans@165.154.67.203:
# SetEnv[165.154.67.203_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="MS-TCP-Loopback-interface"
# MaxBytes[165.154.67.203_1]: 1250000
# Title[165.154.67.203_1]: 1 -- LAB01
# PageTop[165.154.67.203_1]:

1 -- LAB01


#
#
#
#
#
#
#
#
#
System: LAB01 in
Maintainer:
Description:MS-TCP-Loopback-interface
ifType: softwareLoopback (24)
ifName:
Max Speed: 10.0 Mbits/s
Ip: 127.0.0.1 (lab01)



### Interface 65539 >> Descr: 'VIA-Rhine-II-Compatible-Fast-Ethernet-Adapter' | Name: '' | Ip: '165.154.67.203' | Eth: '00-0b-6a-0a-21-b2' ###

Target[165.154.67.203_65539]: 65539:trans@165.154.67.203:
SetEnv[165.154.67.203_65539]: MRTG_INT_IP="165.154.67.203" MRTG_INT_DESCR="VIA-Rhine-II-Compatible-Fast-Ethernet-Adapter"
MaxBytes[165.154.67.203_65539]: 1250000
Title[165.154.67.203_65539]: 65539 -- LAB01
PageTop[165.154.67.203_65539]:

65539 -- LAB01










System: LAB01 in
Maintainer:
Description:VIA-Rhine-II-Compatible-Fast-Ethernet-Adapter
ifType: ethernetCsmacd (6)
ifName:
Max Speed: 10.0 Mbits/s
Ip: 165.154.67.203 (lab01.transfreight.org)



Target[CPU1]: .1.3.6.1.4.1.9600.1.1.5.1.1&.1.3.6.1.4.1.9600.1.1.5.1.10:trans@165.154.67.203
#.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.48&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.48:public@localhost
RouterUptime[CPU1]: trans@165.154.67.203
MaxBytes[CPU1]: 100
Title[cpu1]: CPU1
PageTop[CPU1]:

localhost CPU Utilization


ShortLegend[CPU1]: %
YLegend[CPU1]: CPU Utilization
Legend1[CPU1]: CPU Utilization in % (Load)
Legend2[CPU1]: QueuedPerSec
LegendI[CPU1]: Load:
LegendO[CPU1]:
Options[CPU1]: gauge, integer, nopercent, NOI


YLegend[storageUsed-C]: % Disk Used
WithPeak[storageUsed-C]: ymw
XSize[storageUsed-C]: 300
Options[storageUsed-C]: growright,gauge
Target[storageUsed-C]: .1.3.6.1.2.1.25.2.3.1.6.2&.1.3.6.1.2.1.25.2.3.1.6.2:public@localhost / .1.3.6.1.2.1.25.2.3.1.5.2&.1.3.6.1.2.1.25.2.3.1.5.2:public@localhost * 100
MaxBytes[storageUsed-C]: 523444000
Title[storageUsed-C]: Disk Used
ShortLegend[storageUsed-C]: %
Legend1[storageUsed-C]: C: in next minute
Legend2[storageUsed-C]: C: in next minute
Legend3[storageUsed-C]: Maximal 5 Minute C:
Legend4[storageUsed-C]: Maximal 5 Minute C:
LegendI[storageUsed-C]: C:
LegendO[storageUsed-C]: C:
PageTop[storageUsed-C]:

Local Host C Drive



YLegend[localhost.memoryUsed]: % Memory Used
WithPeak[localhost.memoryUsed]: ymw
XSize[localhost.memoryUsed]: 300
Options[localhost.memoryUsed]: growright,gauge
Target[localhost.memoryUsed]: .1.3.6.1.2.1.25.2.3.1.5.2&.1.3.6.1.2.1.25.2.3.1.5.2:public@localhost / .1.3.6.1.2.1.25.2.2.0&.1.3.6.1.2.1.25.2.2.0:public@localhost * 100
MaxBytes[localhost.memoryUsed]: 523444000
Title[localhost.memoryUsed]: Memory Used
ShortLegend[localhost.memoryUsed]: %
Legend1[localhost.memoryUsed]: Vir in next minute
Legend2[localhost.memoryUsed]: Phy in next minute
Legend3[localhost.memoryUsed]: Maximal 5 Minute Vir
Legend4[localhost.memoryUsed]: Maximal 5 Minute Phy
LegendI[localhost.memoryUsed]: Vir
LegendO[localhost.memoryUsed]: Phy
PageTop[localhost.memoryUsed]:

Local Host Memory



# re: Installing MRTG on a Windows Platform 9/6/2005 1:56 PM asingh

I have been able to locate the SNMP-Informant OID's via Getif SNMPv1 but I am still having the same problem with the graph not upding with any information.


Thanks in advance.

# Surreal 10/13/2005 10:19 AM bmonday(dot)com

# re: Installing MRTG on a Windows Platform 10/16/2005 11:47 PM wharfratjoe

I am getting the following errors when running the Update_MyRouters.bat file. I changed the
the ifref=name to ifref=nr in the updateshellscript.sh file figuring that may be it.

btw, i had this running before on all my servers on my lan before (memory doesnt serve me well what i did to fix any errors i ran across before to make it work).

C:\mrtg>Update_MyRouters.bat
This script will add any new routers or switches that you've put
into the c:\mrtg\mrtin\myrouters.txt file.

Please note, that this script will create a new crontab file
based on all the config files in c:\mrtg\mrtin\*.cfg.
Any custom changes you've made to the crontab file will be lost.

Example myrouters.txt:
public@localhost
public@router1
secretcommunitystring@switch1
etc.

Do you want to update MRTG with the new myrouters.txt file? (y/n) -->
y
Unknown option: descint
Usage:
cfgmaker [options] [community@]router [[options] [community@]router ...]

Unknown option: descint
Usage:
cfgmaker [options] [community@]router [[options] [community@]router ...]

Unknown option: descint
Usage:
cfgmaker [options] [community@]router [[options] [community@]router ...]

Unknown option: descint
Usage:
cfgmaker [options] [community@]router [[options] [community@]router ...]

Priming /mrtg/mrtg/bin/192.168.2.101.cfg ...
WARNING:
Priming /mrtg/mrtg/bin/192.168.2.2.cfg ...
WARNING:
Priming /mrtg/mrtg/bin/192.168.2.3.cfg ...
WARNING:
Priming /mrtg/mrtg/bin/brooklyn.nttr.int.cfg ...
WARNING:
Priming /mrtg/mrtg/bin/localhost.cfg ...
WARNING:

The Cron service was stopped successfully.

The Cron service is starting.
The Cron service was started successfully.

# re: Installing MRTG on a Windows Platform 10/16/2005 11:55 PM wharfratjoe

also nothing gets written to the following cfg files at all:

192.168.2.2.cfg
192.168.2.3.cfg
192.168.2.101.cfg

hmm...maybe if i sleep on this and get back to it tomorrow that may help :)

# re: Installing MRTG on a Windows Platform 10/21/2005 7:52 AM sireesha

No valid interface selected

# re: Installing MRTG on a Windows Platform 10/21/2005 7:59 AM sireesha

after i did http://10.108.1.32:9191/
,i got a message saying "No valid interface selected" in systems monitor.Could anyone tell me what i am supposed to do at this point.

# adding a new device 10/25/2005 3:43 PM stecjohn

I got this error when trying to add a device manually . . .

Possible precedence problem on bitwise | operator at c:/mrtg/mrtg/bin\..\lib\mrt
g2/BER.pm line 619.

# re: Installing MRTG on a Windows Platform 11/11/2005 10:46 AM Garry Cook

I'm attempting to follow the instructions, but to run this all from a D:\ drive. However, the Apache and Perl services won't start up properly, as they have a fixed path to C:\mrtg\etc...
How can I change this?

# re: Installing MRTG on a Windows Platform 11/18/2005 12:52 AM stone_redhat

Hi,
I've upgraded my ATM Link from 4mbps to 5mbps.Also i've modified the device.cfg file for the speed from 4000 kbits to 5000 kbits.

But after running Updateme.bat for device.cfg, im not able to view it in Graph.

It's still showing 4 mbps

Any clue....

# re: Installing MRTG on a Windows Platform 12/13/2005 10:55 AM Brian

I have MRTG running great but it looks like all the graphs are inverted? Does anyone know how to get this reversed?

Thanks

# re: Installing MRTG on a Windows Platform 12/13/2005 7:26 PM Joe

Once adding a device, how do I delete it from the device list later on?? I tried delete it from myrouter.txt and it still appears on the device list.

# re: Installing MRTG on a Windows Platform 12/13/2005 9:47 PM Brian

You need to delete the .cfg and .ok files from C:\mrtg\mrtg\bin and also make sure to remove this from your crontab file as well.

# re: Installing MRTG on a Windows Platform 12/13/2005 9:51 PM Brian

Possible precedence problem on bitwise | operator at c:/mrtg/mrtg/bin\..\lib\mrt
g2/BER.pm line 619.

Follow the steps listed below:


I've found the solution, after much investigation.

Open BER.PM in your favorite text editor and change line 619 to read:


return error ("Sequence expected") unless $result == sequence_tag or constructor_flag;
(Changing the "|" to the word "or")

Save the file, and you're golden.

# re: Installing MRTG on a Windows Platform 12/14/2005 2:34 AM YY

I managed to get the RRDtool and MRTG up and running thanks to your detailed walkthrough. However, may I know how do I convert my old log files to the rrd database??

# re: Installing MRTG on a Windows Platform 12/15/2005 1:06 AM YY

Ooohhh... I re-created the mrtg files (along with the rrd files) and overwrite them with my old log files (as I wanna keep their history). I'm so glad things seem to work now.

Just wanna say THANK YOU very much again for writing this guide!!

# MRTG on a Windows Platform modifying default global parameters. 12/21/2005 1:01 PM Terry Flannery

Hi Beau,

First off, I'd like to thank you for the information that you have provided, Thank you!

I have a router where the interface name and description fields are blank and I want to set the default global parameter to ifref=ip, however, when I update the router.cfg file and then run update-my-routers.bat it gets overlayed with the default ifref=name and consequently all the interfaces are commented out. Is there a place that I can change the default (for a specific router of for all routers)?

Many Thanks,
Terry Flannery
Terry_Flannery@adp.com

# re: Installing MRTG on a Windows Platform 1/7/2006 12:55 PM tony

I have read through your instructions but I still do not understand how all of this applies to running SMNP-gets and graphing?
How do I run Cron to update my graphs every minute or sooner?

I am new to all of this....and clueless

How does Apache play into all of this?
I am running WinXP, SP2.
What does Cron do and how do I use it?

My goal is to poll wireless radios from different sites to get their SNR values. I know how to do this using MRTG but I wanted to be able to graph every minute or sooner if possible.
I read that RRDtools allow for this. But I have no clue on how to use the RRDtool with MRTG to accomplish this.
I downloaded the MRTG bundle but I have no clear instructions on how to operate and use this tool. Any help you can provide would be greatly appreaciated.

Thanks
Tony

# re: Installing MRTG on a Windows Platform 1/10/2006 4:51 AM Ryan

None the less this documentaion may have been writen for an older version. The Install.bat parameter's needed to be changed and missing files... pain in the @.


Here is all the information that I have gathered before I proceed:
--> You have installed SNMP on this local machine so it can be added to MRTG.
--> You have 1 processors.
--> You have prepared a "c:\mrtg\mrtg\bin\myrouters.txt" file

Do you wish to continue with these options? (y/n) -->
y
Can't open perl script "c:/mrtg/mrtg/bin/cfgmaker": No such file or directory
C:\mrtg\mrtg\bin\cat.EXE: /mrtg/mrtg/bin/extras/cpu1.cfg: No such file or direct
ory
C:\mrtg\mrtg\bin\cat.EXE: /mrtg/mrtg/bin/extras/disk.cfg: No such file or direct
ory
C:\mrtg\mrtg\bin\cat.EXE: /mrtg/mrtg/bin/extras/memory.cfg: No such file or dire
ctory
Can't open perl script "c:/mrtg/mrtg/bin/cfgmaker": No such file or directory
C:\mrtg\mrtg\bin\cp.EXE: /mrtg/rrdtool/rrdicons: No such file or directory
C:\mrtg\mrtg\bin\cp.EXE: /mrtg/rrdtool/routers2.cgi: No such file or directory
C:\mrtg\mrtg\shellscript.sh: permission denied: /mrtg/cron/crontab [160]
C:\mrtg\mrtg\shellscript.sh: permission denied: /mrtg/cron/crontab [162]
C:\mrtg\mrtg\shellscript.sh: permission denied: /mrtg/cron/crontab [165]
C:\mrtg\mrtg\bin\cp.EXE: /mrtg/cron/crontab: No such file or directory
C:\mrtg\mrtg\shellscript.sh: no such file or directory: \mrtg\bin\instsrv [171]
C:\mrtg\mrtg\shellscript.sh: no such file or directory: \mrtg\bin\instsrv [173]
System error 1060 has occurred.

The specified service does not exist as an installed service.

The service name is invalid.

More help is available by typing NET HELPMSG 2185.

System error 1060 has occurred.

The specified service does not exist as an installed service.

The service name is invalid.

More help is available by typing NET HELPMSG 2185.

Press any key to continue . . .

# Support Forum 1/10/2006 7:26 PM Steve Shipway

There is a support forum for routers2 at http://www.steveshipway.org/forum/
This also has a forum for MRTG and another for anyone using the Open Innovations bundle install (which has a whole slew of extra and non-standard things in it).
Although this forum is primarily for routers2 only, there are people online who can help out with other windows-related or bundle-related problems. Might be of assistance to people, since Open Innovations seem unable or unwilling to provide any support at all for the bundle.

# Upgrading routers2.cgi 1/10/2006 7:28 PM Steve Shipway

routers2 is now at version 2.16. The install.pl script with this version can usually spot the Open Innovations bundle install, and will set up its defaults appropriately. This should make the upgrade task a bit easier.

# re: Installing MRTG on a Windows Platform 1/28/2006 12:42 PM Richard

Hello,

Does anyone knows why the interface port change on the win2003 everytime i restart the server from (65539 , to this port 131075 and inverse ) i am trying to monitor an win2003 server and this what i am facing

# re: Installing MRTG on a Windows Platform 1/31/2006 4:23 PM ddemirchi

Thanks for the MRTG Bundle!

I just upgrade my router.txt. I have about 85 device for switch and routers IP addresses.
If I run Upgrade_MyRouters.bat

I keep getting the following error messages;
Perl.exe Application Error (title)
The application failed to initialize properly (0x0000142) Click on to terminate the application...
OK this is just keep repeating.

- download latest version of perl (ASP packate) and renamed the perl dir under mrtg to perl1 and copied new perl dir to here.
- Issue still continue.
- tried on window 2000 with SP4 and XP Pro with SP2 same errors.

Any successions?

Thanks
ddemirchi

# re: Installing MRTG on a Windows Platform 2/1/2006 9:42 AM ddemirchi


Hi,

Has anybody seen this message?
2006-02-01 01:16:59 -- Use of uninitialized value in pattern match (m//) at c:/mrtg/mrtg/bin\..\lib\mrtg2/MRTG_lib.pm line 491.
2006-02-01 01:16:59 -- ERROR: "WorkDir" not specified in mrtg config file

Thanks
DDemirchi

# re: Installing MRTG on a Windows Platform 2/1/2006 6:26 PM joe

I also get the same errors when I added more devices, from 5 to 30 on a P3 1Ghz machine. I noticed the cpu was 100% utilization before the mrtg gave up and crash within 2 minutes. My guess is that the bundle can't handle too many devices.

Anyone knows of any fix(s) ??
---------------------------------
I keep getting the following error messages;
Perl.exe Application Error (title)
The application failed to initialize properly (0x0000142) Click on to terminate the application...
OK this is just keep repeating.

# re: Installing MRTG on a Windows Platform 2/3/2006 6:38 AM Math

I have the same error when adding new devices:

Perl.exe Application Error
The application failed to initialize properly (0x0000142) Click on to terminate the application...
OK this is just keep repeating.

Please help !!!

# re: Installing MRTG on a Windows Platform 2/13/2006 10:17 PM Sandy

Hi,

i don't know how to get cpu utlization data in mrtg .cfg file . any one help me
1) how to create .cfg file for CPU & Memory Router
2) Any SNMP setting for CPU & Memory on Router

Reagrds
Sandy
email : sin_sandeepin@yahoo.co.in

# re: Installing MRTG on a Windows Platform 2/21/2006 1:09 AM Florus

I solved the perl.exe (0x0000142) error.
The solution is to use wincron instead of cron with the -wait command.
Step-by-step:
First disable the cron service, then install wincron.
wincron can be found at:
http://www.tomasello.com/software/wincron/
install wincron as a service (see readme)
Use the following user.tg script:
# MRTG cfg files loop
{
-start -inc 0 0 1 0
-action -foreach -file "c:\mrtg\mrtg\bin\*.cfg" THE_FILE perlscript
}
{
-name perlscript
-action -spawn -wait -hide CMD.EXE "/C c:\mrtg\perl\bin\perl c:/mrtg/mrtg/bin/mrtg --logging=c:/mrtg/mrtg.log c:/mrtg/mrtg/bin/%THE_FILE.FNAME%.cfg"
}
And if you plan to add more switches in the future (and don't want any errors appearing) add a # to the start of the "net stop" and "net start" lines in c:\mrtg\updateshellscript.sh

The trick is that cron spawn all perl tasks at once and when you spawn more than 10-20, an average system starts swapping, stalling and in general failing tasks, hence the pel.exe error. The above solution solves this by starting one perl script at a time and waiting for executiion.

# re: Installing MRTG on a Windows Platform 3/30/2006 8:48 AM Etienne

After upgrading routers.cgi Version v2.16, I am getting the following error message.

"cannot find RRDs.pm in C:/Perl/lib c:/perl/site/lib

# re: Installing MRTG on a Windows Platform 4/5/2006 10:03 AM Etienne

I solved this by placing the correct path in each of the .cfg file.

# re: Installing MRTG on a Windows Platform 5/2/2006 12:25 AM Srikrishnak

Hi, thx for the great info. However still am straching my head on "Description". How can I bring the individual interface desc to appear in graphs. I tried to modify the router2 file but its too cumbersome to add each interface and desc.
Any suggestion.

# re: CPU, Memory Utilization 7/23/2006 3:04 AM baba

Has anyone figured out how to get cpu, memory and other resources for Windoz machines using mrtg bundle?
If any of you are having problem not getting your window machines on the list. please email me. I have perfect fix for that. linuxhacker@gmail.com
thanks
Baba

# re: Installing MRTG on a Windows Platform 7/24/2006 12:09 AM srikrishnak

Hi,
I keep on getting this error every few days and mrtg graphs doesnt show any values.

Use of uninitialized value in pattern match (m//) at c:/mrtg/mrtg/bin\..\lib\mrtg2/MRTG_lib.pm line 491.
ERROR: "WorkDir" not specified in mrtg config file

From the prev posts it seems that this is quite common occurence and i think its not a good idea to use mrtgbundle for >10 nodes. :(

# re: Installing MRTG on a Windows Platform 7/24/2006 12:09 AM srikrishnak

Hi,
I keep on getting this error every few days and mrtg graphs doesnt show any values.

Use of uninitialized value in pattern match (m//) at c:/mrtg/mrtg/bin\..\lib\mrtg2/MRTG_lib.pm line 491.
ERROR: "WorkDir" not specified in mrtg config file

From the prev posts it seems that this is quite common occurence and i think its not a good idea to use mrtgbundle for >10 nodes. :(

# re: Installing MRTG on a Windows Platform 7/25/2006 9:37 AM Christine

Great site, it really helped. I naturally assumed that since I set it up under Linux a year or so ago and it was cake that Windows would be even easier. Serves me right for assuming ;)

Thanks for taking the time to do this. :)

# re: Installing MRTG on a Windows Platform 7/27/2006 2:37 PM NetCog

I'm getting it figured out thanks to this and a couple other sites. Another 'bug' / install watch I found along the way at least with mrtg version 2.9.27 :

XP command prompt
C:\mrtg\mrtg\bin>perl mrtg server.cfg

Can’t locate loadable object for module RRDs in @INC (@INC contains: C:/mrtg/mrtg/bin\..\lib\mrtg2\ c/mrtg/mrtg/bin\ C:/Perl/lib C:/Perl/site/lib .) at mrtg line 225

Compilation failed in require at mrtg line 225

SOLUTION: copy the rrds.pm to those directories where it doesn't exist. I had to place a copy into
c:/perl/site/lib
c:/mrtg/mrtg/lib/mrtg2

I think I copied but it could have installed to
c:/mrtg/mrtg/bin

and I think the command referenced in 2/16/2005 12:54 PM Tolli's comment installed it to c:/perl/lib

Also not sure if this is shown above but go into routers2.conf and look for "bytes" to uncomment a line so you can see the graph in bytes not bits.
You also need to comment out or delete the Options[_]: bits,growright line in your server.cfg

After the above fixes I reran c:/mrtg/mrtg/bin>perl cfgmaker public@server >server.cfg

This makes a clean cfg file but you'll need to copy in
#########################
Interval: 1
PathAdd: c:\mrtg\rrdtool
LogFormat: rrdtool
WithPeak[_]: ymw
workdir: c:\mrtg/wwwroot
#Options[_]: bits,growright
#########################

I placed it above the System information of the device.

# re: Installing MRTG on a Windows Platform 7/27/2006 2:41 PM NetCog

I also told it to not to the 95 percentile in the routers2.conf, it definately takes up memory and cpu. Why I would want it is a subject of a later search but unless the machine is just sitting there, or you have great stats, having memory and cpu jumping significantly every minute can cause a headache if you're trying to do other work.

# re: Installing MRTG on a Windows Platform 11/2/2006 5:47 AM Alex Ng

mrtg sees one of my serial sub-interfaces as
Se0/0/0\\:0.1 instead of Se0/0/0:0.1

Anyone have any ideas how to fix it?

TX

# re: Installing MRTG on a Windows Platform 11/10/2006 11:10 AM Barry Boubacar

After doing all smoothly, and lunching internet explorer, I got this problem:
Page can not be display for the localhost.
Please can someone help me to solve this problem;
My email address is barryblacks@yahoo.com

Thanks.

# re: Installing MRTG on a Windows Platform 11/14/2006 2:46 AM GAGA

HALLO MR AND MS I got some problem on upgrading router.cgi title on the 3,4 steps i need your help

# re: New version of MRTG Bundle is now available 12/22/2006 2:28 AM bmonday(dot)com

# re: Installing MRTG on a Windows Platform 1/5/2007 12:47 PM bdog

Windows users...DO NOT USE THIS TUTORIAL. You will have nothing but problems. This information is severely outdated. MRTG + RRDTool is not worth your time. Use PRTG instead. It is SUBSTANTIALLY more informative and useful and infinitely easier to work with than MRTG.

http://www.paessler.com/prtg

# Can u please tell me how to add more ip's 2/4/2007 9:41 PM Bharath.Kondi

thanx u very much for a great help.. now i facing a problem on adding more ip's.. i added ip's in the router2.txt in the directory C:\mrtg\mrtg\bin but i cant see in the browser a new graph of the new ip.. can u plz tell me how to do it..
iam very new to this software..
thanx alot..

# new mrtg 3/9/2007 6:36 AM marcio

hi, i am new using mrtg and i want to do a simple graphic only past two value.


# re: Installing MRTG on a Windows Platform 5/29/2007 9:36 AM iamiwas

I successfully installed MRTG on win 2003 server, and can see the cisco asa5000 firewall. But when i attempt to view the graph, there is no data in the graph.

thoughts

# re: Installing MRTG on a Windows Platform 6/16/2007 5:37 AM free cell phone ringtones

Nice!

# re: Installing MRTG on a Windows Platform 2/27/2008 11:13 AM Ramish

Good site, this fixed a few of my problems but I'm unable to get rid of the following.

Okay I'm receiving this error message.

WARNING: Could not match host:'public@192.168.200.5:' ref:'Name' key:'ifc1 (Slot\: 1 Port\: 1)'

ERROR: Target[192.168.200.5_ifc1_(slot_1_port_1)][_IN_] ' $$target[0]{$mode} ' did not eval into defined data

# re: Installing MRTG on a Windows Platform 2/28/2008 7:32 AM scuzz

Anybody know how to get this working on a Pix and ASA firewall

# re: Installing MRTG on a Windows Platform 6/9/2008 10:34 PM Lowell

Hi,

I sucessfully setup the MRTG with several devices i mnitor.
However i need to know how to setup notification system if a system if down or already crosses the threshold setting?

Thanks,
Lowell

# re: Installing MRTG on a Windows Platform 6/20/2008 8:25 AM skar

HI,

i have sucessfully installed mrtg bundle. added nortel devices in myrouter.txt. few of them worked fine. For few devices CFG files are created in "c:\mrtg\mrtg\bin" folder but rrd files were not created in wwwroot folder.
--error reading RRD database. Can any one help me. Thanks!

# re: Installing MRTG on a Windows Platform 7/8/2008 9:55 AM John

Hi Beau,
I have successfully installed mrtg bundle and followed the above discussions to clear out some of the issues. Thanks. The provided info was great.

However, we are having a problem on internal serial frames on one of the routers. This router is the only one that has both FastEthernet link for the Internet and Serial connections used for internal frame relays. The FastEthernet connection works as expected, but Serial frame relays although the grid exist, the graphs are empty. This is a Linux based router. Can someone help me to figure this out? I am not very literate with Linux/Unix and have very limited scripting experience.

Any help is greatly appreciated.

http://www.activestate.com/store/download.aspx?prdGUID=81fbce82-6bd5-49bc-a915-08d58c2648ca

No comments:

Post a Comment