Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[HOWTO] Using Data Queries and Data Input Methods
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
Geier0815



Joined: 22 May 2006
Posts: 13

PostPosted: Wed May 31, 2006 6:08 am    Post subject: Reply with quote

http://www.geier0815.de/cacti/cacti_niedriger_load.log
http://www.geier0815.de/cacti/cacti_hoher_load.log

contains the full data of one polling cycle (5 min) with loglevel on DEBUG. One with low traffic and the other with high (~4MB) traffic on the testserver.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Wed May 31, 2006 1:45 pm    Post subject: Reply with quote

Interesting part of the first log is
Code:
05/31/2006 12:10:05 PM - CMDPHP: Poller[0] Host[3] DS[33] SNMP: v1: testserver6.tng-lab.de, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 103031819
05/31/2006 12:10:05 PM - CMDPHP: Poller[0] Host[3] DS[33] SNMP: v1: testserver6.tng-lab.de, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 3744367078
05/31/2006 12:10:05 PM - CMDPHP: Poller[0] Host[3] DS[35] SNMP: v1: testserver6.tng-lab.de, dsname: ifOutOctets, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 103032002
05/31/2006 12:10:05 PM - CMDPHP: Poller[0] Host[3] DS[35] SNMP: v1: testserver6.tng-lab.de, dsname: ifInOctets, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 3744367252

and

05/31/2006 12:10:05 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/testserver6_traffic_in_33.rrd --template traffic_out:traffic_in 1149070203:103031819:3744367078
05/31/2006 12:10:05 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/testserver6_ifinoctets_35.rrd --template ifOutOctets:ifInOctets 1149070203:103032002:3744367252
and of the second is
Code:

05/31/2006 12:45:07 PM - CMDPHP: Poller[0] Host[3] DS[33] SNMP: v1: testserver6.tng-lab.de, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 110122359
05/31/2006 12:45:07 PM - CMDPHP: Poller[0] Host[3] DS[33] SNMP: v1: testserver6.tng-lab.de, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 354639313
05/31/2006 12:45:07 PM - CMDPHP: Poller[0] Host[3] DS[35] SNMP: v1: testserver6.tng-lab.de, dsname: ifOutOctets, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 110125225
05/31/2006 12:45:07 PM - CMDPHP: Poller[0] Host[3] DS[35] SNMP: v1: testserver6.tng-lab.de, dsname: ifInOctets, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 355038917

and

05/31/2006 12:45:08 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/testserver6_ifinoctets_35.rrd --template ifInOctets:ifOutOctets 1149072303:355038917:110125225
05/31/2006 12:45:08 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/rra/testserver6_traffic_in_33.rrd --template traffic_out:traffic_in 1149072303:110122359:354639313
From this we learn, that the same OIDs are polled and that quite the same readings are retrieved. From the data gathering point of view, everything is ok. And the rrdtool updates hold the correct data as well.

Now lets proceed to the rrd files themselves. Please perform
Code:
rrdtool fetch <rrd> AVERAGE
and post the last ten lines for both rrd files. Then, please perform
Code:
rrdtool info <rrd>
for both and post the first 20 lines of both.

Reinhard
Back to top
Geier0815



Joined: 22 May 2006
Posts: 13

PostPosted: Thu Jun 01, 2006 2:34 am    Post subject: Reply with quote

http://www.geier0815.de/cacti/testserver6_traffic_in_33_rrd_info.txt
http://www.geier0815.de/cacti/testserver6_traffic_in_33_rrd_fetch.txt
http://www.geier0815.de/cacti/testserver6_ifinoctets_35_rrd_info.txt
http://www.geier0815.de/cacti/testserver6_ifinoctets_35_rrd_fetch.txt
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Thu Jun 01, 2006 3:53 am    Post subject: Reply with quote

First, the ifInOctets MAXIMUM setting is wrong (must check my howto for that). Actually, it is set to 100, all other values will be clipped off. Please check the Data Template and use rrdtool tune to change the existing rrd
Second, the values stored by rrd (from fetch output) are exactly the same (I'm wondering 'bout that, they match up to the last decimal)
Reinhard
Back to top
Geier0815



Joined: 22 May 2006
Posts: 13

PostPosted: Thu Jun 01, 2006 4:25 am    Post subject: Reply with quote

First the screenshot from data-template: You can see, I haven't set a max. value. Could this be a bug in cacti?

www.geier0815.de/cacti/data_template_ifinoctets.jpg

Second the same values: ifInOctets is the same as traffic-in, why should they differ?


[edit] the maximum filesize is reached, so I had to post the picture to my webspace.[/edit]
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Thu Jun 01, 2006 10:34 am    Post subject: Reply with quote

Geier0815 wrote:
First the screenshot from data-template: You can see, I haven't set a max. value. Could this be a bug in cacti?
The value seen (100) is the default max value. I suppose, this rrd was created with that MAX value set in the Data Template and that the Data Template was changed later on. But remember, that this change does not change existing rrd files. So please perform rrdtool tune --maximum ifInOctets:U <rrd file>

Quote:
Second the same values: ifInOctets is the same as traffic-in, why should they differ?
As you may have noticed, both "basic" counter values were retrieved with a little difference in time. So the counters slightly differ. When storing them with rrdtool, this program calculates the difference between this and the previous value. And IMHO its merely by accident that the difference is exactly the same.
Reinhard
Back to top
Geier0815



Joined: 22 May 2006
Posts: 13

PostPosted: Fri Jun 02, 2006 1:51 am    Post subject: Reply with quote

Thank you, the hint with "rrdtool tune <rrd> --maximum ifInOctets:U" was the right! Now the graph show the right measures. You are great.
Back to top
tomvo



Joined: 26 Jun 2006
Posts: 2

PostPosted: Mon Jun 26, 2006 11:39 am    Post subject: conversion of 0.xxx to 'times 1000' ? Reply with quote

Hi,

Excellent howto. I applied it and works fine.
One thing I fail to understand though:

the script output's the round trip time in milliseconds (e.g. 0.125 ms) and the output of the script is typically 0.111 or sth. like that.

the graphics show this value times 1000. where is this converson defined ? is it the base value (which seems to default to 1000) that I should interpret as:
the graph will show the output field * 'base value' ?

the official docs only explain for base value the difference between 1000 and 1024 (e.g. memory <-> disk space measurements).

Also, the graphics display a 'm' in the Y-axis, and in the legend.
e.g. current: 507.85m

Should I interpret this as 507.85 milli (milli whatever - taken from the parameter base value that was set to 1000) ?

thanks for clarifying this.

regards,
tom.
Back to top
benekm



Joined: 03 Jul 2006
Posts: 1

PostPosted: Wed Jul 05, 2006 7:08 am    Post subject: Thanks Ivm Reply with quote

This Howto, is the best I have seen about Cacti.
From now and on, Cacti things looks mutch clearer.

Best regards
//benekm
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Wed Jul 19, 2006 12:25 pm    Post subject: Re: conversion of 0.xxx to 'times 1000' ? Reply with quote

tomvo wrote:
Also, the graphics display a 'm' in the Y-axis, and in the legend.
e.g. current: 507.85m

Should I interpret this as 507.85 milli (milli whatever - taken from the parameter base value that was set to 1000) ?
Please see http://forums.cacti.net/viewtopic.php?t=8168
Reinhard
Back to top
Super-Mike



Joined: 26 Jan 2006
Posts: 21

PostPosted: Mon Jul 24, 2006 1:43 pm    Post subject: Reply with quote

Hi.
I created statistics on this documentation.
I cannot draw the second graph

pic0

Script issues the values: connect:830 lock:1143

Data Input Methods:

pic2

Data Templates:
pic3
pic3_1

Graph Templates:
pic4



pic4.JPG
 Description:
pic4
 Filesize:  122.68 KB
 Viewed:  6550 Time(s)

pic4.JPG



pic3_1.JPG
 Description:
pic3_1
 Filesize:  106.58 KB
 Viewed:  6550 Time(s)

pic3_1.JPG



pic3.JPG
 Description:
pic3
 Filesize:  108.58 KB
 Viewed:  6550 Time(s)

pic3.JPG



pic2.JPG
 Description:
pic2
 Filesize:  53.86 KB
 Viewed:  6550 Time(s)

pic2.JPG



pic0.JPG
 Description:
pic0
 Filesize:  128.88 KB
 Viewed:  6550 Time(s)

pic0.JPG


Back to top
JasonKannte



Joined: 24 Jul 2006
Posts: 2

PostPosted: Tue Jul 25, 2006 4:48 am    Post subject: Reply with quote

Thank you!! So good works!
Back to top
JasonKannte



Joined: 24 Jul 2006
Posts: 2

PostPosted: Tue Jul 25, 2006 4:48 am    Post subject: Reply with quote

Thank you!! So good works!
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12275
Location: Muenster, Germany

PostPosted: Tue Jul 25, 2006 11:47 am    Post subject: Reply with quote

Super-Mike wrote:
Script issues the values: connect:830 lock:1143

Data Input Methods:

pic2
You should've pay more attention to me saying that the default (100) of the second data source item should be removed (lock in your case). The type is GAUGE, the value is 1143 which clearly exceeds the MAXIMUM of 100 you've left in the data source item.
So please change this item and rrdtool tune the already existing rrd file(s)
Reinhard
Back to top
Super-Mike



Joined: 26 Jan 2006
Posts: 21

PostPosted: Sat Jul 29, 2006 6:40 am    Post subject: Reply with quote

My program (licq_connect.pl) gives only integers.
Why in the figure not integers?



1k2.jpg
 Description:
 Filesize:  63.43 KB
 Viewed:  6476 Time(s)

1k2.jpg


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 



Powered by phpBB © 2001, 2005 phpBB Group