[collectd] Using SNMP plugin with collectd
sen at hp.com
Wed Sep 29 10:51:14 CEST 2010
Thanks for your reply.
The host-resource mib has the following OID for processor usage:
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:
I have put the following block in Collectd.conf for capturing this 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,
From: Florian Forster [mailto:octo at collectd.org]
Sent: Wednesday, September 29, 2010 12:22 PM
To: Sen, Kakoli
Cc: collectd at verplant.org
Subject: Re: [collectd] Using SNMP plugin with collectd
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 , 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.
Florian octo Forster
Hacker in training
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the collectd