[SOLVED] MEMORY USAGE GRAPH NOT BEING CREATED

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

Moderators: Developers, Moderators

mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

[SOLVED] MEMORY USAGE GRAPH NOT BEING CREATED

Post by mayur »

Hi there,
I am very new to cacti and i am badly in need of some help.I`m using the cacti 0.8.6i versions to monitor some of the servers at my work place .These servers are running the Solaris 5.8 or 5.9 OS`s,i tried creating the memory usage graph for these servers and i was unable to get these graphs working for all the servers,i have installed all the necessary upgrades required to run the snmp protocol on all the servers. The strangest thing is that some of the servers have managed to display this memory usage graph, but a few of them are still not able to display these graph no matter i have tried all possible setting on them.Can someone pls help me out.


Regards
Mayur
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

Depending on the version of snmp, all the information may not be available. Try manually snmpwalking the mib you are using to verify the information is being reported. You may need to update your version of snmp on the boxes or you may not be able to get the information at all with the version of Solaris.
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Post by mayur »

Thankx for ur reply.
i have tried manually snmpwalking the mib and i was able to retrive the "real available memory" information for the boxes which r not able to plot the memory usage graphs.Currently i am using the net-snmp version 5.4 on these boxes.,can u suggest me some other alternative inorder to plot a graph for the memory usage.
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

can you run that :

Code: Select all

$ snmpwalk -v 1 -c public ip.of.your.host memory
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 1048568
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 1018620
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 515600
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 36596
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 1055216
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memShared.0 = INTEGER: 0
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 2684
UCD-SNMP-MIB::memCached.0 = INTEGER: 375804
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:
(this is on a Linux host)
[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]
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Hello

Post by mayur »

Hi fmangeant
Thankx..

I tried running the snmpwalk command u have mentioned above and the following is the result.


$ snmpwalk -v 1 -c public ip.of.my.host memory
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 12584936
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 12584936
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 31457280
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 20016856
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:

(this is on solaris host)


suggest me an alternative to plot the memory usage graph.
Regards
Mayur
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I'll post a graph template for memory usage later today.
[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]
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Post by mayur »

Hey!!That will be of a great help pal...Will wait for ur post...
Regards
Mayur
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Here you are :)

I'm using these templates with AIX, Solaris and HP-UX.

Be careful when importing them, I'm using "huge" RRA definitions...
Attachments
cacti_graph_template_ucdnet_swap_usage.xml
(19.24 KiB) Downloaded 128 times
swap_usage.png
swap_usage.png (16.63 KiB) Viewed 2788 times
memory_usage.png
memory_usage.png (18.25 KiB) Viewed 2788 times
cacti_graph_template_ucdnet_memory_usage.xml
(19.25 KiB) Downloaded 177 times
[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]
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Thankx Buddy

Post by mayur »

hey i will be carefull..i will test them right a way and let u know whether it works... :lol:
Regards
Mayur
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

ERROR

Post by mayur »

Hey dude!
I tried importing the memory usuage XML into my cacti and it gave me the following error.


Error: XML: Hash version does not exist.



What am i supposed to do?
Regards
Mayur
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

These templates were exported from a Cacti 0.8.6j installation.

So you have to use Cacti >= 0.8.6j to import them.
[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]
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Post by mayur »

:o oh u want me to upgrade for 0.8.6i to 0.8.6j...dude sounds risky...
Well in tat case i will try upgrading... :(
Regards
Mayur
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I have another Cacti server running 0.8.6i, come back in a few minutes and I'll repost the templates.
[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]
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

Post by mayur »

oh tats REALLY nice of u man......i`ll wait :P
Regards
Mayur
mayur
Posts: 29
Joined: Fri Dec 07, 2007 2:30 am
Contact:

I have upgraded my cacti to 0.8.7a

Post by mayur »

HI i have upgraded my cacti version from 0.8.6i to 0.8.7a.I also imported the templates u had uploaded for memory usage.The memory usuage graph is working now.There is still a small problem left, the used memory is not being plotted only total memory and free memory is plotted.
Regards
Mayur
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests