Hi,

    Thanks for your reply.

The host-resource mib has the following OID for processor usage:

host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad



 But since we have 2 processors in the windows machine, the windows SNMP 
service is returning the following OIDs for the 2 processors which form the 
leafnodes of the MIB tree:

host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.15

host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.16



I have put the following block in Collectd.conf for capturing this data:



<Data "hr_cpuLoad">

       Type "cpustats_percent"

       Table true

       Instance "HOST-RESOURCES-MIB::hrProcessorEntry"

       Values "HOST-RESOURCES-MIB::hrProcessorLoad"

</Data>

And the data for both processors are coming in the same csv file named 
cpustats_percent-0-2010-09-29

Now the question is how do I get the 2 processor values in 2 different files 
without specifying the last numbersin the OID, in this case, 15 and 16, in the 
collectd.conf.



We need the configuration to be generic, applicable to any windows node.

Note that, the windows snmp mib implementation gives these random numbers which 
will vary from machine to machine.



Hope I could clarify,

Thanks & Regards,

Kakoli



-----Original Message-----
From: Florian Forster [mailto:o...@collectd.org]
Sent: Wednesday, September 29, 2010 12:22 PM
To: Sen, Kakoli
Cc: collectd@verplant.org
Subject: Re: [collectd] Using SNMP plugin with collectd



Hi Kakoli,



On Tue, Sep 28, 2010 at 10:03:26AM +0000, Sen, Kakoli wrote:

> I need to collect cpu/memory/disk usage of windows node.



if you could use an evaluation version of SSC Serv [0], please let me know. The 
"free edition" is capable of collecting CPU and interface statistics, the full 
version collects memory, disk (among others) as well.



> In collectd.conf, in snmp Data block it is given as Table true Values

> "HOST-RESOURCES-MIB::hrProcessorLoad "

>

> But for a multi-processor node, in the same csv file values of both

> processors are coming.



When configuring a *table*, the plugin expects multiple values to be returned. 
If you do not specify the "Instance" option, the last part of the OID will be 
used as instance, in the hope that this is unique.



If, however, the data is returned as



  hrProcessorLoad.1.0 = 12

  hrProcessorLoad.2.0 = 13



both values will use "0" (the last part of the OID) as instance.



Could you provide an snmpwalk of the entire table? This would make it a lot 
easier to tell you how to configure the plugin.



Best regards,

--octo



[0] <http://ssc-serv.com/>

--

Florian octo Forster

Hacker in training

GnuPG: 0x0C705A15

http://octo.it/
_______________________________________________
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd

Reply via email to