# router sub-tree # # This is where we collect stats on the chassis of our routers # (i.e. memory, CPU, temperature) as well as their interfaces. # Note: this is basically a merger of the sample routers and # router-interfaces trees. Target --default-- rrd-datafile = %dataDir%/%auto-target-name%.rrd router = %auto-target-name% snmp-host = %router% # you could set a router-specific community string here: # snmp-community = not-public # # Provide no default type, since each router will be different, # and if we want to specify each model explicitly, or # get a warning. target-type = undef # OID's we'll be using in this tree OID cpu1min 1.3.6.1.4.1.9.2.1.57.0 OID cpu5min 1.3.6.1.4.1.9.2.1.58.0 OID tempInlet 1.3.6.1.4.1.9.9.13.1.3.1.3.1 OID tempOutlet 1.3.6.1.4.1.9.9.13.1.3.1.3.3 OID tempState 1.3.6.1.4.1.9.9.13.1.3.1.6.1 OID mem5minUsed 1.3.6.1.4.1.9.9.48.1.1.1.5.1 OID mem5minFree 1.3.6.1.4.1.9.9.48.1.1.1.6.1 datasource --default-- rrd-ds-type = COUNTER rrd-heartbeat = 1800 rrd-min = undef rrd-max = undef datasource cpu1min rrd-ds-type = GAUGE ds-source = snmp://%snmp%/cpu1min datasource cpu5min rrd-ds-type = GAUGE ds-source = snmp://%snmp%/cpu5min datasource tempInlet rrd-ds-type = GAUGE ds-source = snmp://%snmp%/tempInlet datasource tempOutlet rrd-ds-type = GAUGE ds-source = snmp://%snmp%/tempOutlet datasource tempState rrd-ds-type = GAUGE ds-source = snmp://%snmp%/tempState datasource mem5minUsed rrd-ds-type = GAUGE ds-source = snmp://%snmp%/mem5minUsed datasource mem5minFree rrd-ds-type = GAUGE ds-source = snmp://%snmp%/mem5minFree # 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 Cisco-7000-Router ds = "cpu1min, cpu5min, tempInlet, tempOutlet, mem5minUsed, mem5minFree" view = "cpu: cpu1min cpu5min, temperature: tempInlet tempOutlet, memory: mem5minUsed mem5minFree" targetType Cisco-7200-Router ds = "cpu1min, cpu5min, tempInlet, tempOutlet, mem5minUsed, mem5minFree" view = "cpu: cpu1min cpu5min, temperature: tempInlet tempOutlet, memory: mem5minUsed mem5minFree" targetType Cisco-7500-Router ds = "cpu1min, cpu5min, tempInlet, tempOutlet, mem5minUsed, mem5minFree" view = "cpu: cpu1min cpu5min, temperature: tempInlet tempOutlet, memory: mem5minUsed mem5minFree" # 3600 routers do not report temperature -- they only # report tempterature states: # normal(1), # warning(2), # critical(3), # shutdown(4), # notPresent(5) targetType Cisco-3600-Router ds = "cpu1min, cpu5min, tempState, mem5minUsed, mem5minFree" view = "cpu: cpu1min cpu5min, tempAlarm: tempState, memory: mem5minUsed mem5minFree" targetType Cisco-2600-Router ds = "cpu1min, cpu5min, tempState, mem5minUsed, mem5minFree" view = "cpu: cpu1min cpu5min, tempAlarm: tempState, memory: mem5minUsed mem5minFree" # 2500 routers don't even report the temperature. Feh. targetType Cisco-2500-Router ds = "cpu1min, cpu5min, mem5minUsed, mem5minFree" view = "cpu: cpu1min cpu5min, memory: mem5minUsed mem5minFree" # If all else failes, assume that all Ciscos at least return CPU and memory. targetType Cisco-Unknown-Router ds = "cpu1min, cpu5min, mem5minUsed, mem5minFree" view = "cpu: cpu1min cpu5min, memory: mem5minUsed mem5minFree" # Interface target types. 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" html short-desc Router Chassis graph cpu1min units = "%" color = dark-green draw-as = AREA y-axis = "Percent CPU utilization" legend = "1 minute CPU utilization" # fixed y-axis, since this is a percentage y-min = 0 y-max = 100 graph cpu5min units = "%" color = blue y-axis = "Percent CPU utilization" legend = "5 minute CPU utilization" # fixed y-axis, since this is a percentage y-min = 0 y-max = 100 graph tempInlet color = dark-green draw-as = AREA y-axis = "degrees Centigrade" units = "°" space = "" legend = "Inlet temperature in C" precision = integer graph tempOutlet color = blue y-axis = "degrees Centigrade" units = "°" space = "" legend = "Outlet temperature in C" precision = integer graph mem5minUsed color = dark-green draw-as = AREA y-axis = "Bytes" legend = "5 minute used memory" graph mem5minFree color = blue y-axis = "Bytes" legend = "5 minute free memory" 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"