Hi,
I have created a custom script that will pass back two fields, CIRCUIT1 and CIRCUIT2, to Cacti. I can see in the logs that it is returning data:
05/25/2012 05:45:03 PM - CMDPHP: Poller[0] Host[11] DS[17] CMD: /usr/local/scripts/getxml.sh 172.30.232.19, output: CIRCUIT1:0.03 CIRCUIT2:0.33
05/25/2012 05:45:03 PM - POLLER: Poller[0] Parsed MULTI output field 'CIRCUIT1:0.03' [map CIRCUIT1->CIRCUIT1]
05/25/2012 05:45:03 PM - POLLER: Poller[0] Parsed MULTI output field 'CIRCUIT2:0.33' [map CIRCUIT2->CIRCUIT2]
05/25/2012 05:45:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/www/cacti/rra/ldex1-dc3-a10-am1_circuit1_17.rrd --template CIRCUIT1:CIRCUIT2 1337967900:0.03:0.33
But when checking the RRD file I see that it is storing the values in last_ds but value is always Nan. Ie from rrdtool info:
ds[CIRCUIT1].index = 0
ds[CIRCUIT1].type = "GAUGE"
ds[CIRCUIT1].minimal_heartbeat = 600
ds[CIRCUIT1].min = NaN
ds[CIRCUIT1].max = NaN
ds[CIRCUIT1].last_ds = "0.03"
ds[CIRCUIT1].value = NaN
ds[CIRCUIT1].unknown_sec = 0
ds[CIRCUIT2].index = 1
ds[CIRCUIT2].type = "GAUGE"
ds[CIRCUIT2].minimal_heartbeat = 600
ds[CIRCUIT2].min = NaN
ds[CIRCUIT2].max = NaN
ds[CIRCUIT2].last_ds = "0.33"
ds[CIRCUIT2].value = NaN
ds[CIRCUIT2].unknown_sec = 0
As you can see they are of type GAUGE. What else am I missing to get this working??
thanks for any suggestions, Andy.
PS Cacti is 0.8.8a on FreeBSD 9.0, PHP 5.4 and rrdtool 1.4.7.
Script data input method working but value is always NaN
Moderators: Developers, Moderators
Re: Script data input method working but value is always NaN
Ok, my bad. Having spent the afternoon fixing, testing a load of other bits and pieces (its a new install today) I messed up the rra dir permissions. Think its that simple.
thanks, Andy.
thanks, Andy.
Who is online
Users browsing this forum: No registered users and 0 guests