Cacti not storing the right value

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
LoZio
Posts: 9
Joined: Fri Nov 12, 2010 10:31 am

Cacti not storing the right value

Post by LoZio »

Hi,
i have a script that returns me the number of DNS queries serverd.
When i launch from the shell i obtain something like
Q:11959805
I created a data input method and everything to the graph.
Data is collected and populated but values seemed wrong. Instead of thousands of queries per 5minute, i got 20 to 30.
To be short, RRD data (derivative) contains the difference between samples, as if they were cut to the first five digits
Q:11931333->Q:11931
Q:11959805->Q:11959

I set the debug level to the system, and got
PM - SPINE: Poller[0] Host[491] TH[1] DS[13151] SCRIPT: /XXXXX/cacti/scripts/getDNSstats.sh, output: Q:11969146

So the polling is running right and returning the full values (XXXXX put by me).
What am I missing?
Running 0.8.7g on FreeBSD 8.2 x64.

Initially I shortened the output from QRYV4:xxx to Q:xxxx thinking it was too long (I read about some kind of limit), but it didn't change. Also using counter instead of derivative leads to same result.

Thanks
maguac
Posts: 5
Joined: Sun Aug 07, 2011 4:59 pm

Re: Cacti not storing the right value

Post by maguac »

Am getting a similar result per http://forums.cacti.net/viewtopic.php?f ... 1&start=60 and:
12/28/2011 03:00:01 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749247384
12/28/2011 03:00:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6574135
12/28/2011 03:05:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749072920
12/28/2011 03:05:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6337506
12/28/2011 03:10:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749226048
12/28/2011 03:10:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6573434
12/28/2011 03:15:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749107216
12/28/2011 03:15:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6455615
12/28/2011 03:20:03 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749243040
12/28/2011 03:20:03 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6578735
12/28/2011 03:25:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749227376
12/28/2011 03:25:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6554066
12/28/2011 03:30:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749060328
12/28/2011 03:30:03 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6345466
12/28/2011 03:35:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749263608
12/28/2011 03:35:03 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6572146
12/28/2011 03:40:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749239320
12/28/2011 03:40:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6568071
12/28/2011 03:45:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749214576
12/28/2011 03:45:03 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6529495
12/28/2011 03:50:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 748909296
12/28/2011 03:50:02 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6153590
12/28/2011 03:55:13 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get TX 10.210.125.7, output: 749260856
12/28/2011 03:55:14 PM - SPINE: Poller[0] Host[17] TH[1] DS[827] SCRIPT: perl x.pl 10.210.125.4 get RX 10.210.125.7, output: 6582455


Vertical Label: 'bits per second'
Start Date: 12/27/2011 16:00
End Date: 12/28/2011 15:55
Step: 300
Total Rows: 288
Graph ID: 825
Host ID: 17

Date Inbound Outbound
12/28/2011 15:00 145.26 656.05
12/28/2011 15:05 145.26 656.05
12/28/2011 15:10 6291.41 4083.41
12/28/2011 15:15 6291.41 4083.41
12/28/2011 15:20 3283.20 3621.97
12/28/2011 15:25 3283.20 3621.97
12/28/2011 15:30 NaN NaN
12/28/2011 15:35 6044.80 5420.80
12/28/2011 15:40 6044.80 5420.80
12/28/2011 15:45 NaN NaN
12/28/2011 15:50 NaN NaN
12/28/2011 15:55 11323.17 9282.11


Please assist
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti not storing the right value

Post by gandalf »

LoZio wrote:Data is collected and populated but values seemed wrong. Instead of thousands of queries per 5minute, i got 20 to 30.
In case you're using a COUNTER, then the value represented is related to "items per second" and not "items per interval". In case you nedd the latter, please use a CDEF like the default CDEF "Make per 5 Minutes"
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests