nixCraft Linux / UNIX / Shell Scripting Forum

nixCraft

Linux / UNIX Tech Support Forum

MRTG for multiple devices

This is a discussion on MRTG for multiple devices within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi, I just followed the steps of your MRTG how-to and itīs working properly but I didnīt find anything related ...


Register free or login to your account to remove all advertisements.

Go Back   nixCraft Linux / UNIX / Shell Scripting Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

Thread Tools Display Modes
  #1 (permalink)  
Old 18th November 2009, 12:24 AM
Junior Member
 
Join Date: Nov 2009
OS: CentOs
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
noctemIV is on a distinguished road
Exclamation MRTG for multiple devices

Hi,

I just followed the steps of your MRTG how-to and itīs working properly but I didnīt find anything related to view multiple graphics for multiple devices e.g.(graphically display the values of two different variables that change over time in a server and a router or switch).

I want to know if you can help me.

thanks for your time.
Reply With Quote
  #2 (permalink)  
Old 19th November 2009, 03:32 PM
nixcraft's Avatar
Never say die
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash, Perl, Python
Posts: 3,294
Thanks: 13
Thanked 411 Times in 304 Posts
Rep Power: 10
nixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond repute
Default

You need to generate file and append it to main config file.

Create config for server1, server2 and router1:
Code:
cfgmaker --global 'WorkDir: /var/www/mrtg' --output /tmp/server1.cfg  public@server1.example.com
cfgmaker --global 'WorkDir: /var/www/mrtg' --output /tmp/server2.cfg  public@server2.example.com
cfgmaker --global 'WorkDir: /var/www/mrtg' --output /tmp/router1.cfg  public@router1.example.com
You may wanna manually edit or review file before updating the main mrtg.cfg file. Use vi text editor to view all files:
Code:
vi /tmp/server{1,2}.cfg
Next, ipdate main config file by updating all /tmp/*.cfg config file:
Code:
cat /tmp/server{1,2}.cfg /tmp/router1.cfg >> /etc/mrtg/mrtg.cfg
Just create graphs for all devices:
Code:
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
__________________
Vivek Gite
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Do you run a Linux? Let's face it, you need help!
Cricket & IPL News Blog
Reply With Quote
  #3 (permalink)  
Old 24th November 2009, 12:55 AM
Junior Member
 
Join Date: Nov 2009
OS: CentOs
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
noctemIV is on a distinguished road
Default finally working

Hi,


MRTG is finally working for two servers.


thanks for your useful help.



NoctemIV
Reply With Quote
Reply

Tags
linux mrtg, mrtg, mrtg for cisco device, mrtg graps, mrtg router, mrtg servers, mrtg switch


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Difference Between SAN and NAS Devices myfoot Linux hardware 2 24th March 2008 10:50 AM
RAW devices configuration on rhel5 linuxmohan Linux hardware 1 12th November 2007 07:07 PM
How do I list devices Mac addresses in RHEL3 kcarp Networking, Firewalls and Security 1 4th September 2007 02:29 AM
How to restrict devices usage for users in Solaris? kitty@sad Solaris/OpenSolaris 3 21st May 2007 02:05 PM
Identify new devices skrish_79 Linux software 1 31st January 2005 06:04 PM


All times are GMT +5.5. The time now is 08:43 AM.


Powered by vBulletin® Version 3.8.6 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Đ2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40