No Items and Rows with a dualcore cpu

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
fury
Posts: 13
Joined: Sun Dec 31, 2006 6:57 am

No Items and Rows with a dualcore cpu

Post by fury »

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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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 »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: No Items and Rows with a dualcore cpu

Post by gandalf »

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 »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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 »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest