[SOLVED] Better Linux memory usage graphs ?
Moderators: Developers, Moderators
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 (32.67 KiB) Viewed 12930 times
Last edited by Chaosratt on Tue Feb 19, 2008 9:25 am, edited 1 time in total.
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
[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]
[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]
-
- Posts: 2
- Joined: Thu Apr 17, 2008 2:17 pm
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.
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 1030 times
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
this has been corrected (see the link in my signature).
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]
[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]
-
- Posts: 24
- Joined: Fri Aug 05, 2011 9:21 am
Re: [SOLVED] Better Linux memory usage graphs ?
how can I get the memory usage template working on a SNMP enabled host?
Who is online
Users browsing this forum: No registered users and 8 guests