Skip to main content

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.



Comments

Popular posts from this blog

Do's and Don'ts of Structured LAN Cabling Network

 What is Structured Cabling & Why it is used ? "Standard " is to define a method of connecting all types of vendors voice & data equipment, over a cabling system that uses a common media, common connectors and a common topology. This means that a building can be cabled for all its communications needs without the planner or architecture even having to know what type of equipment will be used. There are three main cabling standards. EIA/TIA 568 A ---> American standard and was the first to be published on 1991. ISO/IEC 11801 ---> International Standard. CENELEC EN 50173 ---> European Standard (British version is BSEN 50173) . TERMS: Cable Tie Patch Panel PVC pipe of Casing IO Box RJ45 connectors Cat 5e/6/7 cable Wall mount Box.

How to create user DSN with ODBC driver in Windows System for PostgresSQL Database

 How to create user DSN with ODBC driver in Windows System : Step by Step Tutorial Guide : Step 1: Go to Windows start button -->Click Settings --->Click on Control Panel Step 2: In control panel go to the Administrative Tools Step 3: Double Click on the Data Source(ODBC) icon. A small popup screen with lots of tabs will be appear on the screen. Step 4: Click on the User DSN tab. Step 5: Now click on the ADD button. Now you can see lots of ODBC drivers in the List. Select the appropriate Driver form the List, for example here we chose the PostgresSQL ODBC driver. Step 6: Click on the Finish button. Step 7: Now give the data source name in the appropriate box. Similarly give the database name, ip address of the database server (may be localhost or other private IP address ),then Give the User Name and Password of the database in the appropriate box. Step 8: Press the TEST button to check the connection, whether you put all the parameters correctly or not. If everything is OK t...

Password Recovery ASA 5520

Password Recovery Process for Cisco ASA 5520. Reboot Power When prompted , press Esc to interrupt the boot process and enter ROM monitor mode.You should see a Rommon Prompt (rommon#0> ). rommon#0>confreg (press enter). current configure register should be default of 0x01. Device will ask if you want to make changes to the configuration register. Answer : NO You must change the configuration Register to 0x41. rommon#1>confreg 0x41 Reset the device. rommon#2> boot Now after booting you will see a general user mode like. ciscoasa> ciscoasa> enable password ciscoasa# ciscoasa#copy startup-config running-config ciscoasa#config t ciscoasa(config)#enable password Reset the configuration to default value 0x01. ciscoasa(config)#config-register 0x01 View the configuration register setup ciscoasa#show run startup-config reload ciscoasa#reload System config has been modified,save [Yes][No] press Yes.