"SNMP - Get Processor Information" not work 0.8.6i

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

Moderators: Developers, Moderators

Post Reply
jspilon
Posts: 19
Joined: Wed Jan 17, 2007 6:53 pm
Location: Montreal, QC

"SNMP - Get Processor Information" not work 0.8.6i

Post by jspilon »

The data query "SNMP - Get Processor Information" does not return any data. Tried with localhost and remote hosts.

The hosts are all linux 2.6 (debian sarge)

SNMP - Get Processor Information (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]

Anyone has any idea what could be the problem ?

Code: Select all

Data Query Debug Information
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/cacti/scripts/ss_host_cpu.php 127.0.0.1 1 1:161:500::::MD5::[None] index'
+ Executing script query '/usr/bin/php -q /var/www/cacti/scripts/ss_host_cpu.php 127.0.0.1 1 1:161:500::::MD5::[None] query index'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/cacti/scripts/ss_host_cpu.php 127.0.0.1 1 1:161:500::::MD5::[None] index'
+ Executing script query '/usr/bin/php -q /var/www/cacti/scripts/ss_host_cpu.php 127.0.0.1 1 1:161:500::::MD5::[None] query index'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/host_cpu.xml'
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you try this :

Code: Select all

$ snmpwalk -v 1 -c public xx.xx.xx.xx systemstats
UCD-SNMP-MIB::ssIndex.0 = INTEGER: 1
UCD-SNMP-MIB::ssErrorName.0 = STRING: systemStats
UCD-SNMP-MIB::ssSwapIn.0 = INTEGER: 0 kB
UCD-SNMP-MIB::ssSwapOut.0 = INTEGER: 0 kB
UCD-SNMP-MIB::ssIOSent.0 = INTEGER: 6 blocks/s
UCD-SNMP-MIB::ssIOReceive.0 = INTEGER: 62 blocks/s
UCD-SNMP-MIB::ssSysInterrupts.0 = INTEGER: 927 interrupts/s
UCD-SNMP-MIB::ssSysContext.0 = INTEGER: 31 switches/s
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 98
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 8590335
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 2801969
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 3204609
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 1801282072
UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 4787710
UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 0
UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 102765
UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 270664948
UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 753129250
UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 1373076791
UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 479334904
UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 100650
UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 12
UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 113
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
jspilon
Posts: 19
Joined: Wed Jan 17, 2007 6:53 pm
Location: Montreal, QC

Post by jspilon »

well, i wish to graph for all cpus seperately is that possible ?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

AFAIK, using Net-SNMp you'll get only one value for system, user, wait I/O, etc.

You'll have to write a script if you want to graph CPU.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
jspilon
Posts: 19
Joined: Wed Jan 17, 2007 6:53 pm
Location: Montreal, QC

Post by jspilon »

Thanks
jspilon
Posts: 19
Joined: Wed Jan 17, 2007 6:53 pm
Location: Montreal, QC

Post by jspilon »

fmangeant wrote:AFAIK, using Net-SNMp you'll get only one value for system, user, wait I/O, etc.

You'll have to write a script if you want to graph CPU.
a script on the target host ?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Yes, a script launched by Net-SNMP on the target host.

You can follow the HowTo in my signature.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
jspilon
Posts: 19
Joined: Wed Jan 17, 2007 6:53 pm
Location: Montreal, QC

Post by jspilon »

deleted.
jspilon
Posts: 19
Joined: Wed Jan 17, 2007 6:53 pm
Location: Montreal, QC

Post by jspilon »

fmangeant wrote:Yes, a script launched by Net-SNMP on the target host.

You can follow the HowTo in my signature.
Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests