[cricket-users] new Defaults file to work with my listInterface

From: Timothy Kennedy (sugarat@thunderhold.sugarat.net)
Date: Fri May 21 1999 - 00:33:33 PDT


From: Timothy Kennedy <sugarat@thunderhold.sugarat.net>

This is a kinda long diff. I can probably be cleaned up a bit.
This is the Defaults file from the router-interfaces directory.
Again, diffed versus the router-interfaces/Defaults from 0.65.

Let me know if I diffed it wrong, if you try and use it for a patch.
I can never remember whether it old-file first or last. :)

-Tim

------------8< cute here 8<------------

*** Defaults Wed Mar 31 00:53:27 1999
--- ../../../cricket-config/router-interfaces/Defaults Fri May 21 00:42:05 1999
***************
*** 6,66 ****
  
  Target --default--
          inst = map(interface-name)
! # snmp-community = secret
          snmp-host = %router%
          target-type = standard-interface
  
  # ifInOctets and ifOutOctets come from above, since they
  # are used by switch-ports as well
  
! datasource ifInErrors
! ds-source = snmp://%snmp%/ifInErrors.%inst%
  
! datasource ifOutErrors
! ds-source = snmp://%snmp%/ifOutErrors.%inst%
  
! datasource ifInUcastPackets
! ds-source = snmp://%snmp%/ifInUcastPkts.%inst%
  
! datasource ifOutUcastPackets
! ds-source = snmp://%snmp%/ifOutUcastPkts.%inst%
  
! targetType standard-interface
! ds = "ifInOctets, ifOutOctets, ifInErrors,
! ifOutErrors, ifInUcastPackets, ifOutUcastPackets"
! view = "Octets: ifInOctets ifOutOctets,
! UcastPackets: ifInUcastPackets ifOutUcastPackets,
! Errors: ifInErrors ifOutErrors"
  
- targetType sub-interface
- ds = "ifInOctets, ifOutOctets"
- view = "Octets: ifInOctets ifOutOctets"
  
! # likewise, graph params for ifInOctets and ifOutOctets come from above
  
! graph ifInUcastPackets
      color = dark-green
      draw-as = AREA
! y-axis = "packets per second"
! units = "pkt/sec"
! legend = "Average num Packets In"
   
! graph ifOutUcastPackets
      color = blue
! y-axis = "packets per second"
! units = "pkt/sec"
! legend = "Average num Packets Out"
   
! graph ifInErrors
      color = dark-green
      draw-as = AREA
! y-axis = "errors per second"
! units = "err/sec"
! legend = "Average Errors In"
  
! graph ifOutErrors
      color = blue
! y-axis = "errors per second"
! legend = "Average Errors Out"
! units = "err/sec"
  
--- 6,134 ----
  
  Target --default--
+ rrd-datafile = %dataDir%/%router%.%auto-target-name%.rrd
          inst = map(interface-name)
! frinst = %host-interface%.%frame-interface%
! snmp-community = srvr-status
          snmp-host = %router%
          target-type = standard-interface
  
+ OID ifInBps .1.3.6.1.4.1.9.2.2.1.1.6
+ OID ifOutBps .1.3.6.1.4.1.9.2.2.1.1.8
+ OID ifInCRC .1.3.6.1.4.1.9.2.2.1.1.12
+ OID ifInOctets .1.3.6.1.2.1.2.2.1.10
+ OID ifOutOctets .1.3.6.1.2.1.2.2.1.16
+ OID frInOctets .1.3.6.1.2.1.10.32.2.1.9
+ OID frOutOctets .1.3.6.1.2.1.10.32.2.1.7
+ OID frRecBECNs .1.3.6.1.2.1.10.32.2.1.5
+ OID frRecFECNs .1.3.6.1.2.1.10.32.2.1.4
+ OID frIndex .1.3.6.1.2.1.10.32.2.1.1
+ OID frDlci .1.3.6.1.2.1.10.32.2.1.2
+
+ datasource --default--
+ rrd-ds-type = GAUGE
+ rrd-heartbeat = 1800
+ rrd-min = undef
+ rrd-max = undef
+
+ datasource ifInBps ds-source = snmp://%snmp%/ifInBps.%inst%
+ datasource ifOutBps ds-source = snmp://%snmp%/ifOutBps.%inst%
+ datasource ifInOctets ds-source = snmp://%snmp%/ifInOctets.%inst%
+ rrd-ds-type = COUNTER
+ datasource ifOutOctets ds-source = snmp://%snmp%/ifOutOctets.%inst%
+ rrd-ds-type = COUNTER
+ datasource frInOctets ds-source = snmp://%snmp%/frInOctets.%frinst%
+ rrd-ds-type = COUNTER
+ datasource frOutOctets ds-source = snmp://%snmp%/frOutOctets.%frinst%
+ rrd-ds-type = COUNTER
+ datasource frRecBECNs ds-source = snmp://%snmp%/frRecBECNs.%frinst%
+ rrd-ds-type = COUNTER
+ datasource frRecFECNs ds-source = snmp://%snmp%/frRecFECNs.%frinst%
+ rrd-ds-type = COUNTER
+ datasource ifInCRC ds-source = snmp://%snmp%/ifInCRC.%inst%
+ rrd-ds-type = COUNTER
+
  # ifInOctets and ifOutOctets come from above, since they
  # are used by switch-ports as well
  
! targetType standard-interface
! ds = ifInBps
! ds = ifOutBps
! ds = ifInCRC
! view = "utilization stats: ifInBps ifOutBps"
! view = "error stats: ifInCRC"
  
! targetType sub-interface
! ds = ifInBps
! ds = ifOutBps
! ds = ifInCRC
! view = "utilization stats: ifInBps ifOutBps"
! view = "error stats: ifInCRC"
!
! targetType frame-interface
! ds = frInOctets
! ds = frOutOctets
! ds = frRecBECNs
! ds = frRecFECNs
! view = "utilization stats: frInOctets frOutOctets"
! view = "line stats: frRecBECNs frRecFECNs"
  
! # likewise, graph params for ifInOctets and ifOutOctets come from above
  
! graph ifInBps
! color = dark-green
! draw-as = AREA
! y-axis = "bits per second"
! Legend = "bits/sec inbound"
! units = "bits/sec"
! bytes = true
  
! graph ifOutBps
! color = blue
! y-axis = "bits per second"
! Legend = "bits/sec outbound"
! units = "bits/sec"
! bytes = true
  
  
! graph ifInCRC
! color = red
! draw-as = AREA
! y-axis = "crc errors"
! Legend = "crc errors"
! si-units = false
! precision = integer
  
! graph frRecBECNs
      color = dark-green
      draw-as = AREA
! y-axis = "frame relay BECNs"
! units = "BECNs"
! legend = "Average num BECNs"
! si-units = false
! precision = integer
  
! graph frRecFECNs
      color = blue
! y-axis = "frame relay FECNs"
! units = "FECNs"
! legend = "Average num FECNs"
! si-units = false
! precision = integer
   
! graph frInOctets
      color = dark-green
      draw-as = AREA
! legend = "Average bits in"
! y-axis = "bits per second"
! units = "bits/sec"
! scale = 8,*
! bytes = true
  
! graph frOutOctets
      color = blue
! legend = "Average bits out"
! y-axis = "bits per second"
! units = "bits/sec"
! scale = 8,*
! bytes = true
  
--------------8< cut here 8<-------------

Tim Kennedy
sugarat@thunderhold.sugarat.net

Disclaimer: since this came from this me, not that ---> me,
it is persona mail, and in no way reflects any opinions or
policies of my employer, whom I won't mention here, just to
keep things clear of them. (new email policy at work)
Usual stuff about confidentiality and whatnot... intended
receivers, blah, blah, etc., etc.

------------------------------------------------------------------------
What was YOUR favorite part?!
http://www.onelist.com
Tell other Star Wars fans at ONElist!



This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:00:49 PST