[SOLVED] please help me ,no Linux - Memory Usage

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

Moderators: Developers, Moderators

User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

thsi is my Linux - Get Memory Usage config
is it not wrong?
Attachments
about
about
10.jpg (56.39 KiB) Viewed 1963 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 »

Please read my previous post.
[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]
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

i have del the linux memory

and i change the Host Template to ucd/net SNMP Host
Attachments
10.jpg
10.jpg (30.55 KiB) Viewed 1957 times
11.jpg
11.jpg (55.52 KiB) Viewed 1957 times
我来自中国佛山顺德!!
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

somethine wrong ?
我来自中国佛山顺德!!
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

It looks good.

Wait at least 2 polling cycles, and your graph should be there...
[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]
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

thank you !!!!

but i feel something wrong ,

i have wait 5 minute

log:

Code: Select all

01/24/2008 10:15:04 PM - SYSTEM STATS: Time:2.2220 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5  
01/24/2008 10:15:03 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:  
01/24/2008 10:15:03 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:  
01/24/2008 10:10:06 PM - SYSTEM STATS: Time:3.2628 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5  
01/24/2008 10:10:05 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result:  
01/24/2008 10:10:05 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result:  
the same , i want to cry!!!!!!!!!!! :( :( :(
我来自中国佛山顺德!!
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

Code: Select all

RRDTool Command:

/usr/local/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="bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefa=a,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:cdefa#FF5700FF:"Memory Buffers":STACK \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:cdefa#FFC73BFF:"Cache Memory":STACK \
GPRINT:cdefa:LAST:"  Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" 
RRDTool Says:

ERROR: invalid rpn expression in: a,1024,*
Attachments
10
10
10.jpg (120.86 KiB) Viewed 1944 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 »

The data sources in your graph are broken.

Can you delete "localhost" in Devices, and create a new one using the "ucd/net SNMP" host template ?
[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]
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

there is a Graph of memory

i have configed

but no data
Attachments
10.jpg
10.jpg (149.86 KiB) Viewed 1937 times
我来自中国佛山顺德!!
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

why no data?
我来自中国佛山顺德!!
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you run this command :

Code: Select all

$ snmpwalk -v 1 -c yourcommunity 127.0.0.1 mem
[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]
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

excuse

yourcommunity = mywebsite ????

mywebsite = www.xxxx.cn ????
我来自中国佛山顺德!!
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

oh ~~~sorry!!!
i understand

Code: Select all

SDLKM# snmpwalk -v 1 -c public 127.0.0.1 mem       
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 627400
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 627400
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 321960
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 187040
UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: -1
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 187040
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memShared.0 = INTEGER: 94776
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 42112
UCD-SNMP-MIB::memCached.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: 
我来自中国佛山顺德!!
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Which Cacti version are you using ?
[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]
User avatar
sdkevin
Posts: 33
Joined: Thu Jan 24, 2008 3:51 am
Contact:

Post by sdkevin »

the news
Version 0.8.7a
我来自中国佛山顺德!!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests