Re: Errors in collector
"Danilo Castro Dy" <[email protected]>
| Newsgroups | gmane.network.cricket.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks. I will try that print statement. Here is my directory structure C:\cricket-1.0.5\cricket-config Defaults > attached config.db C:\cricket-1.0.5\cricket-config\router-interfaces Defaults > attached README C:\cricket-1.0.5\cricket-config\router-interfaces\NCSCWKDSW1 Defaults > attached Interfaces > attached -----Original Message----- From: Ray Burkholder [mailto:[email protected]] Sent: Thursday, February 08, 2007 1:16 PM To: 'Danilo Castro Dy'; [email protected] Subject: RE: [cricket-users] Errors in collector When that has happened to me, I usually resort to putting print statements into the .pm files around the problem lines to determine what is there or isn't. Also, do you have a copy of the Default file or whatever where the config is stored? Sometimes it is an outofordinary interface type that causes this. > -----Original Message----- > From: Danilo Castro Dy [mailto:[email protected]] > Sent: Thursday, February 08, 2007 01:08 > To: 'Ray Burkholder'; [email protected] > Subject: RE: [cricket-users] Errors in collector > > Thanks. Here is the output of "C:\cricket-1.0.5>perl > collector -loglevel debug" for interface fa0/24 > -- Scanned for viruses and dangerous content at http://www.oneunified.net and is believed to be clean. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ cricket-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cricket-users
NCSCWKDSW1-interfaces.txt
(text/plain, 1.7 KB)
target --default-- switch = NCSCWKDSW1 target Fa0_1 interface-name = Fa0/1 short-desc = "" order = 25 target Fa0_2 interface-name = Fa0/2 short-desc = "" order = 24 target Fa0_3 interface-name = Fa0/3 short-desc = "" order = 23 target Fa0_4 interface-name = Fa0/4 short-desc = "" order = 22 target Fa0_5 interface-name = Fa0/5 short-desc = "" order = 21 target Fa0_6 interface-name = Fa0/6 short-desc = "" order = 20 target Fa0_7 interface-name = Fa0/7 short-desc = "" order = 19 target Fa0_8 interface-name = Fa0/8 short-desc = "" order = 18 target Fa0_9 interface-name = Fa0/9 short-desc = "" order = 17 target Fa0_10 interface-name = Fa0/10 short-desc = "" order = 16 target Fa0_11 interface-name = Fa0/11 short-desc = "" order = 15 target Fa0_12 interface-name = Fa0/12 short-desc = "" order = 14 target Fa0_13 interface-name = Fa0/13 short-desc = "" order = 13 target Fa0_14 interface-name = Fa0/14 short-desc = "" order = 12 target Fa0_15 interface-name = Fa0/15 short-desc = "" order = 11 target Fa0_16 interface-name = Fa0/16 short-desc = "" order = 10 target Fa0_17 interface-name = Fa0/17 short-desc = "" order = 9 target Fa0_18 interface-name = Fa0/18 short-desc = "" order = 8 target Fa0_19 interface-name = Fa0/19 short-desc = "" order = 7 target Fa0_20 interface-name = Fa0/20 short-desc = "" order = 6 target Fa0_21 interface-name = Fa0/21 short-desc = "" order = 5 target Fa0_22 interface-name = Fa0/22 short-desc = "" order = 4 target Fa0_23 interface-name = Fa0/23 short-desc = "" order = 3 target Fa0_24 interface-name = Fa0/24 short-desc = "" order = 2
NCSCWKDSW1-Defaults.txt
(text/plain, 1.2 KB)
# switches / switch-ports subtree
#
# I setup a switch-interface targetType to only contain the
# variables that all switch interfaces (ports, vlans, etc) would have
# Modify as you wish
#
# Note this first line of the default target.
# This maps the interface-name variable of each target to the ifName variable in the switch
# The actual map is in the root Defaults file
Target --default--
inst = map(switch-interface-name)
rrd-datafile = %dataDir%/%auto-target-name%.rrd
switch = %auto-target-name%
snmp-host = %switch%
target-type = switch-interface
directory-desc = "NCS Chadwick Distribution Switch 1"
targetType switch-interface
ds = "ifInOctets, ifOutOctets,
ifInErrors, ifOutErrors,
ifInUcastPackets, ifOutUcastPackets,
ifInDiscards, ifOutDiscards,
ifInNUcastPackets, ifOutNUcastPackets"
view = "Octets: ifInOctets ifOutOctets,
InPackets: ifInUcastPackets ifInNUcastPackets ifInDiscards,
OutPackets: ifOutUcastPackets ifOutNUcastPackets ifOutDiscards,
Errors: ifInErrors ifOutErrors"
cricket-config-Defaults.txt
(text/plain, 8.7 KB)
#
# Top Level Defaults
#
Target --default--
dataDir = %auto-base%/../cricket-data/%auto-target-path%
email-program = /usr/bin/mailx
rrd-datafile = %dataDir%/%auto-target-name%.rrd
rrd-poll-interval = 300
persistent-alarms = false
snmp-host = %auto-target-name%
snmp-community = omitted
snmp-port = 161
snmp-timeout = 2.0
snmp-retries = 5
snmp-backoff = 1.0
snmp-version = 1
snmp = %snmp-community%@%snmp-host%:%snmp-port%:%snmp-timeout%:%snmp-retries%:%snmp-backoff%:%snmp-version%
summary-loc = top
show-path = no
OID sysUptime 1.3.6.1.2.1.1.3.0
OID ifNumber 1.3.6.1.2.1.2.1.0
OID ifIndex 1.3.6.1.2.1.2.2.1.1
OID ifDescr 1.3.6.1.2.1.2.2.1.2
OID ifType 1.3.6.1.2.1.2.2.1.3
OID ifMtu 1.3.6.1.2.1.2.2.1.4
OID ifSpeed 1.3.6.1.2.1.2.2.1.5
OID ifPhysAddress 1.3.6.1.2.1.2.2.1.6
OID ifAdminStatus 1.3.6.1.2.1.2.2.1.7
OID ifOperStatus 1.3.6.1.2.1.2.2.1.8
OID ifLastChange 1.3.6.1.2.1.2.2.1.9
OID ifInOctets 1.3.6.1.2.1.2.2.1.10
OID ifInUcastPkts 1.3.6.1.2.1.2.2.1.11
OID ifInNUcastPkts 1.3.6.1.2.1.2.2.1.12
OID ifInDiscards 1.3.6.1.2.1.2.2.1.13
OID ifInErrors 1.3.6.1.2.1.2.2.1.14
OID ifInUnknownProtos 1.3.6.1.2.1.2.2.1.15
OID ifOutOctets 1.3.6.1.2.1.2.2.1.16
OID ifOutUcastPkts 1.3.6.1.2.1.2.2.1.17
OID ifOutNUcastPkts 1.3.6.1.2.1.2.2.1.18
OID ifOutDiscards 1.3.6.1.2.1.2.2.1.19
OID ifOutErrors 1.3.6.1.2.1.2.2.1.20
OID ifOutQLen 1.3.6.1.2.1.2.2.1.21
OID ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6
OID ifHCInUcastPkts 1.3.6.1.2.1.31.1.1.1.7
OID ifHCOutOctets 1.3.6.1.2.1.31.1.1.1.10
OID ifHCOutUcastPkts 1.3.6.1.2.1.31.1.1.1.11
OID ifAlias 1.3.6.1.2.1.31.1.1.1.18
dataSource --default--
rrd-ds-type = DERIVE
# if no updates are received for 30 minutes, consider the datasource
# unknown -- i.e. dead
rrd-heartbeat = 1800
rrd-min = 0
dataSource ifInOctets
ds-source = snmp://%snmp%/ifInOctets.%inst%
dataSource ifOutOctets
ds-source = snmp://%snmp%/ifOutOctets.%inst%
# rra
#
# The RRA dictionary specifies the config of the datafiles on disk.
# Unles you really know what you are doing, don't muck around with these.
# Trust me, the defaults will do what you want.
# this set of RRA's exactly duplicates the storage capacity of a
# rateup logfile (this assumes rrd-poll-interval is 300 (5 min))
# The second field (0.5, below) is NEW as of RRD 0.99. It
# is the xfiles-factor, which used to be in the target
# dictionary.
# one point per 5 minutes, spanning 50 hours
rra 5minAve AVERAGE:0.5:1:600
# one point per 30 minutes, spanning 12 days
rra 30minAve AVERAGE:0.5:6:600
# one point every 2 hours, spanning 50 days
rra 2hrAve AVERAGE:0.5:24:600
rra 2hrMax MAX:0.5:24:600
# one point every day, spanning 600 days
rra 1dayAve AVERAGE:0.5:288:600
rra 1dayMax MAX:0.5:288:600
# New aberrant behavior detection
rra hwpredict HWPREDICT:1440:0.28:0.0024:288
# These shouldn't be defined if hwpredict is defined.
#rra seasonal SEASONAL:288:0.1:2
#rra devpredict DEVPREDICT:1440:5
#rra devseasonal DEVSEASONAL:288:0.1:2
#rra failures FAILURES:288:7:9:5
# we will add datasources to each specific target-type later
targetType --default--
rra = "5minAve, 30minAve, 2hrAve, 2hrMax, 1dayAve, 1dayMax"
# rra = "5minAve, 30minAve, 2hrAve, 2hrMax, 1dayAve, 1dayMax, hwpredict"
# The HTML dict has bits and pieces of HTML that gets used
# by the grapher.
html body-options bgcolor=white
html page-header
<!-- you could put your company logo on every page here: -->
<!-- <img src="images/company-logo.gif" align=left> -->
<!-- Uncomment this to have the browser refresh every 5 minutes: -->
<!-- META HTTP-EQUIV="Refresh" CONTENT="300"-->
<!-- META HTTP-EQUIV="Pragma" CONTENT="no-cache"-->
<h1>%auto-title%</h1>
<br clear=left>
html contact-name
<a href="mailto:cricket">the Cricket Admins</a>
html contact
For questions or comments about this data, contact
%contact-name%.
html page-footer
<table width=100% cellpadding=3>
<tr>
<td>
<a href="http://cricket.sourceforge.net/"><img align=left width=58 height=55 src="images/cricket-sm.gif" border=0></a>
</td>
<td width=15% valign=center>
<p align=left><font size=+2>
<a href="http://cricket.sourceforge.net/">Cricket</a>
<font size=2><br>Version %auto-short-version%</font>
</td>
<td>
%contact%
</td>
<td width=120 valign=center>
<center>
<a href="http://ee-staff.ethz.ch/~oetiker/webtools/rrdtool"><img width=120 height=34 src="images/rrdtool.gif" border=0></a>
</td>
</tr>
</table>
<p>
<font color=red>%auto-error%</font>
</p>
html head
<title>%auto-title%</title>
# <link rel="stylesheet" src="cricket.css" type="text/css">
# Colors are in HTML #RRGGBB format, without the #
# I'm not very creative. Cool color schemes would be a welcome addition.
color dark-green 00cc00
color blue 0000ff
color red ff0000
color cyan 00ffff
color magenta ff00ff
color yellow ffff00
color dark-red cc0000
color dark-blue 0000cc
# thanks to Shannon Reis <[email protected]> for these
color cornflower 0080C0
color light-purple 8080C0
color pink FF0080
color purple 800080
color deep-blue 0000A0
color green 408080
color brown 808000
color black 000000
color neongrn 00FF00
color skyblue 0080FF
color orange FF8000
color burntorng 800000
color purply FB31FB
# this tells the grapher which colors to choose first, if
# it was not given colors
color --order-- "dark-green, blue, red, cyan, magenta, yellow,
dark-red, dark-blue, cornflower, light-purple, pink, purple,
deep-blue, green, brown, black, neongrn, skyblue, orange, burntorng
purply"
# graph
#
# This dictionary controls how data is presented.
graph --default--
draw-as = LINE1
width = 500
height = 200
interleaved = false
# Set these by looking at what size RRD makes your
# finished graphs. It's too much trouble to try to calculate
# them at runtime. If there is any doubt, don't set them. Bad hints
# are worse than no hints!
#width-hint = 595
#height-hint = 255
# if this attribute exists, then vertical rules will be placed
# on the graphs at every zero-time, i.e. midnight, Monday, first of
# the month, first of the year.
vrule-color = red
# Set use-gprint to print the min, max and curr values into the
# graphic.
#use-gprint = "true"
graph ifInOctets
color = dark-green
draw-as = AREA
legend = "Average bits in"
y-axis = "bits per second"
units = "bits/sec"
scale = 8,*
bytes = true
graph ifOutOctets
color = blue
legend = "Average bits out"
y-axis = "bits per second"
units = "bits/sec"
scale = 8,*
bytes = true
# map
#
# This dict is used to control the instance mapping code.
# See the docs for more information about the map dictionary.
map interface-name
base-oid = ifDescr
match = %interface-name%
# This is a neat map that will let you tie Cricket target
# names to the extended interface descriptions that Ciscos
# support (called "aliases" by the MIB). For example,
# if your target name is "corporate-ds3", then do
# this on your Cisco:
#
# router#config term
# router(config)#int Hssi/0/0/0
# router(config-if)#description [corporate-ds3] 45 Mbps DS3 to Corporate
# router(config-if)#^Z
#
# And set inst to "map(alias-matches-target)" for that target.
map alias-matches-target
base-oid = ifAlias
match = /^.*\\[%auto-target-name%\\].*$/
# events can be associated with a target, and then those
# events will be marked on the graph.
event --default--
color = magenta
event test
name = "Events were added to Cricket"
date = "6/2/99 14:30"
router-interfaces-Defaults.txt
(text/plain, 6.9 KB)
#
# Top Level Defaults
#
Target --default--
directory-desc = "Switches and Routers Interfaces Information"
dataDir = %auto-base%/../cricket-data/%auto-target-path%
rrd-datafile = %dataDir%/%auto-target-name%.rrd
rrd-poll-interval = 300
snmp-host = %auto-target-name%
snmp-community = omitted
snmp-port = 161
snmp = %snmp-community%@%snmp-host%:%snmp-port%
OID sysUptime 1.3.6.1.2.1.1.3.0
OID ifNumber 1.3.6.1.2.1.2.1.0
OID ifIndex 1.3.6.1.2.1.2.2.1.1
OID ifDescr 1.3.6.1.2.1.2.2.1.2
OID ifType 1.3.6.1.2.1.2.2.1.3
OID ifMtu 1.3.6.1.2.1.2.2.1.4
OID ifSpeed 1.3.6.1.2.1.2.2.1.5
OID ifPhysAddress 1.3.6.1.2.1.2.2.1.6
OID ifAdminStatus 1.3.6.1.2.1.2.2.1.7
OID ifOperStatus 1.3.6.1.2.1.2.2.1.8
OID ifLastChange 1.3.6.1.2.1.2.2.1.9
OID ifInOctets 1.3.6.1.2.1.2.2.1.10
OID ifInUcastPkts 1.3.6.1.2.1.2.2.1.11
OID ifInNUcastPkts 1.3.6.1.2.1.2.2.1.12
OID ifInDiscards 1.3.6.1.2.1.2.2.1.13
OID ifInErrors 1.3.6.1.2.1.2.2.1.14
OID ifInUnknownProtos 1.3.6.1.2.1.2.2.1.15
OID ifOutOctets 1.3.6.1.2.1.2.2.1.16
OID ifOutUcastPkts 1.3.6.1.2.1.2.2.1.17
OID ifOutNUcastPkts 1.3.6.1.2.1.2.2.1.18
OID ifOutDiscards 1.3.6.1.2.1.2.2.1.19
OID ifOutErrors 1.3.6.1.2.1.2.2.1.20
OID ifOutQLen 1.3.6.1.2.1.2.2.1.21
OID ifHCInOctets 1.3.6.1.2.1.31.1.1.1.6
OID ifHCInUcastPkts 1.3.6.1.2.1.31.1.1.1.7
OID ifHCOutOctets 1.3.6.1.2.1.31.1.1.1.10
OID ifHCOutUcastPkts 1.3.6.1.2.1.31.1.1.1.11
OID ifAlias 1.3.6.1.2.1.31.1.1.1.18
# TAG
# Needed for Cisco Switches
OID ifName 1.3.6.1.2.1.31.1.1.1.1
dataSource --default--
rrd-ds-type = COUNTER
# if no updates are received for 30 minutes, consider the datasource
# unknown -- i.e. dead
rrd-heartbeat = 1800
dataSource ifInOctets
ds-source = snmp://%snmp%/ifInOctets.%inst%
dataSource ifOutOctets
ds-source = snmp://%snmp%/ifOutOctets.%inst%
# rra
#
# The RRA dictionary specifies the config of the datafiles on disk.
# Unles you really know what you are doing, don't muck around with these.
# Trust me, the defaults will do what you want.
# this set of RRA's exactly duplicates the storage capacity of a
# rateup logfile (this assumes rrd-poll-interval is 300 (5 min))
# The second field (0.5, below) is NEW as of RRD 0.99. It
# is the xfiles-factor, which used to be in the target
# dictionary.
# one point per 5 minutes, spanning 50 hours
rra 5minAve AVERAGE:0.5:1:600
# one point per 30 minutes, spanning 12 days
rra 30minAve AVERAGE:0.5:6:600
# one point every 2 hours, spanning 50 days
rra 2hrAve AVERAGE:0.5:24:600
rra 2hrMax MAX:0.5:24:600
# one point every day, spanning 600 days
rra 1dayAve AVERAGE:0.5:288:600
rra 1dayMax MAX:0.5:288:600
# we will add datasources to each specific target-type later
targetType --default--
rra = "5minAve, 30minAve, 2hrAve, 2hrMax, 1dayAve, 1dayMax"
# The HTML dict has bits and pieces of HTML that gets used
# by the grapher.
html body-options bgcolor=white
html page-header
<h1>%auto-title%</h1>
<br clear=left>
html page-footer
<a href="http://www.munitions.com/~jra/cricket"><img align=left width=58 height=55 src="images/cricket-sm.gif" border=0></a>
<br><a href="http://www.munitions.com/~jra/cricket">Cricket</a>
<br>Version %auto-short-version%
<!--
<p>
<font color=red>%auto-error%</font>
</p>
-->
html head
<title>%auto-title%</title>
# Colors are in HTML #RRGGBB format, without the #
# I'm not very creative. Cool color schemes would be a welcome addition.
color dark-green 00cc00
color blue 0000ff
color red ff0000
color cyan 00ffff
color magenta ff00ff
color yellow ffff00
color dark-red cc0000
color dark-blue 0000cc
# thanks to Shannon Reis <[email protected]> for these
color cornflower 0080C0
color light-purple 8080C0
color pink FF0080
color purple 800080
color deep-blue 0000A0
color green 408080
color brown 808000
color black 000000
color neongrn 00FF00
color skyblue 0080FF
color orange FF8000
color burntorng 800000
color purply FB31FB
# this tells the grapher which colors to choose first, if
# it was not given colors
color --order-- "dark-green, blue, red, cyan, magenta, yellow,
dark-red, dark-blue, cornflower, light-purple, pink, purple,
deep-blue, green, brown, black, neongrn, skyblue, orange, burntorng
purply"
# graph
#
# This dictionary controls how data is presented.
graph --default--
draw-as = LINE1
width = 500
height = 200
interleaved = false
# Set these by looking at what size RRD makes your
# finished graphs. It's too much trouble to try to calculate
# them at runtime. If there is any doubt, don't set them. Bad hints
# are worse than no hints!
width-hint = 595
height-hint = 255
# if this attribute exists, then vertical rules will be placed
# on the graphs at every zero-time, i.e. midnight, Monday, first of
# the month, first of the year.
vrule-color = red
graph ifInOctets
color = dark-green
draw-as = AREA
legend = "Average bits in"
y-axis = "bits per second"
units = "bits/sec"
scale = 8,*
bytes = true
graph ifOutOctets
color = blue
legend = "Average bits out"
y-axis = "bits per second"
units = "bits/sec"
scale = 8,*
bytes = true
# map
#
# This dict is used to control the instance mapping code.
# See the docs for more information about the map dictionary.
map interface-name
base-oid = ifDescr
match = %interface-name%
# This is a neat map that will let you tie Cricket target
# names to the extended interface descriptions that Ciscos
# support (called "aliases" by the MIB). For example,
# if your target name is "corporate-ds3", then do
# this on your Cisco:
#
# router#config term
# router(config)#int Hssi/0/0/0
# router(config-if)#description [corporate-ds3] 45 Mbps DS3 to Corporate
# router(config-if)#^Z
#
# And set inst to "map(alias-matches-target)" for that target.
map alias-matches-target
base-oid = ifAlias
match = /^.*\\[%auto-target-name%\\].*$/
# TAG
# This map is used for Cisco switches which store the Interface name in the ifName table
map switch-interface-name
base-oid = ifName
match = %interface-name%
# events can be associated with a target, and then those
# events will be marked on the graph.
event --default--
color = magenta
event test
name = "Events were added to Cricket"
date = "6/2/99 14:30"