[mrtg] Fwd: FW: MRTG question

Eric Garnel egarnel3470 at yahoo.com
Thu Feb 14 17:28:27 MET 2002


Here are two good examples: the first is a script to make the config.
Please note that is should be all on one line or use "\".

cfgmaker --global "XSize[_]: 280" --global "YSize[_]: 100"  --global
"Colours[_]: LIGHT BLUE#7aafff,BLUE#1000ff,DARK
BLUE#000066,VIOLET#ff00ff,GREEN#00ff00" --global "BodyTag[_]: <BODY
BGCOLOR="#006699" TEXT="#FFFFFF" LINK="#FFFFFF">" --ifref=descr
--ifdesc=descr --global "Options[_]:growright" -global "WorkDir:
/var/www/html/mrtg/routers" public at 192.167.23.10 > Cisco_1600.cfg


The second is the actual config.
Ip addresses & communties have been changed to protect the insane.
Note: I am a lousy typer, please don't point out my typos...

# sample cfg for mrtg
# location for tmp files for threshold checking
ThreshDir: /tmp/mrtg/  
# where the output will go 
WorkDir: /var/www/html/mrtg/routers
Options[_]: Growright
XSize[_]: 280
YSize[_]: 100
#Options[_]: nopercent,growright
Colours[_]: LIGHT BLUE#7aafff,BLUE#1000ff,DARK
BLUE#000066,VIOLET#ff00ff,GREEN#00ff00
BodyTag[_]: <BODY bgcolor=#006699 text=#FFFFFF link=#FFFFFF
vlink=#FFFFFF alink=#FFFFFF>
RouterUptime[_]: yoursnmpcommunityhere at 172.20.20.172
######################################################################
# System: yourlocation
# Description: Cisco Internetwork Operating System Software 
#          IOS (tm) C2600 Software (C2600-I-M), Version 12.0(7)T, 
RELEASE SOFTWARE (fc2)
#          Copyright (c) 1986-1999 by cisco Systems, Inc.
#          Compiled Tue 07-Dec-99 02:12 by phanguye
# Contact: 
# Location: 
######################################################################


### Interface 1 >> Descr: 'FastEthernet0/0' | Name: 'Fa0/0' | Ip:
'172.20.20.172' | Eth: '00-05-5e-3b-54-c0' ###

Target[FastEthernet_172.20.20.172]:
1:yoursnmpcommunityhere at 172.20.20.172
SetEnv[FastEthernet_172.20.20.172]: MRTG_INT_IP="172.20.20.172"
MRTG_INT_DESCR="FastEthernet0/0"
MaxBytes[FastEthernet_172.20.20.172]: 12500000
Title[FastEthernet_172.20.20.172]: FastEthernet0/0   -- yourlocation
PageTop[FastEthernet_172.20.20.172]: <H1>FastEthernet0/0   --
yourlocation</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>yourlocation in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>FastEthernet0/0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Fa0/0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>100.0 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>172.20.20.172 ()</TD></TR>
 </TABLE>


### Interface 2 >> Descr: 'Serial0/0' | Name: 'Se0/0' | Ip:
'192.168.13.1' | Eth: '' ###

Target[WAN-to-Rich-192.168.254.9]:
2:yoursnmpcommunityhere at 172.20.20.172
SetEnv[WAN-to-Rich-192.168.254.9]: MRTG_INT_IP="192.168.13.1"
MRTG_INT_DESCR="Serial0/0"
MaxBytes[WAN-to-Rich-192.168.254.9]: 96500
Title[WAN-to-Rich-192.168.254.9]: Serial0/0   -- yourlocation
ThreshMaxI[WAN-to-Rich-192.168.254.9]: 4650
ThreshProgI[WAN-to-Rich-192.168.254.9]: /etc/mrtg/mrtgwarn.sh
ThreshProgOKI[WAN-to-Rich-192.168.254.9]: /etc/mrtg/mrtgok.sh
PageTop[WAN-to-Rich-192.168.254.9]: <H1>Serial0/0  wan link to
Richardson</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>yourlocation in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>Serial0/0  WAN link to
Richardson</TD></TR>
   <TR><TD>ifType:</TD>     <TD>propPointToPointSerial (22)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Se0/0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1.544 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.13.1 (s0/0)</TD></TR>
 </TABLE>


### Interface 3 >> Descr: 'FastEthernet0/1' | Name: 'Fa0/1' | Ip:
'192.168.6.2' | Eth: '00-05-5e-3b-54-c1' ###
### The following interface is commented out because:
### * it is Operationally DOWN
# 
# Target[172.20.20.172_3]: 3:yoursnmpcommunityhere at 172.20.20.172
# SetEnv[172.20.20.172_3]: MRTG_INT_IP="192.168.6.2"
MRTG_INT_DESCR="FastEthernet0/1"
# MaxBytes[172.20.20.172_3]: 12500000
# Title[172.20.20.172_3]: FastEthernet0/1   -- yourlocation
# PageTop[172.20.20.172_3]: <H1>FastEthernet0/1   --
yourlocation</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>yourlocation in </TD></TR>
#    <TR><TD>Maintainer:</TD> <TD></TD></TR>
#    <TR><TD>Description:</TD><TD>FastEthernet0/1  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD>Fa0/1</TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>100.0 Mbits/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>192.168.6.2 ()</TD></TR>
#  </TABLE>


### Interface 4 >> Descr: 'Serial0/1' | Name: 'Se0/1' | Ip:
'192.168.11.1' | Eth: '' ###

Target[WAN-to-Dal-192.168.254.13]:
4:yoursnmpcommunityhere at 172.20.20.172
SetEnv[WAN-to-Dal-192.168.254.13]: MRTG_INT_IP="192.168.11.1"
MRTG_INT_DESCR="Serial0/1"
MaxBytes[WAN-to-Dal-192.168.254.13]: 96500
ThreshMaxI[WAN-to-Dal-192.168.254.13]: 48250
ThreshProgI[WAN-to-Dal-192.168.254.13]: /usr/bin/threshmail.pl
ThreshProgOKI[WAN-to-Dal-192.168.254.13]: /usr/bin/threshmail2.pl
Title[WAN-to-Dal-192.168.254.13]: Serial0/1   link to Dallas
PageTop[WAN-to-Dal-192.168.254.13]: <H1>Serial0/1 link to Dallas</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>yourlocation in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>Serial0/1  link to Dallas</TD></TR>
   <TR><TD>ifType:</TD>     <TD>propPointToPointSerial (22)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Se0/1</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1.544 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.254.13 (Dallas)</TD></TR>
 </TABLE>


### Interface 5 >> Descr: 'Null0' | Name: 'Nu0' | Ip: '' | Eth: ''
###
### The following interface is commented out because:
### * it is a cisco Null0 interface
# 
# Target[172.20.20.172_5]: 5:yoursnmpcommunityhere at 172.20.20.172
# SetEnv[172.20.20.172_5]: MRTG_INT_IP="" MRTG_INT_DESCR="Null0"
# MaxBytes[172.20.20.172_5]: 536870911
# Title[172.20.20.172_5]: Null0   -- yourlocation
# PageTop[172.20.20.172_5]: <H1>Null0   -- yourlocation</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>yourlocation in </TD></TR>
#    <TR><TD>Maintainer:</TD> <TD></TD></TR>
#    <TR><TD>Description:</TD><TD>Null0  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>Other (1)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD>Nu0</TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>4295.0 Mbits/s</TD></TR>
#  </TABLE>

Target[1600CPU]:
1.3.6.1.4.1.9.2.1.56.0&1.3.6.1.4.1.9.2.1.56.0:yoursnmpcommunityhere at 172.20.20.172
MaxBytes[1600CPU]: 100
Title[1600CPU]: CPU Usage on Cisco 1600
PageTop[1600CPU]: <H1>CPU Usage on Cisco 1600</H1>
Options[1600CPU]: gauge, nopercent, absolute
Unscaled[1600CPU]: dwmy
YLegend[1600CPU]: CPU Usage (%)
ShortLegend[1600CPU]: CPU Usage (%)
Legend1[1600CPU]: CPU Usage in Percent
#Legend2[1600CPU]:
#Legend3[1600CPU]:
#Legend4[1600CPU]:
LegendI[1600CPU]: (%) CPU
LegendO[1600CPU]: (%) CPU



--- Eric Garnel <egarnel at austinventures.com> wrote:
> Subject: FW: MRTG question
> Date: Thu, 14 Feb 2002 10:20:44 -0600
> From: "Eric Garnel" <egarnel at austinventures.com>
> To: <egarnel3470 at yahoo.com>
> 
> 
> 
> -----Original Message-----
> From: Taylor Lewick [mailto:Taylor.Lewick at us.fortis.com]
> Sent: Thursday, February 14, 2002 10:12 AM
> To: Eric Garnel
> Subject: MRTG question
> 
> 
> Hi,  I am knew to mrtg and was wondering if you would mind
> forwarding me
> your configuration files for routers.  The stuff on the ent is a
> ltitel
> generic and I would like to see a real life example.  I dont need
> actual
> names of routers or IP addresses or anyhting like that, so it wont
> be
> insecure.
> 
> Thanks,
> Taylor
> 
> 
> Taylor Lewick
> Unix System Administrator
> Fortis Benefits
> 816 881 6073
> 
> "Help Wanted.  Seeking Telepath..."
> "You Know where to apply."
> 
> ****************************************************************
> 			Please Note
> The information in this E-mail message is legally privileged
> and confidential information intended only for the use of the
> individual(s) named above. If you, the reader of this message,
> are not the intended recipient, you are hereby notified that 
> you should not further disseminate, distribute, or forward this
> E-mail message. If you have received this E-mail in error,
> please notify the sender. Thank you
> *****************************************************************


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list