[nsp] cricket/mrtg & GSR memory/cpu

Alvaro Reguly alvaro at reguly.net
Tue Aug 12 10:58:07 EDT 2003


This is what I use on a 1601 and a 7206.
If anyone has a better cg please let me  know.

Alvaro

#---------------------------------------------------------------------------
# Memory utilization no more difficult to graph than any other variable.
# You have to know the OID for the particular hardware you are monitoring
# and do a little math on the results if you want to.
#
# This is the OID we use on our cisco routers:
#---------------------------------------------------------------------------
#     1.3.6.1.4.1.9.2.1.8.0  amount of free memory in bytes
#---------------------------------------------------------------------------
#Directory[joe_mem]: joe
Title[joe_mem]: Memória Disponível JOE
Target[joe_mem]: .1.3.6.1.4.1.9.2.1.8.0&.1.3.6.1.4.1.9.2.1.8.0:cmty at joe:
# this uses memory pools.. not sure if it is correct!
#  snmpwalk -v 1 joe cmty .1.3.6.1.4.1.9.9.48.1.1.1.2 (names of pools)
#    enterprises.9.9.48.1.1.1.2.1 = "Processor"
#    enterprises.9.9.48.1.1.1.2.2 = "I/O"
#Target[joe_mem]: .1.3.6.1.4.1.9.9.48.1.1.1.6.1&.1.3.6.1.4.1.9.9.48.1.1.1.6.2:cmty at joe:
YLegend[joe_mem]: Memória Livre
ShortLegend[joe_mem]:   Livre
# olhar em show processes memory
MaxBytes[joe_mem]: 12365840
AbsMax[joe_mem]: 12365840
Options[joe_mem]: gauge, growright,nobanner, unknaszero, nopercent
Unscaled[joe_mem]: dwmy
Colours[joe_mem]: LARANJA#f38c00,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff
Legend1[joe_mem]: Memória disponível para o Processador
Legend2[joe_mem]: Memória disponível para I/O
Legend3[joe_mem]:  
Legend4[joe_mem]:  
LegendI[joe_mem]:  Processador: 
LegendO[joe_mem]:  I/O: 
PageTop[joe_mem]: <H1> Memória Livre - JOE
 <BR></H1>
 <TABLE>
   <TR><TD>Router:</TD><TD>JOE</TD></TR>
   <TR><TD>Maintainer:</TD><TD>Álvaro</TD></TR>
  </TABLE>



#---------------------------------------------------------------------------
# CPU utilization s no more difficult to graph than any other variable.
# You have to know the OID for the particular hardware you are monitoring.
#  Here are a couple for Cisco Routers:
#---------------------------------------------------------------
#      1.3.6.1.4.1.9.2.1.57.0  1 minute CPU utilization
#      1.3.6.1.4.1.9.2.1.58.0  5 minute CPU utilization
#---------------------------------------------------------------
#Directory[joe_cpu]: joe
Title[joe_cpu]: Uso CPU Joe
Target[joe_cpu]: .1.3.6.1.4.1.9.2.1.57.0&.1.3.6.1.4.1.9.2.1.58.0:tigressaobonitos at joe:
YLegend[joe_cpu]: % Uso da CPU
ShortLegend[joe_cpu]: %
MaxBytes[joe_cpu]: 100
AbsMax[joe_cpu]: 100
Options[joe_cpu]: growright, nopercent, gauge, nobanner, unknaszero
Unscaled[joe_cpu]: wmy
#Colours[joe_cpu]: OURO#cdb696,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff
Colours[joe_cpu]: CINZA#aaaaaa,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff
Legend1[joe_cpu]: Média de 1 minuto
Legend2[joe_cpu]: Média de 5 minutos
LegendI[joe_cpu]: &nbsp;1 Minuto:
LegendO[joe_cpu]: &nbsp;5 Minutos:
PageTop[joe_cpu]: <H1> Uso da CPU - JOE
 <BR></H1>
 <TABLE>
   <TR><TD>System:</TD><TD>Joe </TD></TR>
   <TR><TD>Maintainer:</TD><TD>Álvaro</TD></TR>
  </TABLE>


#---------------------------------------------------------------------------
# Temperature is no more difficult to graph than any other variable.
# You have to know the OID for the particular hardware you are monitoring.
# Here are a couple for Cisco Routers:
#---------------------------------------------------------------
# 75xx  1.3.6.1.4.1.9.9.13.1.3.1.3.1   Inlet Temp degrees Centigrade
#       1.3.6.1.4.1.9.9.13.1.3.1.3.2   Hotspot Temp degrees Centigrade
#       1.3.6.1.4.1.9.9.13.1.3.1.3.3   Outlet Temp degrees Centigrade
#---------------------------------------------------------------
# 7000  1.3.6.1.4.1.9.9.13.1.3.1.3.1   Inlet Temp degrees Centigrade
#               1.3.6.1.4.1.9.9.13.1.3.1.3.2   Outlet Temp degrees
Centigrade
#---------------------------------------------------------------
# We use them like so for a 75xx router:
#---------------------------------------------------------------
#Target[routert]:
1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3.3:cmty at router:
#Directory[routert]: temperature
#WithPeak[routert]: wmy
#YLegend[routert]: Graus Celsius
#ShortLegend[routert]: &deg;C
#MaxBytes[routert]: 50
#Options[routert]: nopercent, growright, gauge
#Unscaled[routert]: dwmy
#AbsMax[routert]: 50
#Title[routert]: router
#Colours[routert]: GREEN#00eb0c,BLUE#1000ff,BLUE#1000ff,VIOLET#ff00ff
#Legend1[routert]: Media 1 minuto Entrada: Temperatura
#Legend2[routert]: Media 1 minuto Saida: Temperatura
#Legend3[routert]: Media 5 minutos Entrada: Temperatura
#Legend4[routert]: Media 5 minutos Saida: Temperatura
#LegendI[routert]: &nbsp;Inlet:
#LegendO[routert]: &nbsp;Outlet:
#PageTop[routert]: <H1> Temperatura - Graus C
# <BR></H1>
# <TABLE>
#   <TR><TD>System:</TD><TD>Router</TD></TR>
#   <TR><TD>Maintainer:</TD><TD>NetOps</TD></TR>
#  </TABLE>

-- 
Alvaro



More information about the cisco-nsp mailing list