Data Query [SNMP -Get Processor Information]

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

Moderators: Developers, Moderators

Post Reply
leeeroybrown
Posts: 6
Joined: Wed Oct 26, 2005 3:38 pm

Data Query [SNMP -Get Processor Information]

Post by leeeroybrown »

Hi,

I am really wrestling with this app, I hope you'll see i am giving it an honest effort before coming to you for help.

This is a brand spanking new install of cacti plus all of the patches. I am adding the first device, which I only want to poll the CPU Utilization via SNMP Data Query. In the Assoc.Data Query box I have added the query from the dropdown. But I can't create any graphs from it My results are:
1.) SNMP - Get Processor Information (Verbose Query) Uptime Goes Backwards Success [0 Items, 0 Rows]

Did I miss a step ??? I am just following the instructions from the manual.

BT----- I am using the cmd.poller in my setup.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

When you are viewing the device, do you get an SNMP error at the top?

Also, what type of device is it?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
leeeroybrown
Posts: 6
Joined: Wed Oct 26, 2005 3:38 pm

Post by leeeroybrown »

Hi,

No SNMP Error, I get a snmp report looks a bit like this...
SNMP Information
System:00:LINUX:PROD-DB:2.4.21-27.ELSMP:#1:SMP:WED:DEC:01:21:59:02:EST:2004:I686
Uptime: 596891893
Hostname: prod-db

This is an IBM Blade Server. Here is what comes out of the DataQuery debug screen.

ata Query Debug Information
+ Running data query [9].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/cacti/scripts/ss_host_cpu.php prod-db.xxxxxx.com 2 1:161:500:passtring:::MD5::[None] index'
+ Executing script query '/usr/bin/php -q /var/www/html/cacti/scripts/ss_host_cpu.php prod-db.xxxxxx.com 2 1:161:500:passtring:::MD5::[None] query index'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_server/host_cpu.xml'
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

Your host needs to support the "host" table for this query to work. Try snmpwalking 1.3.6.1.2.1.25.3.3 to find out if it does.

net-snmp does not include this table by default, I believe, but you can include it at compile-time.

FYI,
leeeroybrown
Posts: 6
Joined: Wed Oct 26, 2005 3:38 pm

Post by leeeroybrown »

Hi,

I am not exactly sure what this response means. Is my host the cacti box or the boxes getting monitored ? The "host table" is this a system file or part of the snmp build?? Here is the configure line for net-snmp compile:
./configure --prefix=/usr --with-mibdirs=/usr/share/snmp/mibs --with-mib-modules="host disman/event-mib smux" --with-sysconfdir="/etc/net-snmp" --enable-shared

Can you tell from that, theres the host module listed. Does that help?

Thx-
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

leeeroybrown wrote:Hi,

I am not exactly sure what this response means. Is my host the cacti box or the boxes getting monitored ? The "host table" is this a system file or part of the snmp build?? Here is the configure line for net-snmp compile:
./configure --prefix=/usr --with-mibdirs=/usr/share/snmp/mibs --with-mib-modules="host disman/event-mib smux" --with-sysconfdir="/etc/net-snmp" --enable-shared

Can you tell from that, theres the host module listed. Does that help?

Thx-
He meant, that the remote host must have some option enabled that is kown as the HOST MIB. Not all snmp enabled deviced support this. Try the query, dgamble asked for to verify, that your remote host responds to queries of HOST MIB OIDs.
Reinhard
dgamble
Cacti User
Posts: 68
Joined: Tue Mar 08, 2005 4:50 pm
Location: Calgary, AB, CA

Post by dgamble »

Yes, that's the compile option that needs to be there- the "host" in --with-mib-modules="host disman/event-mib smux". BUT, this option needs to be compiled in on the REMOTE host side, yes.

So again, check to see if the remote host supports these objects.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What OS is the remote host?

Don't worry about mibs at this point, the remote host does not support HOSTMIB, which means, there is a configuration error on the remote host.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests