[SOLVED] Better Linux memory usage graphs ?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

User avatar
Jem
Posts: 35
Joined: Tue Apr 12, 2005 4:36 pm
Contact:

Post by Jem »

Applying this patch solved my problem too :wink:

Thanks !
Chaosratt
Posts: 34
Joined: Sun Oct 28, 2007 3:31 am
Location: St. Pete, FL
Contact:

Post by Chaosratt »

Having the same issue on a fresh install of 0.8.7b using Suse 10.3

Code: Select all

xaos@pandora:~> cat /proc/meminfo
MemTotal:       450896 kB
MemFree:          5184 kB
Buffers:          1372 kB
Cached:         316332 kB
SwapCached:          0 kB
Active:         137228 kB
Inactive:       280220 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       450896 kB
LowFree:          5184 kB
SwapTotal:     2096472 kB
SwapFree:      2096364 kB
Dirty:           20188 kB
Writeback:           0 kB
AnonPages:       99828 kB
Mapped:          36756 kB
Slab:            14820 kB
SReclaimable:     7788 kB
SUnreclaim:       7032 kB
PageTables:       1264 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   2321920 kB
Committed_AS:   383484 kB
VmallocTotal:   573432 kB
VmallocUsed:     10656 kB
VmallocChunk:   561012 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     4096 kB

Code: Select all

xaos@pandora:~> snmpwalk -v 1 -c public localhost memory
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 2096472 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 2096364 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 450896 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 5628 kB
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 2101992 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memShared.0 = INTEGER: 0 kB
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 1792 kB
UCD-SNMP-MIB::memCached.0 = INTEGER: 314868 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: noError(0)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:
Attachments
graph_image.php.png
graph_image.php.png (32.67 KiB) Viewed 12909 times
Last edited by Chaosratt on Tue Feb 19, 2008 9:25 am, edited 1 time in total.
JFDionne
Posts: 2
Joined: Tue Feb 12, 2008 6:17 pm

Post by JFDionne »

I'm having the same problem with 0.8.7b too
redcap
Posts: 18
Joined: Mon Jan 23, 2006 5:49 am

Post by redcap »

I can confirm this too after upgrading to 0.8.7b on Debian.
Attachments
Cacti_1203247861421.png
Cacti_1203247861421.png (239.96 KiB) Viewed 12886 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

I've opened bug #1187
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Chaosratt
Posts: 34
Joined: Sun Oct 28, 2007 3:31 am
Location: St. Pete, FL
Contact:

Post by Chaosratt »

So no progress has been made on this then?
John Gilik
Posts: 2
Joined: Thu Apr 17, 2008 2:17 pm

Post by John Gilik »

Here is an updated XML file with CDEFs that are correct for 0.8.7b, as far as I can tell. Previously, the "Memory Used" value was coming from a CDEF that was taking (d-c-b-a)*1024. Now, it's doing (g-e-c-a)*1024.

For whatever reason, it seems that (in Cacti 0.8.7b, at least,) each data source has two letters assigned to it as far as the CDEFs go--a and b both refer to Memory Buffers, c and d both refer to Memory Cached, e and f both refer to Memory Free, and g and h both refer to Memory Total.

I hope this helps.
Attachments
ucd-net Memory Usage-Linux.xml
(33.86 KiB) Downloaded 1029 times
redcap
Posts: 18
Joined: Mon Jan 23, 2006 5:49 am

Post by redcap »

Hi John,

I imoprted the new template but my graphs still look the same

Steven
Attachments
rrd.jpg
rrd.jpg (45.9 KiB) Viewed 12321 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

this has been corrected (see the link in my signature).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
tdbabar
Posts: 2
Joined: Tue Jun 24, 2008 9:34 am

Post by tdbabar »

This one did not work for me...
The current memory values are in minus (-).

I had imported older template before using this one... is that an issue???
how to get it work?
tdbabar
Posts: 2
Joined: Tue Jun 24, 2008 9:34 am

Post by tdbabar »

Is this working for someone?
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

Here is my graph , there is also something wrong ~~~
Attachments
graph_image.php.png
graph_image.php.png (82.91 KiB) Viewed 9674 times
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

I updated cacti from 0.87b to 0.87d , this template's CDEF comes out wrong , how can I fixed this ?
Thanks.
sblantipodi
Posts: 24
Joined: Fri Aug 05, 2011 9:21 am

Re: [SOLVED] Better Linux memory usage graphs ?

Post by sblantipodi »

how can I get the memory usage template working on a SNMP enabled host?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests