<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=WordSection1>
<p class=MsoPlainText><span style='color:black'>Hi,<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'> Thanks for
your reply. <o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'>The host-resource mib has the
following OID for processor usage: <o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:#C0504D'>host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad<o:p></o:p></span></p>
<p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='color:black'> 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:<o:p></o:p></span></p>
<p class=MsoPlainText><i><span style='color:black'>host.hrDevice.hrProcessorTable</span><span
style='color:#C0504D'>.<b>hrProcessorEntry.hrProcessorLoad.15<o:p></o:p></b></span></i></p>
<p class=MsoPlainText><i><span style='color:black'>host.hrDevice.hrProcessorTable</span><span
style='color:#C0504D'>.<b>hrProcessorEntry.hrProcessorLoad.16<o:p></o:p></b></span></i></p>
<p class=MsoPlainText><b><span style='color:black'><o:p> </o:p></span></b></p>
<p class=MsoPlainText><span style='color:black'>I have put the following block in
Collectd.conf for capturing this data:<o:p></o:p></span></p>
<p class=MsoPlainText><i><span style='color:#0066FF'><o:p> </o:p></span></i></p>
<p class=MsoPlainText><i><span style='color:#0066FF'><Data
"hr_cpuLoad"><o:p></o:p></span></i></p>
<p class=MsoPlainText><i><span style='color:#0066FF'>
Type "cpustats_percent"<o:p></o:p></span></i></p>
<p class=MsoPlainText><i><span style='color:#0066FF'>
Table true<o:p></o:p></span></i></p>
<p class=MsoPlainText><i><span style='color:#0066FF'>
Instance "HOST-RESOURCES-MIB::hrProcessorEntry"<o:p></o:p></span></i></p>
<p class=MsoPlainText><i><span style='color:#0066FF'>
Values "HOST-RESOURCES-MIB::hrProcessorLoad"<o:p></o:p></span></i></p>
<p class=MsoPlainText><i><span style='color:#0066FF'></Data><o:p></o:p></span></i></p>
<p class=MsoPlainText><span style='color:black'>And the data for both
processors are coming in the same csv file named </span><i><span
style='color:#4F81BD'>cpustats_percent-0-2010-09-29<o:p></o:p></span></i></p>
<p class=MsoPlainText>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. <o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>We need the configuration to be generic, applicable to
any windows node.<o:p></o:p></p>
<p class=MsoPlainText>Note that, the windows snmp mib implementation gives
these random numbers which will vary from machine to machine.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Hope I could clarify,<o:p></o:p></p>
<p class=MsoPlainText>Thanks & Regards,<o:p></o:p></p>
<p class=MsoPlainText>Kakoli<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>-----Original Message-----<br>
From: Florian Forster [mailto:octo@collectd.org] <br>
Sent: Wednesday, September 29, 2010 12:22 PM<br>
To: Sen, Kakoli<br>
Cc: collectd@verplant.org<br>
Subject: Re: [collectd] Using SNMP plugin with collectd<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Hi Kakoli,<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>On Tue, Sep 28, 2010 at 10:03:26AM +0000, Sen, Kakoli
wrote:<o:p></o:p></p>
<p class=MsoPlainText>> I need to collect cpu/memory/disk usage of windows
node.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>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.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>> In collectd.conf, in snmp Data block it is given as
Table true Values <o:p></o:p></p>
<p class=MsoPlainText>> "HOST-RESOURCES-MIB::hrProcessorLoad "<o:p></o:p></p>
<p class=MsoPlainText>> <o:p></o:p></p>
<p class=MsoPlainText>> But for a multi-processor node, in the same csv file
values of both <o:p></o:p></p>
<p class=MsoPlainText>> processors are coming.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>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.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>If, however, the data is returned as<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText> hrProcessorLoad.1.0 = 12<o:p></o:p></p>
<p class=MsoPlainText> hrProcessorLoad.2.0 = 13<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>both values will use "0" (the last part of the
OID) as instance.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Could you provide an snmpwalk of the entire table? This
would make it a lot easier to tell you how to configure the plugin.<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>Best regards,<o:p></o:p></p>
<p class=MsoPlainText>--octo<o:p></o:p></p>
<p class=MsoPlainText><o:p> </o:p></p>
<p class=MsoPlainText>[0] <http://ssc-serv.com/><o:p></o:p></p>
<p class=MsoPlainText>--<o:p></o:p></p>
<p class=MsoPlainText>Florian octo Forster<o:p></o:p></p>
<p class=MsoPlainText>Hacker in training<o:p></o:p></p>
<p class=MsoPlainText>GnuPG: 0x0C705A15<o:p></o:p></p>
<p class=MsoPlainText>http://octo.it/<o:p></o:p></p>
</div>
</body>
</html>