[rrd-users] Problem in feeding rrd with external data
Ali Gunduz
gunduza at meteksan.net.tr
Fri Feb 20 10:35:08 MET 2004
Hi,
I have an external script to gather the # of online dialup users at
access servers. Script gets this data from radius and counts users for
any access server. I'm calling this script via mrtg every 5 minutes and
mrtg uses rrdtool.
Target[xdialup]: `dialupscript.sh 192.168.0.2`
Where 192.168.0.2 is the ip number of access server...
This script returns data as mentioned in documentation:
12
0
0
0
(first line is the # of online dialup users at access server
192.168.0.2. Rest is always 0)
Whereas script surely sends integer data, I see decimal numbers in RRD
file.
1077264900: 1.5953333333e+01 0.0000000000e+00 (This is actually 16
users)
1077265200: 1.6000000000e+01 0.0000000000e+00 (This is already 16)
1077265500: 1.4093333333e+01 0.0000000000e+00 (This is 14 users)
1077265800: 1.6870000000e+01 0.0000000000e+00 (This is 17 users)
1077266100: 1.4130000000e+01 0.0000000000e+00 (This is 14 users)
I don't know why this happens. RRD file is created as GAUGE. Why could
this be happening?
Below is rrdinfo if it helps.
I'm using rrdtool version 1.0.46 and mrtg 2.10.13. Operating system is
Solaris 2.6 and perl version is 5.8.2 (compiled with gcc 3.2)
--------------------------------
rrd_version = "0001"
step = 300
last_update = 1077268815
ds[ds0].type = "GAUGE"
ds[ds0].minimal_heartbeat = 600
ds[ds0].min = 0.0000000000e+00
ds[ds0].max = 4.8000000000e+02
ds[ds0].last_ds = "8"
ds[ds0].value = 2.1000000000e+02
ds[ds0].unknown_sec = 0
ds[ds1].type = "GAUGE"
ds[ds1].minimal_heartbeat = 600
ds[ds1].min = 0.0000000000e+00
ds[ds1].max = 4.8000000000e+02
ds[ds1].last_ds = "0"
ds[ds1].value = 0.0000000000e+00
ds[ds1].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 599
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 700
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 4.8980000000e+01
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 0.0000000000e+00
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 775
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 2.1203000000e+02
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 0.0000000000e+00
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 795
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 5.4668000000e+02
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 0.0000000000e+00
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "MAX"
rra[4].rows = 700
rra[4].pdp_per_row = 6
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = 1.3920000000e+01
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = 0.0000000000e+00
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 775
rra[5].pdp_per_row = 24
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 1.6870000000e+01
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 0.0000000000e+00
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 795
rra[6].pdp_per_row = 288
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 1.6870000000e+01
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 0.0000000000e+00
rra[6].cdp_prep[1].unknown_datapoints = 0
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list