[HOW TO]Real Memory graph template

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Moderators, Developers

Post Reply
Author
Message
saphire82
Posts: 1
Joined: Tue Oct 29, 2019 3:41 am

[HOW TO]Real Memory graph template

#1 Post by saphire82 » Thu Nov 07, 2019 9:52 pm

Dear All,

I am new to Cacti and trying to create graph for real memory utilization for below OID in cacti.

I have created below data query.

<interface>
<name>**********</name>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]*)$</oid_index_parse>
<oid_num_indexes>.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.0</oid_num_indexes>
<fields>

<usedMem>
<name>Module Memory</name>
<method>walk</method>
<source>value</source>
<direction>input-output</direction>
<oid>.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2</oid>
</usedMem>

</fields>
</interface>

I get below below output from verbose query

Total: 0.000000, Delta: 0.000000, Running Data Query [13].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, Found data query XML file at '/app1/cacti/resource/snmp_queries/stats.xml'
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.010000, Delta: 0.010000, Executing SNMP get for num of indexes @ '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.0' Index Count:
Total: 0.050000, Delta: 0.040000, Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2' Index Count: 6
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.0.0' value: '2415973'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.1.0' value: '10812632'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.2.0' value: '10878313'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.3.0' value: '10756344'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.4.0' value: '10927135'
Total: 0.050000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.5.0' value: '10931731'
Total: 0.050000, Delta: 0.000000, Filtering list of indexes @ '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2' Index Count: 6
Total: 0.050000, Delta: 0.000000, Filtered Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.0.0' value: '0'
Total: 0.050000, Delta: 0.000000, Filtered Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.1.0' value: '0'
Total: 0.050000, Delta: 0.000000, Filtered Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.2.0' value: '0'
Total: 0.050000, Delta: 0.000000, Filtered Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.3.0' value: '0'
Total: 0.050000, Delta: 0.000000, Filtered Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.4.0' value: '0'
Total: 0.050000, Delta: 0.000000, Filtered Index found at OID: '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2.5.0' value: '0'

Click to show Data Query output for field 'usedMem'
Total: 0.050000, Delta: 0.000000, Located input field 'usedMem' [walk]
Total: 0.080000, Delta: 0.040000, Executing SNMP walk for data @ '.1.3.6.1.4.1.11610.435.15747.1.25.2.4.1.8.2'
Found item [usedMem='2415973'] index: 0 [from value]
Found item [usedMem='10812632'] index: 0 [from value]
Found item [usedMem='10878313'] index: 0 [from value]
Found item [usedMem='10756344'] index: 0 [from value]
Found item [usedMem='10927135'] index: 0 [from value]
Found item [usedMem='10931731'] index: 0 [from value]

Kindly let me know how can i create associated graph template.

Post Reply