unknown
1970-01-01 00:00:00 UTC
[Sun Apr 18 17:05:32 2010] [error] [client 127.0.0.1] Use of uninitialized value
$template in pack at /home/cricket/cricket/lib/RRD/Format.pm line 188., referer:
http://localhost/~cricket/cricket/grapher.cgi?target=%2Ftest
Meanwhile, on my cgi page, I see no data in the graph or in the summaries.
My
http://localhost/~cricket/cricket/grapher.cgi?target=%2Ftest%2Ftest;view=name
output shows:
Summary
Values at last update:
Last updated at Sun Apr 18 17:05:22 2010
(and then two graphs with all graph formatting as specified but no data)
cricket/compile shows:
[***@localhost ~]$ cricket/compile
[18-Apr-2010 17:13:09 ] Log level changed from warn to info.
[18-Apr-2010 17:13:09 ] Starting compile: Cricket version 1.0.5 (2004-03-28)
[18-Apr-2010 17:13:09 ] Config directory is /home/cricket/cricket-config
[18-Apr-2010 17:13:09 ] Processed 3 nodes (in 3 files) in 0 seconds.
[***@localhost ~]$
cricket/collector --loglevel=debug /test shows:
[***@localhost ~]$ cricket/compile
[18-Apr-2010 17:13:09 ] Log level changed from warn to info.
[18-Apr-2010 17:13:09 ] Starting compile: Cricket version 1.0.5 (2004-03-28)
[18-Apr-2010 17:13:09 ] Config directory is /home/cricket/cricket-config
[18-Apr-2010 17:13:09 ] Processed 3 nodes (in 3 files) in 0 seconds.
[***@localhost ~]$ cricket/collector --loglevel=debug /test
[18-Apr-2010 17:14:33 ] Log level changed from warn to debug.
[18-Apr-2010 17:14:33 ] Starting collector: Cricket version 1.0.5 (2004-03-28)
[18-Apr-2010 17:14:33 ] Processing /test/test...
[18-Apr-2010 17:14:33 ] target test
auto-base = /home/cricket/cricket-config
auto-root = /..
auto-target-path = /test
datadir = /home/cricket/cricket-config/../cricket-data//test
display-name = test on
email-program = /usr/bin/mailx
inst =
min-size = 0
persistent-alarms = false
rrd-datafile = /home/cricket/cricket-config/../cricket-data//test/test.rrd
rrd-poll-interval = 300
server =
show-path = no
snmp = public@:161:2.0:5:1.0:1
snmp-backoff = 1.0
snmp-community = public
snmp-host =
snmp-port = 161
snmp-retries = 5
snmp-timeout = 2.0
snmp-version = 1
summary-loc = top
target-type = valueFromFile
[18-Apr-2010 17:14:33 ] Retrieving data for target test () (valuefromfile)
[18-Apr-2010 17:14:33 ] ds0 is: 0:/tmp/test-ds.txt
[18-Apr-2010 17:14:33 ] Reading data from /tmp/test-ds.txt for test
[18-Apr-2010 17:14:33 ] Retrieved data for test (): 55
[18-Apr-2010 17:14:33 ] Processing /test/test...
[18-Apr-2010 17:14:33 ] Processed 1 targets in 0 seconds.
comment: yes there's extra settings in there but I'm basically cutting and
pasting and learning as I go, hence the unused snmp settings and the clueless
customization
The Default and Targets files contain is:
target test
target-type = "valueFromFile"
#collect = false
target --default--
server = ""
snmp-host = %server%
display-name = "%auto-target-name% on %server%"
min-size = 0
max-size = undef
##### Datasources #########
dataSource straight_value
ds-source = file:0:/tmp/test-ds.txt
rrd-ds-type = GAUGE
#### Target Types #########
targetType valueFromFile
ds = "straight_value"
view = "name: straight_value"
#### Graphs ###############
graph --default--
legend = "just another test graph"
y-max = 100
#units = tu
width-hint = undef
height-hint = undef
#scale = undef
rrd-graph-args = undef
#si-units= false
color = dark-green
draw-as = LINE2
y-axis = "test y-axis label"
units = "Users"
graph test-ds
draw-as = LINE2
The /tmp/test-ds.txt file is just a file containing the number '55'.
Can anyone help?
$template in pack at /home/cricket/cricket/lib/RRD/Format.pm line 188., referer:
http://localhost/~cricket/cricket/grapher.cgi?target=%2Ftest
Meanwhile, on my cgi page, I see no data in the graph or in the summaries.
My
http://localhost/~cricket/cricket/grapher.cgi?target=%2Ftest%2Ftest;view=name
output shows:
Summary
Values at last update:
Last updated at Sun Apr 18 17:05:22 2010
(and then two graphs with all graph formatting as specified but no data)
cricket/compile shows:
[***@localhost ~]$ cricket/compile
[18-Apr-2010 17:13:09 ] Log level changed from warn to info.
[18-Apr-2010 17:13:09 ] Starting compile: Cricket version 1.0.5 (2004-03-28)
[18-Apr-2010 17:13:09 ] Config directory is /home/cricket/cricket-config
[18-Apr-2010 17:13:09 ] Processed 3 nodes (in 3 files) in 0 seconds.
[***@localhost ~]$
cricket/collector --loglevel=debug /test shows:
[***@localhost ~]$ cricket/compile
[18-Apr-2010 17:13:09 ] Log level changed from warn to info.
[18-Apr-2010 17:13:09 ] Starting compile: Cricket version 1.0.5 (2004-03-28)
[18-Apr-2010 17:13:09 ] Config directory is /home/cricket/cricket-config
[18-Apr-2010 17:13:09 ] Processed 3 nodes (in 3 files) in 0 seconds.
[***@localhost ~]$ cricket/collector --loglevel=debug /test
[18-Apr-2010 17:14:33 ] Log level changed from warn to debug.
[18-Apr-2010 17:14:33 ] Starting collector: Cricket version 1.0.5 (2004-03-28)
[18-Apr-2010 17:14:33 ] Processing /test/test...
[18-Apr-2010 17:14:33 ] target test
auto-base = /home/cricket/cricket-config
auto-root = /..
auto-target-path = /test
datadir = /home/cricket/cricket-config/../cricket-data//test
display-name = test on
email-program = /usr/bin/mailx
inst =
min-size = 0
persistent-alarms = false
rrd-datafile = /home/cricket/cricket-config/../cricket-data//test/test.rrd
rrd-poll-interval = 300
server =
show-path = no
snmp = public@:161:2.0:5:1.0:1
snmp-backoff = 1.0
snmp-community = public
snmp-host =
snmp-port = 161
snmp-retries = 5
snmp-timeout = 2.0
snmp-version = 1
summary-loc = top
target-type = valueFromFile
[18-Apr-2010 17:14:33 ] Retrieving data for target test () (valuefromfile)
[18-Apr-2010 17:14:33 ] ds0 is: 0:/tmp/test-ds.txt
[18-Apr-2010 17:14:33 ] Reading data from /tmp/test-ds.txt for test
[18-Apr-2010 17:14:33 ] Retrieved data for test (): 55
[18-Apr-2010 17:14:33 ] Processing /test/test...
[18-Apr-2010 17:14:33 ] Processed 1 targets in 0 seconds.
comment: yes there's extra settings in there but I'm basically cutting and
pasting and learning as I go, hence the unused snmp settings and the clueless
customization
The Default and Targets files contain is:
target test
target-type = "valueFromFile"
#collect = false
target --default--
server = ""
snmp-host = %server%
display-name = "%auto-target-name% on %server%"
min-size = 0
max-size = undef
##### Datasources #########
dataSource straight_value
ds-source = file:0:/tmp/test-ds.txt
rrd-ds-type = GAUGE
#### Target Types #########
targetType valueFromFile
ds = "straight_value"
view = "name: straight_value"
#### Graphs ###############
graph --default--
legend = "just another test graph"
y-max = 100
#units = tu
width-hint = undef
height-hint = undef
#scale = undef
rrd-graph-args = undef
#si-units= false
color = dark-green
draw-as = LINE2
y-axis = "test y-axis label"
units = "Users"
graph test-ds
draw-as = LINE2
The /tmp/test-ds.txt file is just a file containing the number '55'.
Can anyone help?