Cisco Memory Pool Statistics for routers and switches

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Cisco Memory Pool Statistics for routers and switches

Post by chadd »

I created this script server template so that I could more easily threshold on percentage of memory used. The other templates I saw for memory stored free and used values in separate DSs, making it difficult to threshold on "percentage" used (I could not find a way to do this). The old way to threshold was to give an exact value for each DS based on the amount of memory available in that particular device (not practical). This way is easier - one threshold represented as a precent of available memory used. This also allows you to create graphs for each memory pool on the device, instead of just the processor memory pool. Enjoy.

-chadd.
Attachments
cisco_5min_memory_stats.zip
(7.67 KiB) Downloaded 257 times
MollerB
Posts: 3
Joined: Wed Feb 24, 2016 11:48 am

Re: Cisco Memory Pool Statistics for routers and switches

Post by MollerB »

Once the template is imported and the php and data query xml have been copied to the correct folder locations, how do you configure this? If I attempt to add a data source using the Data Template Cisco - 5 minute Memory Statistics and assigning it to a host, it requires an Index Value..... Also how do you change which memory pool you are mapping to?

This is the config I have so far:

Data Queries:
points to the xml file for cisco_5min_memory_stats.xml with an input method of Get Script Server Data (Indexed)


SNMP Walk:

+ Running data query [33].
+ Found type = '6' [Script Query - Script Server].
+ Found data query XML file at '/var/www/html/resource/script_server/cisco_5min_memory_stats.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported
+ Executing script for list of indexes '"/usr/bin/php" -q /var/www/html/scripts/ss_cisco_5min_mem_stats.php ***.***.***.***:********:::::::161:500 index' Index Count: 3
+ Found index: 1
+ Found index: 2
+ Found index: 20
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_cisco_5min_mem_stats.php ***.***.***.***:******:::::::161:500 query memPool'
+ Found item [memPool='1'] index: 1
+ Found item [memPool='2'] index: 2
+ Found item [memPool='20'] index: 20
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_cisco_5min_mem_stats.php ***.***.***.***:********:::::::161:500 query memPoolname'
+ Found item [memPoolname='Processor Memory Pool'] index: 1
+ Found item [memPoolname='I/O Memory Pool'] index: 2
+ Found item [memPoolname='Driver text Memory Pool'] index: 20

default data and graph template from the import


No data Input Method


If I add a data source using the date template and assign it one of the indexes listed from the snmp walk, then I get no data....




Answer: Once I added the associated data query to the device, I had to go and create a new graph and select the index points. Once this was done, the graphs and thresholds worked as needed.....
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests