Wrong updating the rrd file

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
petpet
Posts: 20
Joined: Thu Nov 09, 2006 1:16 pm

Wrong updating the rrd file

Post by petpet »

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
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Wrong updating the rrd file

Post by noname »

petpet 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
1321887902 = Nov 21 2011 16:05:02 CET

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
petpet
Posts: 20
Joined: Thu Nov 09, 2006 1:16 pm

Re: Wrong updating the rrd file

Post by petpet »

Thank you for your answer
it makes sense and it is clear
Thanks a lot

have a nice day

pet
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests