Install snmptools and add counters to the counters.ini file.Perfmon counters can be obtained using "Typeperf -qx" command.
Example below shows counter.ini file with few general counters.
the base OID is 1.3.6.1.4.1.15
;% Processor Time - 2.1.x
[1.3.6.1.4.1.15.2.1.1]
counter=Processor\% Processor Time\_Total
;Memory - 5.1.x
[1.3.6.1.4.1.15.5.1.1]
counter=Memory\Available Bytes
;Paging File - 6.1.x
[1.3.6.1.4.1.15.6.1.1]
counter=Paging File(_Total)\% Usage
[1.3.6.1.4.1.15.6.1.2]
counter=Paging File(_Total)\% Usage Peak
Restart SNMP, check returned values:
snmpget -v2c -c public hostname 1.3.6.1.4.1.15.5.1.1
iso.3.6.1.4.1.15.5.1.1 = STRING: "2235023360"
This counter returns available memory in Bytes.