Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
Andrew80k
Posts: 4 Joined: Thu Jan 08, 2009 3:10 pm
Post
by Andrew80k » Thu Jan 08, 2009 3:27 pm
Running RH EL3.
I have a custom script that outputs a single value. I used the HowTo to create the Data Input Method, etc and the graph is created and data is gathered it appears properly. The cacti.log file shows the correct value being acquired by the poller:
Code: Select all
01/08/2009 07:05:03 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/sfpa-mot-03_concurrent_calls_36.rrd --template concurrent_calls 1231448702:4
The value of 4 is the correct returned value, but the value in the rrd file is something different:
Code: Select all
<!-- 2009-01-08 19:05:00 BRST / 1231448700 --> <row><v> 0.0000000000e+00 </v></row>
Can anyone offer any insight as to why this is occurring and how I go about fixing it?
TIA.
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Fri Jan 09, 2009 9:57 am
Please see 2nd link of my sig for debugging
Reinhard
Andrew80k
Posts: 4 Joined: Thu Jan 08, 2009 3:10 pm
Post
by Andrew80k » Fri Jan 09, 2009 10:48 am
gandalf wrote: Please see 2nd link of my sig for debugging
Reinhard
Been there, done that. Still not right.
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Fri Jan 09, 2009 10:57 am
To be honest, this answer does not provide more useful information to go on. E.g. results from your steps would be appreciated
Reinhard
Andrew80k
Posts: 4 Joined: Thu Jan 08, 2009 3:10 pm
Post
by Andrew80k » Fri Jan 09, 2009 11:18 am
gandalf wrote: To be honest, this answer does not provide more useful information to go on. E.g. results from your steps would be appreciated
Reinhard
Sorry, I'm a little frustrated.
It seems like the rrdtool is applying a scaling factor of some sort. Even though I still get zero's and NaN's. What do I need to give you to help you help me? It seems like the number given to the rrdtool from the poller is correct, but the number inside the .rrd file is not correct. Here is the "info" from the file. Maybe that will be useful.
Code: Select all
filename = "sfpa-mot-03_concurrent_calls_36.rrd"
rrd_version = "0001"
step = 300
last_update = 1231519502
ds[concurrent_calls].type = "COUNTER"
ds[concurrent_calls].minimal_heartbeat = 600
ds[concurrent_calls].min = 0.0000000000e+00
ds[concurrent_calls].max = 1.0000000000e+02
ds[concurrent_calls].last_ds = "8"
ds[concurrent_calls].value = 3.3333333333e-02
ds[concurrent_calls].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 500
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[1].cf = "AVERAGE"
rra[1].rows = 600
rra[1].pdp_per_row = 1
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = NaN
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 700
rra[2].pdp_per_row = 6
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 2.6666666667e-02
rra[2].cdp_prep[0].unknown_datapoints = 1
rra[3].cf = "AVERAGE"
rra[3].rows = 775
rra[3].pdp_per_row = 24
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 5.6655666298e-02
rra[3].cdp_prep[0].unknown_datapoints = 1
rra[4].cf = "AVERAGE"
rra[4].rows = 797
rra[4].pdp_per_row = 288
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = 5.8007907693e-01
rra[4].cdp_prep[0].unknown_datapoints = 10
rra[5].cf = "MAX"
rra[5].rows = 500
rra[5].pdp_per_row = 1
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = NaN
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 600
rra[6].pdp_per_row = 1
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = NaN
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 700
rra[7].pdp_per_row = 6
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 1.6666666667e-02
rra[7].cdp_prep[0].unknown_datapoints = 1
rra[8].cf = "MAX"
rra[8].rows = 775
rra[8].pdp_per_row = 24
rra[8].xff = 5.0000000000e-01
rra[8].cdp_prep[0].value = 1.6666666667e-02
rra[8].cdp_prep[0].unknown_datapoints = 1
rra[9].cf = "MAX"
rra[9].rows = 797
rra[9].pdp_per_row = 288
rra[9].xff = 5.0000000000e-01
rra[9].cdp_prep[0].value = 2.3333333333e-02
rra[9].cdp_prep[0].unknown_datapoints = 10
Thanks.
Andrew80k
Posts: 4 Joined: Thu Jan 08, 2009 3:10 pm
Post
by Andrew80k » Fri Jan 09, 2009 11:31 am
I think I finally figured it out myself.
Code: Select all
ds[concurrent_calls].type = "COUNTER"
type should have been GAUGE. Not sure why, but I'm sure if I read more of the docs on rrdtool, I'll find out.
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Fri Jan 09, 2009 3:28 pm
Good hit!
Please read e.g. 1st link of my sig for some intro.
And, one caveat: Your rrdtool settings for that file are wrong. You shouldn't have selected the first rra entry when creating the data template.
I assume you're collecting data every 5 min?
Reinhard
Users browsing this forum: No registered users and 0 guests