Hey Steve, thanks for the reply...
Also, if you notice the image of the graph in my first post, it is showing the "Used Memory"(green) as being higher that the "Total Memory"(blue)... It seems as though the "Used Memory" is the sum of both the ("Used Memory"=144MB) and the ("Total Memory"=471MB) to give around-about 617 (which is where the green stack stops). Not sure why it would be adding them both together and saying that it is the "Used" target's values??
I added the options you suggested but it doesn't seem to want to get rid of those totals and averages of the "Total Memory" target... Which target was I supposed to add those directives to? I tried adding the nototal and noaverage options to the "Total" target and to the User-Defined "All-Memory" target, but not sure what's happening.
What's the difference in these two directives (below) with the options:
How does the options differ from the "Options" directive and the "Graph" directive? Does adding the options in the "Graph" directive just make it so you can apply those options to the individual targets in the User-Defined Graph, instead of having to apply them over all the targets in the User-Defined Graph? routers.cgi*Options[192.168.1.1.mem_1]: growright, gauge, noo, nototal, nomax
routers.cgi*Graph[192.168.1.1.mem_1]: All-Memory nototal noaverageSorry for the BIG post but I'm trying to be as specific as possible.
My end result I'm trying to achieve is to have the "Total Memory" value be displayed on the User-Defined Graph as a stacked bar with I guess just the first legend under the graph to show it's value (don't need max, avg, total, etc... for that one). Then I'm trying to have the "Used Memory" as a stacked bar which will always be <= the "Total Memory" so it should be displayed in front of the "Total" target, and under the graph have avg and max for just the "Used Memory".
Below is my edited cfg from the original post, with your suggestions added (and an updated graph with these new options added is attached).
Code:
# "Total Memory" is the sum of "ciscoMemoryPoolFree.1" and "ciscoMemoryPoolUsed.1" which gives the total amount of memory.
#------------------------------ TOTAL AVAILABLE MEMORY --------------------------------------#
Target[192.168.1.1.mem_1]: 1.3.6.1.4.1.9.9.48.1.1.1.6.1&1.3.6.1.4.1.9.9.48.1.1.1.6.1:jwpadmin!@192.168.1.1: + 1.3.6.1.4.1.9.9.48.1.1.1.5.1&1.3.6.1.4.1.9.9.48.1.1.1.5.1:jwpadmin!@192.168.1.1:
Title[192.168.1.1.mem_1]: 192.168.1.1 Total Memory
YLegend[192.168.1.1.mem_1]: Total Memory in Bytes
ShortLegend[192.168.1.1.mem_1]: Bytes
Legend1[192.168.1.1.mem_1]: Total Memory
LegendI[192.168.1.1.mem_1]: Total Memory:
WithPeak[192.168.1.1.mem_1]: dwmy
MaxBytes[192.168.1.1.mem_1]: 524288000
routers.cgi*Options[192.168.1.1.mem_1]: growright, gauge, noo, nototal, nomax
routers.cgi*GraphStyle[192.168.1.1.mem_1]: stack
routers.cgi*InSummary[192.168.1.1.mem_1]: yes
routers.cgi*InCompact[192.168.1.1.mem_1]: yes
routers.cgi*Graph[192.168.1.1.mem_1]: All-Memory nototal noaverage
PageTop[192.168.1.1.mem_1]: <h1>192.168.1.1 Free Memory</h1>
<div><table>
<tr><td>System:</td> <td>192.168.1.1 in </td></tr>
<tr><td>Maintainer:</td> <td></td></tr>
<tr><td>Description:</td><td>Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICESK9-M), Version 12.2(31)SGA9, RELEASE SOFTWARE (fc1)<BR>
Technical Support: http://www.cisco.com/techsupport<BR>
Copyright (c) 1986-2009 by Cisco Systems, Inc.<BR>
Compiled Mon 12-Jan-09 13:53</td></tr>
<tr><td>Resource:</td> <td>Free CPU Pool Memory (1.3.6.1.4.1.9.9.48.1.1.1.6.1)</td></tr>
</table></div>
# "Memory Used" is the value from "ciscoMemoryPoolUsed.1".
#------------------------------ MEMORY USED --------------------------------------#
Target[192.168.1.1.mem_2]: 1.3.6.1.4.1.9.9.48.1.1.1.5.1&1.3.6.1.4.1.9.9.48.1.1.1.5.1:jwpadmin!@192.168.1.1:
Title[192.168.1.1.mem_2]: 192.168.1.1 Memory Used
YLegend[192.168.1.1.mem_2]: Memory Used
ShortLegend[192.168.1.1.mem_2]: Bytes
Legend1[192.168.1.1.mem_2]: Memory Used
Legend3[192.168.1.1.mem_2]: Max Used Memory
LegendI[192.168.1.1.mem_2]: Used-Memory:
WithPeak[192.168.1.1.mem_2]: dwmy
MaxBytes[192.168.1.1.mem_2]: 524288000
Options[192.168.1.1.mem_2]: growright, gauge, noo
routers.cgi*GraphStyle[192.168.1.1.mem_2]: stack
routers.cgi*InSummary[192.168.1.1.mem_2]: yes
routers.cgi*InCompact[192.168.1.1.mem_2]: yes
routers.cgi*Graph[192.168.1.1.mem_2]: All-Memory total average
PageTop[192.168.1.1.mem_2]: <h1>192.168.1.1 Memory Used</h1>
<div><table>
<tr><td>System:</td> <td>192.168.1.1 in </td></tr>
<tr><td>Maintainer:</td> <td></td></tr>
<tr><td>Description:</td><td>Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICESK9-M), Version 12.2(31)SGA9, RELEASE SOFTWARE (fc1)<BR>
Technical Support: http://www.cisco.com/techsupport<BR>
Copyright (c) 1986-2009 by Cisco Systems, Inc.<BR>
Compiled Mon 12-Jan-09 13:53</td></tr>
<tr><td>Resource:</td> <td>Free CPU Pool Memory (1.3.6.1.4.1.9.9.48.1.1.1.6.1)</td></tr>
</table></div>
#------------------------------ UserGraph Settings for Memory --------------------------------------#
Target[All-Memory]:
Title[All-Memory]: 192.168.1.1 Memory Usage
YLegend[All-Memory]: Memory in Bytes
ShortLegend[All-Memory]: Bytes
Legend1[All-Memory]: Total Memory
Legend2[All-Memory]: Memory Used
Legend3[All-Memory]: Max Used Memory
LegendO[All-Memory]: Used-Memory:
routers.cgi*MBLegend[All-Memory]: 100% usage
WithPeak[All-Memory]: dwmy
MaxBytes[All-Memory]: 524288000
routers.cgi*Options[All-Memory]: growright, gauge, nototal
routers.cgi*GraphStyle[All-Memory]: stack
routers.cgi*InSummary[All-Memory]: yes
routers.cgi*InCompact[All-Memory]: yes
PageTop[All-Memory]: <h1>192.168.1.1 Memory Used</h1>
<div><table>
<tr><td>System:</td> <td>192.168.1.1 in </td></tr>
<tr><td>Maintainer:</td> <td></td></tr>
<tr><td>Description:</td><td>Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICESK9-M), Version 12.2(31)SGA9, RELEASE SOFTWARE (fc1)<BR>
Technical Support: http://www.cisco.com/techsupport<BR>
Copyright (c) 1986-2009 by Cisco Systems, Inc.<BR>
Compiled Mon 12-Jan-09 13:53</td></tr>
</table></div>
The Graph below doesn't really look like anything changed at all between the first post and this one...
Any thoughts would be much appreciated.
Again sorry for the LONG post...
Thank You Again,
Matt