Gauge question

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

Moderators: Developers, Moderators

Post Reply
goofy
Posts: 3
Joined: Sun Jul 03, 2005 3:05 pm

Gauge question

Post by goofy »

I use a Data Source of type Gauge. This is fed a whole number from my OID poll ( ex. 12 or 8 ). When this Data Source is presented (GPRINT, CF=Last) my number has changed. Ex. 12 turns into 11.96 or 8 turns into 8.02. :-?
Likewhise for my Line1 (CF=AVERAGE) which I want to graph the same numbers. Should this be changed or?
I realize I might lack basic understandig, but can anyone explain?!? Thanks on advance :D [/b]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The 5minute RRA should be whole numbers. However, the 30minute, 1hour, and 2hour RRA's are averages.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
goofy
Posts: 3
Joined: Sun Jul 03, 2005 3:05 pm

Gauge not showing whole numbers

Post by goofy »

Thanks for your answer!!

Nevertheless, my whole numbers get changed.
I attach a file with an extract from the logfile, showing the parsing of the variables from my OID poll. I furthermore attach an extract from the logfile showing the rrdtool update.
Last I attach an image of my graph, which shows the odd numbers.
Below is my graph properties.

/path_to_rrdtool/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="rttMonLatestJitterOperOWDelay" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="msek" \
--slope-mode \
DEF:a="/path_to_cacti/rra/ow_sd_48.rrd":OW_SD:AVERAGE \
LINE1:a#4444FF:"" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s"
Attachments
Graph
Graph
OWDelay.GIF (11.86 KiB) Viewed 1022 times
cacti2rrd.txt
rrdtool update
(2.02 KiB) Downloaded 64 times
Parser.txt
Parser
(2.54 KiB) Downloaded 83 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Does this line seem strange:
DEF:a="/path_to_cacti/rra/ow_sd_48.rrd":OW_SD:AVERAGE \
Also, please run a data source debug on your data soure and post that as well.

TheWintess
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
goofy
Posts: 3
Joined: Sun Jul 03, 2005 3:05 pm

Post by goofy »

Hmm, No.. That is the name of my datasource, OneWay_SourceDestination. And the path is removed.
Below the Data Source Debug:

//usr/local/bin/rrdtool-1.2.10/bin/rrdtool create \
/var/www/html/cacti/rra/ow_sd_48.rrd \
--step 300 \
DS:OW_DS:GAUGE:600:0:500 \
DS:OW_SD:GAUGE:600:0:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest