SNMP - Get Processor Information - No data returned

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
alinux
Cacti User
Posts: 56
Joined: Mon Jul 16, 2007 10:02 am

SNMP - Get Processor Information - No data returned

Post by alinux »

Hi All
I got two Centos servers, one is 4.5 and the other is CentOS 5, the CentOS 5 server is not returning any rows for SNMP - Get Processor Information

A verbose query shows :




HTTPS Server (87.236.144.90)
SNMP Information
System: Linux localhost.localdomain 2.6.18-92.el5xen #1 SMP Tue Jun 10 19:55:54 EDT 2008 i686
Uptime: 27306
Hostname: localhost.localdomain
Location: Unknown
Contact: root@localhost
*Create Graphs for this Host

Devices [edit: HTTPS Server]
Description
Give this host a meaningful description.
Hostname
Fill in the fully qualified hostname for this device.
Host Template
Choose what type of host, host template this is. The host template will govern what kinds of data should be gathered from this type of host.
Disable Host
Check this box to disable all checks for this host. Disable Host
Monitor Host
Check this box to monitor this host on the Monitor Tab. Monitor Host
SNMP Options
SNMP Community
Fill in the SNMP read community for this device.
SNMP Username (v3)
Fill in the SNMP v3 username for this device.
SNMP Password (v3)
Fill in the SNMP v3 password for this device.
SNMP Version
Choose the SNMP version for this host.
SNMP Port
Enter the UDP port number to use for SNMP (default is 161).
SNMP Timeout
The maximum number of milliseconds Cacti will wait for an SNMP response (does not work with php-snmp support).

Data Query Debug Information
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/local/bin/php -q /usr/local/apache2/htdocs/cacti/scripts/ss_host_cpu.php xxxxxxxx.9x 65 2:161:500:ZsPl3nd0or:::MD5::[None] index'
+ Executing script query '/usr/local/bin/php -q /usr/local/apache2/htdocs/cacti/scripts/ss_host_cpu.php xxxxxxxx.9x 65 2:161:500:ZsPl3nd0or:::MD5::[None] query index'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_cpu.xml'
alinux
Cacti User
Posts: 56
Joined: Mon Jul 16, 2007 10:02 am

Post by alinux »

A SNMP Walk shows

[root@news ~]# snmpwalk -v 1 -c dsfasd adsafadf .1.3.6.1.4.1.2021.11
UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0
UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0
UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 76
UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 0
UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 3794
UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 328
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 6
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 5
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 85
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 2404198
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 96592
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 2286211
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 289029036
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 78667
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 72708
UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 29744946
UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 7469884
UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 590960946
UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 100161153
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 792571
UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 0
UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 18
alinux
Cacti User
Posts: 56
Joined: Mon Jul 16, 2007 10:02 am

Post by alinux »

When I do a verbose query on Cacti for the CPU info I get this on the snmpd log of the target

Received SNMP packet(s) from xxxxxxxxxxxxx
GETBULK message, non-rep=0, max_rep=50
-- HOST-RESOURCES-MIB::hrProcessorEntry
Received SNMP packet(s) from xxxxxxxxxxxx
GET message
-- HOST-RESOURCES-MIB::hrProcessorEntry
Received SNMP packet(s) from xxxxxxxxxxxxx
GETBULK message, non-rep=0, max_rep=50
-- HOST-RESOURCES-MIB::hrProcessorEntry
Received SNMP packet(s) from xxxxxxxxxxxx
GET message
-- HOST-RESOURCES-MIB::hrProcessorEntry
Received SNMP packet(s) from xxxxxxxx
GETBULK message, non-rep=0, max_rep=50
-- HOST-RESOURCES-MIB::hrProcessorEntry
Received SNMP packet(s) from xxxxxxxxxxxxxx
GET message
-- HOST-RESOURCES-MIB::hrProcessorEntry
Received SNMP packet(s) from xxxxxxxxxxx
GET message
-- SNMPv2-MIB::sysUpTime.0
Received SNMP packet(s) from 8xxxxxxx
GET message
-- SNMPv2-MIB::sysDescr.0
Received SNMP packet(s) from xxxxxxxxxx
GET message
-- SNMPv2-MIB::sysUpTime.0
Received SNMP packet(s) from xxxxxxxxxx
GET message
-- SNMPv2-MIB::sysName.0
Received SNMP packet(s) from xxxxxxxxxxx
GET message
-- SNMPv2-MIB::sysLocation.0
Received SNMP packet(s) from xxxxxxx
GET message
-- SNMPv2-MIB::sysContact.0
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests