[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - How to Graph Available Memory with Cisco IOS

Cheshire Cat Computing

Software support and information
It is currently Sun Dec 21, 2025 11:04 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Jan 05, 2004 11:50 am 
Offline
Silver User

Joined: Sun Jan 04, 2004 9:45 am
Posts: 12
Location: North Carolina, USA
I spend some time figuring this out as my first custom target so I figured I would post it. :)

This graphs the available memory from Cisco devices that use IOS. This however doesn't work against a PIX which I am still trying to figure out it's OID.

# Monitor the Available Memory
Target[10.10.254.254_MEM]: 1.3.6.1.4.1.9.9.48.1.1.1.6.0&1.3.6.1.4.1.9.9.48.1.1.1.6.0:datanet@10.10.254.254
MaxBytes[10.10.254.254_MEM]: 59392000
UnScaled[10.10.254.254_MEM]: dwm
Options[10.10.254.254_MEM]: gauge noo nopercent
Title[10.10.254.254_MEM]: Available DRAM
PageTop[10.10.254.254_MEM]: <H1>Available Memory</H1>
routers.cgi*Mode[10.10.254.254_MEM]: mem
routers.cgi*Icon[10.10.254.254_MEM]: chip-sm.gif
Background[10.10.254.254_MEM]: #ffffff
ShortLegend[10.10.254.254_MEM]: Bytes
YLegend[10.10.254.254_MEM]: Free DRAM (MBytes)
Legend1[10.10.254.254_MEM]: Free DRAM
LegendI[10.10.254.254_MEM]:&nbsp;Free DRAM:
routers.cgi*MBLegend[10.10.254.254_MEM]: Installed DRAM Total

_________________
Michael Cotrone - CCIE #8411, CIPT, IPCC Express Certified
Sr. Network Engineer
Datanet Services, Inc.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 2:57 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Additional suggestion...

If the MIB is returning the queried value in Mb (I can't tell from your sample), then you could use

Factor[targetname]: 1024000

to convert it to bytes. Then you will not need to use

routers.cgi*Options[targetname]: fixunit
ShortLegend[targetname]: MBytes

(fixunit prevents 1024 from being displayed as 1K, so that 1024 will not get displayed as 1KMB, it will be 1024MB)

Of course, if it is returning the value in bytes already, then just ignore this suggestion :)


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 5:27 pm 
Offline
Silver User

Joined: Sun Jan 04, 2004 9:45 am
Posts: 12
Location: North Carolina, USA
Steve,

Thank you for the suggestions! It is collecting information in bytes, but your way looks cleaner.


Thank you again!

Mike

_________________
Michael Cotrone - CCIE #8411, CIPT, IPCC Express Certified
Sr. Network Engineer
Datanet Services, Inc.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group