Memory Usage not view 16GiB Of ram

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

Moderators: Developers, Moderators

vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Memory Usage not view 16GiB Of ram

Post by vampire »

Good Morning,

i have many server but the max ram installed is 4GiB and cacti work perfectly but now i have an server with 16GiB of ram and cacti not count the total free RAM it view 0 :S

I have used ucd and linux memory usage template

There is any solution for this?
vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

The Os is Debian eth 4.0

The version of cacti is the last avaible from stable download from site

The information of the graphic are:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1259968536 \
--end=1260054936 \
--title="graph1 - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2009/12/04 23\:15\:36 To 2009/12/05 23\:15\:36\c" \
COMMENT:"  \n" \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/site/rra/graph1_mem_free_339.rrd":mem_free:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/graph1_mem_buffers_337.rrd":mem_buffers:AVERAGE \
DEF:c="/usr/share/cacti/site/rra/graph1_mem_cache_338.rrd":mem_cache:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
CDEF:cdefi=c,1024,* \
AREA:cdefa#8F005CFF:"Memory Free"  \
GPRINT:cdefa:LAST:"   Current\:%8.2lf%s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefe#FF5700FF:"Memory Buffers":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf%s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s\n"  \
AREA:cdefi#FFC73BFF:"Cache Memory":STACK \
GPRINT:cdefi:LAST:"  Current\:%8.2lf%s"  \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf%s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf%s\n"
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see 2nd link of my sig. If this does not solve the problem, it should at least help to phrase the next question
R.
vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

Hi,

thaks for the answer but i not haved understend.

What i must see? I not have understood. You can give me the link?

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

Post by gandalf »

Log in, see my last post, select 2nd link of the signature and you're there
R.
vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

i have rebuild the cache of poller but not change...it give me only the mem used but the mem free not view the 16gib of ram...any solution?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

Hi,

this is the result of debug

Code: Select all

12/08/2009 06:12:11 PM - CMDPHP: Poller[0] Host[31] DS[346] SNMP: v3: tcp:xxx.xxx.xxx.xx, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, output: 13953568
12/08/2009 06:12:11 PM - CMDPHP: Poller[0] Host[31] DS[345] SNMP: v3: tcp:xxx.xxx.xxx.xx, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, output: 2088244
12/08/2009 06:12:11 PM - CMDPHP: Poller[0] Host[31] DS[344] SNMP: v3: tcp:xxx.xxx.xxx.xx, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, output: 227628
Output of free mem is output: 13953568 and it seems ok but in the graph i view 0 into mem_free value i view only mem_cache and mem_buffers

How i can resolve this?

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

Post by gandalf »

This is mentioned in the docs as well: rrdtool tune is your friend to adjust max
R.
vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

I have used this command

rrdtool tune host_mem_free_346.rrd --maximum mem_free:10.0000000000e+02

RRD Info leave this

ds[mem_free].min = 0.0000000000e+00
ds[mem_free].max = 1.0000000000e+02

But i view alway NaN where i wrong?

Thanks for the patience
vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

Now i view this:

ds[mem_free].type = "GAUGE"
ds[mem_free].minimal_heartbeat = 600
ds[mem_free].min = 0.0000000000e+00
ds[mem_free].max = 9.0000000000e+02
ds[mem_free].last_ds = "UNKN"
ds[mem_free].value = NaN
ds[mem_free].unknown_sec = 23

but the result is the same :s

Thanks for the support :)
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

Post by computer_guru »

Sounds like maybe it is a limitation of a 32 bit integer?
vampire
Posts: 12
Joined: Fri Dec 04, 2009 10:55 am

Post by vampire »

How i can check this? The sistem where is the cacti is an debian 4 VPS OpenVZ..solution? :) thansk for the support
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

vampire wrote:Now i view this:

ds[mem_free].type = "GAUGE"
ds[mem_free].minimal_heartbeat = 600
ds[mem_free].min = 0.0000000000e+00
ds[mem_free].max = 9.0000000000e+02
ds[mem_free].last_ds = "UNKN"
ds[mem_free].value = NaN
ds[mem_free].unknown_sec = 23

but the result is the same :s

Thanks for the support :)
This adjusts the max to a value of 900. Are you sure, that your values won't exceed this number?
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest