Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jun 18, 2019 6:03 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Graphing Physical/Paging memory from Insight Manager
PostPosted: Wed Nov 09, 2005 7:56 am 
Offline

Joined: Fri Oct 28, 2005 6:35 am
Posts: 7
Hello

I have written an ugly but potentially useful collection of scripts for graphing the cpqHoMemory branch from HP Insight Manager Agents.
All data can be found under .1.3.6.1.4.1.232.11.2.13 on any Proliant (or similar) system running windows with the Insight foundation agents.

Since people have been complaining about how difficult it is to find memory stats in windows machines I guess I can put them up here.

I have never exported templates before so the file may well turn your Cacti installation into a gibbering wreck, use with caution... =)

Cheers!


Attachments:
File comment: example of my memory graphs
memgraph.JPG
memgraph.JPG [ 46.93 KiB | Viewed 22376 times ]
File comment: His is my exported graph template with dependent stuff.
HP_insight_mem.xml [26.66 KiB]
Downloaded 1714 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 4:23 pm 
Offline
Cacti User

Joined: Tue Mar 08, 2005 9:51 pm
Posts: 205
I'm getting errors in my apache log saying that PHP is getting a segementation fault (11) when I tried to view a graph created from this. Any ideas what could be wrong?


Top
 Profile  
 
 Post subject: My question
PostPosted: Sun Nov 13, 2005 9:32 pm 
Offline

Joined: Tue Oct 18, 2005 1:55 am
Posts: 17
I added this templates to my cacti system,but found the graph is not like the author's graph.

Could some tell me why !

Thanks!


Attachments:
cacti_error_1.png
cacti_error_1.png [ 20.7 KiB | Viewed 22245 times ]

_________________
Fedora 3 | httpd-2.0.52-3 | php-4.3.9-3 | mysql-3.23.58-13 | net-snmp-5.1.2-11 | rrdtool-1.2.11 | cacti-0.8.6g
Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 4:42 am 
Offline

Joined: Fri Oct 28, 2005 6:35 am
Posts: 7
Dont know about the PHP errors, could be a version thing.
The graph and sources are fairly trivial to set up manually using Get SNMP Data as the input method for each of the four values:
cpqHoPhysicalMemorySize / cpqHoPhysicalMemoryFree
cpqHoPagingMemorySize / cpqHoPagingMemoryFree

First I convert the values from free to used, since that is more useful.
Then, in order to get the graph centered on the 0 line I negate all values for physical memory.
Could be that the CDEFs did not survive the traumatic export-import, so here they are for each source (in order represented in the graph):

cpqHoPagingMemorySize => No change
cpqHoPagingMemoryFree => "invert memfree" (dcef=a,b,-)
cpqHoPhysicalMemorySize => "negate" (cdef=CURRENT_DATA_SOURCE,-1,*)
cpqHoPhysicalMemoryFree => "physmem used negated" (cdef=c,d,-,-1,*)

Dont Negate the GPRINT stuff unless you like seeing negative printed values for RAM...

I'll be the first to admit that the naming standard and syntax for the cdefs should earn me a day at the spanking pole, feel free to improve it =)

Cheers!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 14, 2005 8:26 pm 
Offline

Joined: Tue Oct 18, 2005 1:55 am
Posts: 17
Frater:

Thanks for you reply ,I will try .

_________________
Fedora 3 | httpd-2.0.52-3 | php-4.3.9-3 | mysql-3.23.58-13 | net-snmp-5.1.2-11 | rrdtool-1.2.11 | cacti-0.8.6g


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 1:18 am 
Offline

Joined: Tue Oct 18, 2005 1:55 am
Posts: 17
My cacti begin graphing .

Thanks Frater!


But i have another problem, why the y-axis unit use "k" ,but not "G"?


Attachments:
cacti_error_2.png
cacti_error_2.png [ 20.69 KiB | Viewed 22177 times ]

_________________
Fedora 3 | httpd-2.0.52-3 | php-4.3.9-3 | mysql-3.23.58-13 | net-snmp-5.1.2-11 | rrdtool-1.2.11 | cacti-0.8.6g
Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 7:38 am 
Offline

Joined: Fri Oct 28, 2005 6:35 am
Posts: 7
Because HP/Compaq decided to report those values in megabytes for some reason. Getif 2.3.1 is your friend, the CPQHOST-FIRST.MIB describes all these values just fine when you browse a server.

You can convert these values to Gigs With a little CDEF that multiplies everything with 1048576.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 09, 2005 4:30 pm 
Offline
Cacti User

Joined: Tue Mar 08, 2005 9:51 pm
Posts: 205
Just an FYI for anyone using this script: when I imported it on my server, the "physmem used negated" CDEF was incorrect which was causing my PHP segmentation fault errors. To fix this, edit the CDEF so that it looks like this:
Quote:
Item #1 Another CDEF: physmem used
Item #2 Custom String: -1
Item #3 Operator: *

When it imported, the "physmem used" was not selected as the CDEF to use and it was sitting blank. Cacti was either using nothing which caused an error in RRDTool OR (in my case) it referenced itself which put Cacti into an endless loop. Because I had a PHP segmentation fault just viewing the CDEF, I had to manually go in the database and correct the CDEF.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 20, 2005 9:28 am 
Offline

Joined: Tue Jul 05, 2005 10:44 am
Posts: 20
Hi, newbie here.

I've imported the template without any problem but no graph is been displayed. I enabled the debug mode and got this:

RRDTool Says:
ERROR: invalid rpn expression ',-1,*'

So, how can I solve this ?
Thanks in advance.

PS: Running 0.8.6e under Ubuntu.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 20, 2005 12:42 pm 
Offline

Joined: Tue Jul 05, 2005 10:44 am
Posts: 20
I've solved the problem, it was related to the previous post (elnino), but now I'm seeing negative RAM values in the graphics... any tip?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 21, 2005 10:33 am 
Offline
Cacti User

Joined: Tue Mar 08, 2005 9:51 pm
Posts: 205
On the graph itself the RAM usage will be shown as negative (see the green values in the original post) because it's being inversed. The GPRINT stuff at the bottom of the graph should still be positive values.

After I fixed the CDEF, my graphs look exactly like the the ones in the original post. Frater, thank you for such a great template!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 5:12 am 
Offline

Joined: Tue Jan 30, 2007 9:16 am
Posts: 11
Hello, the template works OK,

but my Server has got 10 GB physical Memory, but the graph shows only 2,05 k ?

Whats wrong ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group