Also, I'm not new to SNMP in general. I've used SNMP gathering tools of various sorts for years. However, I have very little experience with cacti. I'm clearly screwing something up but I don't have a clue as to what it might be.
All I want to record is the total utilization per CPU. Therefore, I'm trying to figure out how to grab hrProcessorLoad for each CPU. snmpwalk against net-snmp gives me the following:
Great! Now I know how to grab the value as either an index or instance. I know from reading the HOST-RESOURCES-MIB docs that the values displayed are the loads for each CPU expressed as a percentage. I think I created a valid import file:jim@llama ~ $ snmpwalk -c public -v 1 localhost .1.3.6.1.2.1.25.3.3.1.2
HOST-RESOURCES-MIB::hrProcessorLoad.768 = INTEGER: 4
HOST-RESOURCES-MIB::hrProcessorLoad.769 = INTEGER: 3
HOST-RESOURCES-MIB::hrProcessorLoad.770 = INTEGER: 1
HOST-RESOURCES-MIB::hrProcessorLoad.771 = INTEGER: 1
jim@llama ~ $
Code: Select all
<query>
<name>Get SNMP Per CPU Utilization</name>
<description>Queries a host for a list of monitorable CPUs</description>
<oid_index>.1.3.6.1.2.1.25.3.3.1.2</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
<oid_num_indexes>.1.3.6.1.2.1.25.3.2.1.1</oid_num_indexes>
<index_order>HOST-RESOURCES-MIB::hrDeviceID</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<ifIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.25.3.3.1.2</oid>
</ifIndex>
</fields>
</query>
I'm at a loss as how to proceed. I've gone around and around with defining Data Sources, Graph Templates, New Graphs, Graph Management, SNMP Cache Items, Poller Cache until I'm so dizzy I don't know which way is up. I do know that the SNMP Cache Items doesn't show the OID that I'm trying to query. However, I can't figure out how to tell why that is.
How do I verify whether or not I'm getting the data collected? How do I verify that the cacti engine is reading the data correctly? Where do I start?
Thanks in advance for any and all help that you can provide. I am one poor, confused newb!