Translate

Showing posts with label Free Network Monitoring Tools. Show all posts
Showing posts with label Free Network Monitoring Tools. Show all posts

Wednesday, May 25, 2022

How to configure the MRTG to Poll multiple devices in Linux Operating System ?

 Getting MRTG (Multi Router Traffic Grapher) to Poll multiple network devices.


MRTG configuration in Linux Environment

The Fedora Core MRTG installation process create a CORN file named /etc/corn.d/mrtg . This file tells the corn daemon to run MRTG using /etc/mrtg/mrtg.cfg file every 5 minutes to poll your network devices. You can configure MRTG to poll multiple devices, each with a separate configuration file.

1. Create a new configuration file using the steps from the previous section, choose a file name that is not mrtg.cfg

2. Add a new MRTG lene in / etc/corn.d/mrtg for each new configuration file you create.

0-59/5 **** root env LANG=C /usr/bin/mrtg  /etc/mrtg/mrtg.cfg

0-59/5 **** root env LANG=C /usr/bin/mrtg /etc/mrtg/dervice1.cfg

0-59/5 **** root env LANG=C /usr/bin/mrtg /etc/mrtg/device2.cfg

3.Run the indexmaker command, and include all of your /etc/mrtg configuration files.

4. Other versions of Linux keep their MRTG corn entries inside /etc/corntab file. Edit this file using the same syntex.


Now , restart the corn demon as 

root # service cornd restart.



Tuesday, April 26, 2022

Free software for Monitoring Network Performance - MRTG [Multi Router Traffic Grapher]

 MRTG [Multi Router Traffic Grapher]  is a Free Software for Monitoring Network Performance in Graphical form. Here we will discuss the installation process of this free software in Linux distribution.

For Linux System ,we need to install the following software

  1. MRTG [latest version]
  2. SNMP
  3. Apache Web Server 
MRTG diagram
MRTG


How to Configure the MRTG ?

When MRTG's rpm is installed, it creates a directory called /etc/mrtg.
To create a replacement, default /etc/mrtg/mrtg.cfg configuration file for server , follow these steps,

1.Use MRTG's cfgmaker command to create a configuration file named mrtg.cfg for the server. Using a read only community string of craz33guy. Place all data files in the directory /var/www/mrtg.

root#cfgmaker --output=/etc/mrtg/mrtg.cfg
--global"varkdir: /var/www/mrtg" -ifref=ip
--blobal 'option[.] : growright, bits
crez33guy@localhost

NOTE :- -if ref=ip cfgmaker command option instruct MRTG to use the interface's IP address as the title for each graph.

2. Edit /etc/mrtg/mrtg.cfg, and remove the section related to interfaces you don't need to monitor. A certain candidate would be the virtual lookup interface LO: (127.0.0.1)

3. Run MRTG using /etc/mrtg/mrtg.cfg as your argument 3 times. You will get an error for 2 times, as MRTG tries to move old data files, and naturally the 1st time when it runs the MRTG , it has no data to move.

root# env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

-> give this command 3 times

4. Use MRTG's indexmaker command to create a Web index page using your new mrtg.cfg file as guide.

root# indexmaker --output=var/www/mrtg/index.html   /etc/mrtg/mrtg.cfg

5. MRTG is run every 5 minute by default, and the file that governs this is /etc/corn.d/mrtg. To work correctly edit this file, replacing all occurrence of /usr/bin/mrtg with env LANG = C /usr/bin/mrtg.