I'm trying to graph memory swap ins and outs. I found the OID's on this website http://net-snmp.sourceforge.net/docs/mi ... l#ssSwapIn. The ones I'm interested in are .1.3.6.1.4.1.2021.11.3, and .1.3.6.1.4.1.2021.11.4. When I run an snmpwalk I get;
[root@cacti log]# snmpwalk -v 2c -c public hsweb04 .1.3.6.1.4.1.2021.11.3.0
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0
Here is the contents of my data query that I wrote
The results of my verbose data query are;<interface>
<name>Swap Average</name>
<oid_index>.1.3.6.1.4.1.2021.11.1</oid_index>
<index_order>SwapIndex</index_order>
<index_order_type>alphabetic</index_order_type>
<fields>
<SwapIndex>
<name>Index</name>
<source>index</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.2021.11.1</oid>
</SwapIndex>
<Swap_ins>
<name>Swap Ins</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.11.3</oid>
</Swap_ins>
<Swap_outs>
<name>Swap Outs</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.2021.11.4</oid>
</Swap_outs>
</fields>
</interface>
My graph is returning nan. When I looked in the log file to see what cacti is doing it shows;Running data query [37].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/Swap_Ins_Outs_Avg.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.11.1' Index Count: 1
+ Index found at OID: '1.3.6.1.4.1.2021.11.1.0' value: '1'
08/15/2013 01:27:06 PM - SPINE: Poller[0] Host[241] DS[12367] SNMP: v2: hsweb04.*****.***, dsname: Swap_ins, oid: .1.3.6.1.4.1.2021.11.3.1, value: U
It added a .1 to the end of my OID.
Trying to do an snmpwalk with an additional .1 gives an error that there is no such instance currently there.
So I played with snmpget, and .1.3.6.1.4.1.2021.11.3.0 returns "interger: 0" So I changed my data query from walk to get, and added the .0 to the end of it, and let it run again. Now in the log file it shows ....11.3.0.1. Why is Cacti adding a .1 onto the OID and thus I'm not getting a valid result?
Does this line from the verbose query indicate where the problem might be "+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2021.11.1' Index Count: 1" ?