[HOWTO] Using Data Queries and Data Input Methods
Moderators: Developers, Moderators
Thanks so much for this in depth write up.
I've actually taught myself how to implement cacti differently. I prefer this approach better.
My question is I have a DIM that will save 7 items. I created a graph to monitor 2 of those items and it worked great. My problem is that I created another graph to display 2 more of those items. However the .pl script is now getting called twice and creating 2 different.
How can I use this method of graphing hosts and only call my script once and have multiple graphs based on different variables returned?
I've actually taught myself how to implement cacti differently. I prefer this approach better.
My question is I have a DIM that will save 7 items. I created a graph to monitor 2 of those items and it worked great. My problem is that I created another graph to display 2 more of those items. However the .pl script is now getting called twice and creating 2 different.
How can I use this method of graphing hosts and only call my script once and have multiple graphs based on different variables returned?
Hello lvm,
it's a nice HowTo you wrote, but I've got problems with it. I've created an graph for traffic but the measures seemd to be wrong. I've downloaded a 1GB File to the computer and wget told me that the average downloadrate was 4.95 MB/s. cacti shows a rate of 40k. Do you have an Idea where I can look whats going wrong?
it's a nice HowTo you wrote, but I've got problems with it. I've created an graph for traffic but the measures seemd to be wrong. I've downloaded a 1GB File to the computer and wget told me that the average downloadrate was 4.95 MB/s. cacti shows a rate of 40k. Do you have an Idea where I can look whats going wrong?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
First, pay attention to bits and Bytes. wget reports in Bytes, cacti (usually) in bits.
Second, pay attention to the timespan of a reading. Cacti takes its readings every 300 sec. But if you perform a download that only lasts for some seconds, during download time the traffic is high, but averaged over 300 sec it will be much lower
Reinhard
Second, pay attention to the timespan of a reading. Cacti takes its readings every 300 sec. But if you perform a download that only lasts for some seconds, during download time the traffic is high, but averaged over 300 sec it will be much lower
Reinhard
In your HowTo you use ifInOctets and ifOutOctets and so do I.lvm wrote:First, pay attention to bits and Bytes. wget reports in Bytes, cacti (usually) in bits.
I've downloaded a 1GB File 2 times, so the download takes more than 5 minutes.Second, pay attention to the timespan of a reading. Cacti takes its readings every 300 sec. But if you perform a download that only lasts for some seconds, during download time the traffic is high, but averaged over 300 sec it will be much lower
Reinhard
And the third point is that a graph created by 'Internet - traffic (bytes/sec)' shows exaktly the same form but right measures (nearly 3,5M) and i can't find any diffrent between the two data templates or the graph templates. I'm completely mystified.
First screenshot shows the both traffic graphs when traffic is low. You see that both are equal.
The second screenshot was made after loading three times a 1GB file, you see the form of both are equal but the measures differ.
CDEFs where on both set to 'none' or you mean something that I couldn't found.
The second screenshot was made after loading three times a 1GB file, you see the form of both are equal but the measures differ.
CDEFs where on both set to 'none' or you mean something that I couldn't found.
- Attachments
-
- cacti_hoher_load.jpg (67 KiB) Viewed 29642 times
-
- cacti_niedriger_load.jpg (74.6 KiB) Viewed 29642 times
testserver6 test-traffic:
For the other graph:/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="testserver6 - Test-traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
DEF:a="/usr/share/cacti/rra/testserver6_ifinoctets_35.rrd":ifInOctets:AVERAGE \
DEF:b="/usr/share/cacti/rra/testserver6_ifinoctets_35.rrd":ifOutOctets:AVERAGE \
LINE2:a#FF00FF:"incomming" \
LINE1:b#4123A1:"output data"
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="testserver6 - Traffic - 213.178.71.76 (eth0)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
DEF:a="/usr/share/cacti/rra/testserver6_traffic_in_33.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/rra/testserver6_traffic_in_33.rrd":traffic_out:AVERAGE \
AREA:a#00CF00:"Inbound" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
LINE1:b#002A97:"Outbound" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s"
Who is online
Users browsing this forum: No registered users and 0 guests