Hi
i found out that my cacti log and the rrd file doesn't correspond
I send to script value 1003
Cacti log shows:
....eshop_mess.sh CIS_RU, output: rul:1003 rus:585 ruo:123
11/21/2011 04:06:04 PM - POLLER: Poller[0] Parsed MULTI output field 'rul:1003' [map rul->rul]
11/21/2011 04:06:04 PM - POLLER: Poller[0] Parsed MULTI output field 'rus:585' [map rus->rus]
11/21/2011 04:06:04 PM - POLLER: Poller[0] Parsed MULTI output field 'ruo:123' [map ruo->ruo]
11/21/2011 04:06:04 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /rra/localhost_rul_11488.rrd --template rul:rus:ruo 1321887902:1003:585:123
and this looks ok
But the file localhost_rul_11488.rrd itself looks different:
<!-- 2011-11-21 16:05:00 CET / 1321887900 --> <row><v>1.0003000000e+03</v><v>1.2298333333e+02</v><v>5.8470000000e+02</v></row>
which in result is not 1003 but 1000 ( cause i have to display exact number )
Do you know why it is like that ?
here is the data source:
<ds>
<name> rul </name>
<type> GAUGE </type>
<minimal_heartbeat>600</minimal_heartbeat>
<min>0.0000000000e+00</min>
<max>1.0000000000e+04</max>
<!-- PDP Status -->
<last_ds>1300</last_ds>
<value>6.5000000000e+03</value>
<unknown_sec> 0 </unknown_sec>
thanks
pet
Wrong updating the rrd file
Moderators: Developers, Moderators
Re: Wrong updating the rrd file
1321887902 = Nov 21 2011 16:05:02 CETpetpet wrote:11/21/2011 04:06:04 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /rra/localhost_rul_11488.rrd --template rul:rus:ruo 1321887902:1003:585:123
Polled values may be adjusted to fit polling interval (e.g. 300 seconds).
- Non Integer Values shown - Cacti Docs
So probably your values were reduced slightly as following.
1003 --> 1.0003000000e+03
585 --> 5.8470000000e+02
123 --> 1.2298333333e+02
Re: Wrong updating the rrd file
Thank you for your answer
it makes sense and it is clear
Thanks a lot
have a nice day
pet
it makes sense and it is clear
Thanks a lot
have a nice day
pet
Who is online
Users browsing this forum: No registered users and 4 guests