Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post general support questions here that do not specifically fall into the Linux or Windows categories.
Moderators: Developers , Moderators
fury
Posts: 13 Joined: Sun Dec 31, 2006 6:57 am
Post
by fury » Fri Feb 09, 2007 3:51 pm
Hi folks,
i have got a problem. i want to query the cpu load of an server with a dualcore cpu. but i get no items and no rows...
here is the xml file:
Code: Select all
<interface>
<name>Get Windows CPU Load</name>
<description>Get SNMP based Partition Information out of hrStorageTable</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.2.1.25.3.3.1</oid_index>
<fields>
<hrProcessorLoad>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.25.3.3.1.2.1</oid>
</hrProcessorLoad>
</fields>
</interface>
password and oid is correct and i get an output with the bash command.
who can give me a hint?
thanks a lot!
Andre
BSOD2600
Cacti Moderator
Posts: 12171 Joined: Sat May 08, 2004 12:44 pm
Location: USA
Post
by BSOD2600 » Fri Feb 09, 2007 5:07 pm
Why aren't you using the snmp processor template that comes with cacti?
When you snmpwalk .1.3.6.1.2.1.25.3.3.1.2, do you get anything?
fury
Posts: 13 Joined: Sun Dec 31, 2006 6:57 am
Post
by fury » Sat Feb 10, 2007 4:40 am
the template from cacti does not work. i do not know why.
i get this output with an snmpwalk:
Code: Select all
HOST-RESOURCES-MIB::hrProcessorLoad.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 0
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Sat Feb 10, 2007 3:52 pm
fury wrote:
Code: Select all
...
<oid_index>.1.3.6.1.2.1.25.3.3.1</oid_index>
<fields>
<hrProcessorLoad>
...
<oid>.1.3.6.1.2.1.25.3.3.1.2.1</oid>
</hrProcessorLoad>
</fields>
</interface>
The OIDs do not match. Please post an snmpwalk against both of them
Reinhard
fury
Posts: 13 Joined: Sun Dec 31, 2006 6:57 am
Post
by fury » Sat Feb 10, 2007 3:56 pm
first one:
Code: Select all
1
HOST-RESOURCES-MIB::hrProcessorFrwID.1 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.2 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.2 = INTEGER: 0
second one:
Code: Select all
HOST-RESOURCES-MIB::hrProcessorLoad.1 = INTEGER: 0
Andre
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Sat Feb 10, 2007 4:01 pm
Sorry, please retry using option -On to get numerical OID representation
Reinhard
fury
Posts: 13 Joined: Sun Dec 31, 2006 6:57 am
Post
by fury » Sun Feb 11, 2007 12:17 pm
no problem.
here they are.
first:
Code: Select all
.1.3.6.1.2.1.25.3.3.1.1.1 = OID: .0.0
.1.3.6.1.2.1.25.3.3.1.1.2 = OID: .0.0
.1.3.6.1.2.1.25.3.3.1.2.1 = INTEGER: 0
.1.3.6.1.2.1.25.3.3.1.2.2 = INTEGER: 0
second:
Code: Select all
.1.3.6.1.2.1.25.3.3.1.2.1 = INTEGER: 0
andre
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Sun Feb 11, 2007 4:16 pm
Please change your xml to
Code: Select all
<interface>
<name>Get Windows CPU Load</name>
<description>Get SNMP based Partition Information out of hrStorageTable</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.2.1.25.3.3.1.1</oid_index>
<fields>
<hrProcessorIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.25.3.3.1.1</oid>
</hrProcessorIndex>
<hrProcessorLoad>
<name>Processor Load</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.25.3.3.1.2</oid>
</hrProcessorLoad>
</fields>
</interface>
Reinhard
Users browsing this forum: No registered users and 3 guests