Memory Usage of by factor 1000

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Icarium
Posts: 6
Joined: Wed Dec 06, 2006 4:32 pm

Memory Usage of by factor 1000

Post by Icarium »

I'm using the memory usage script for linux that came with the cacti package but it displays only a thousandth of the real value even though it uses a multiply by 1024 cdef
i'm new to all this so maybe somebody can give me hint
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please click the graph and then the wrench. Post the whole rrdtool graph statement found
Reinhard
Icarium
Posts: 6
Joined: Wed Dec 06, 2006 4:32 pm

Post by Icarium »

voila

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/var/www/localhost/htdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf%s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:a:MAX:"Maximum\:%8.2lf%s\n" \
AREA:b#FFC73B:"Swap":STACK \
GPRINT:b:LAST:"Current\:%8.2lf%s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:b:MAX:"Maximum\:%8.2lf%s"
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You talked about using a CDEF, but your statement shows none. So please check your CDEF again
Reinhard
Icarium
Posts: 6
Joined: Wed Dec 06, 2006 4:32 pm

Post by Icarium »

damn i wish i knew where that was
*dig*
ah there it is
on the page
Graph Template Items [edit graph: Linux - Memory Usage]
it says
CDEF Function - Multiply by 1024
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

And you're sure to have used this very Graph Template? There are two of them. The one you stated (but it is useful for localhost only) and a ucd/net-snmp memory template, which gives you data for remote hosts as well. If this fits, please send a copy of the CDEF itself as it is shown in the CDEF section just below "Graph Management"
Reinhard
Icarium
Posts: 6
Joined: Wed Dec 06, 2006 4:32 pm

Post by Icarium »

i destroyed the problem... :oops:

seriously i suddenly had two data sources linux "localhost - memory - free" so i deleted one which happened to be the one used and after recreation the problem was gone
is there a way to create a datasource except clicking add in the datasource menu?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yes. Please select the device, Create Graphs for this Host and select what you need.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests