Data Query [SNMP -Get Processor Information]
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Wed Oct 26, 2005 3:38 pm
Data Query [SNMP -Get Processor Information]
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
When you are viewing the device, do you get an SNMP error at the top?
Also, what type of device is it?
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]
[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]
-
- Posts: 6
- Joined: Wed Oct 26, 2005 3:38 pm
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:ESTI686
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'
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:ESTI686
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'
-
- Posts: 6
- Joined: Wed Oct 26, 2005 3:38 pm
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-
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-
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
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.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-
Reinhard
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
Who is online
Users browsing this forum: No registered users and 2 guests