Welcome to weblogs.com.pk Sign in | Join | Help

MRTG on Windows

If you want to run MRTG on Windows, you need to edit the Perl\lib\FindBin.pm file. In the end, you need to enter the following lines, which resolve folder path problem.

 

$RealBin = abs_path($RealBin) if($RealBin);   ## existing line

   if ($IsWin32)

   {

      $Bin =~ s/\//\\/g;

   }

 

1; # Keep require happy

 

Here is one simple MRTG configuration file.

 

WorkDir:      D:\mrtg\data

Htmldir:      D:\mrtg\data

Imagedir:     D:\mrtg\images

Logdir:              D:\mrtg\logs

EnableIPv6:   no

 

#      .1.3.6.1.2.1.25.1.1         System Uptime

#      .1.3.6.1.2.1.25.3.3.1.2    Last minute CPU average (Walk it for multiple CPUs)

#      .1.3.6.1.2.1.25.2.3.1.5    Total diskspace (Walk it for multiple disks)

#      .1.3.6.1.2.1.25.2.3.1.6    Used diskspace (Walk it for multiple disks)

 

#192.168.0.20

Target[server-cpu]: 1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.2.1.25.3.3.1.2.2:COMMUNITY@192.168.0.20

PageTop[server-cpu]: <H1>Current server CPU Usage</H1>

MaxBytes[server-cpu]: 100000

Title[server-cpu]: server CPU Usage

Options[server-cpu]: gauge, absolute, nopercent

 

Target[server-disk-1]: 1.3.6.1.2.1.25.2.3.1.6.1&1.3.6.1.2.1.25.2.3.1.5.1:COMMUNITY@192.168.0.20

PageTop[server-disk-1]: <H1>Current server DISK-1 Usage</H1>

MaxBytes[server-disk-1]: 100000000

Title[server-disk-1]: server DISK-1 Usage

Options[server-disk-1]: gauge, absolute, nopercent

 

The above information is posted here for my future reference J

Published Friday, January 7, 2005 8:36 PM by khurram

Comments

No Comments

New Comments to this post are disabled