SNMP error and missing SNMP results
Moderators: Developers, Moderators
SNMP error and missing SNMP results
Hello,
I just upgraded to 0.8.6g + pre-patched (from 0.8.6f, installed only 1 day before I see the new version)
Some questions :
*** what does mean the red "SNMP error" at the top of each device page ?
*** I have 4 exact same Win2000 servers. (Windows2000/XP Template)
1 is ok I can graph CPU/HDD/Interface
2nd one I can't get CPU info
3rd and 4th ones I have only logged-in users and Process
Why ?
The first one if I do a CPU reload query on the device page I will loose the CPU because it will return 0 result (this is the behavior what with the 2nd server)
Although I get results from snmp command lines from the 4 servers...
*** Got 1 linux box which is ok (except the red "SNMP Error")
How can I debug all this please ?
Thanks in advance.
Linux Kernel 2.6.13
Cacti 0.8.6g
PHP 4.3.11
Apache 2.0.54
MySQL 4.1.12
[Edit : Net-snmp 5.2.1 RRDTool 1.0]
I just upgraded to 0.8.6g + pre-patched (from 0.8.6f, installed only 1 day before I see the new version)
Some questions :
*** what does mean the red "SNMP error" at the top of each device page ?
*** I have 4 exact same Win2000 servers. (Windows2000/XP Template)
1 is ok I can graph CPU/HDD/Interface
2nd one I can't get CPU info
3rd and 4th ones I have only logged-in users and Process
Why ?
The first one if I do a CPU reload query on the device page I will loose the CPU because it will return 0 result (this is the behavior what with the 2nd server)
Although I get results from snmp command lines from the 4 servers...
*** Got 1 linux box which is ok (except the red "SNMP Error")
How can I debug all this please ?
Thanks in advance.
Linux Kernel 2.6.13
Cacti 0.8.6g
PHP 4.3.11
Apache 2.0.54
MySQL 4.1.12
[Edit : Net-snmp 5.2.1 RRDTool 1.0]
Last edited by Arka on Wed Oct 26, 2005 7:29 am, edited 2 times in total.
Cacti.log
Code: Select all
10/26/2005 01:30:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /soft/apache/bin/php, ARGS: -q /appli/cacti/cmd.php 0 14]
10/26/2005 01:30:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/26/2005 01:30:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /appli/cacti
10/26/2005 01:30:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /appli/cacti
10/26/2005 01:30:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: /appli/cacti/script_server.php
10/26/2005 01:30:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
10/26/2005 01:30:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/26/2005 01:30:01 PM - CMDPHP: Poller[0] Host[12] SNMP: Host responded to SNMP
10/26/2005 01:30:04 PM - CMDPHP: Poller[0] Host[12] RECACHE: Processing 3 items in the auto reindex cache for 'x.x.x.x'.
10/26/2005 01:30:04 PM - CMDPHP: Poller[0] Host[12] DS[26] SNMP: v2: x.x.x.x, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: 14
10/26/2005 01:30:04 PM - CMDPHP: Poller[0] Host[12] DS[27] SNMP: v2: x.x.x.x, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, output: 28
10/26/2005 01:30:05 PM - POLLER: Poller[0] CACTI2RRD: /soft/rrdtool/bin/rrdtool update /appli/cacti/rra/xxxxxxxxx_proc_27.rrd --template proc 1130326201:28
10/26/2005 01:30:05 PM - POLLER: Poller[0] CACTI2RRD: /soft/rrdtool/bin/rrdtool update /appli/cacti/rra/xxxxxxxxx_users_26.rrd --template users 1130326201:14
10/26/2005 01:30:06 PM - CMDPHP: Poller[0] Host[12] DS[61] CMD: /soft/apache/bin/php -q /appli/cacti/scripts/query_host_partitions.php x.x.x.x cerberus07 2 get total 2, output: 10487197696
10/26/2005 01:30:06 PM - CMDPHP: Poller[0] Host[12] DS[61] CMD: /soft/apache/bin/php -q /appli/cacti/scripts/query_host_partitions.php x.x.x.x cerberus07 2 get used 2, output: 4853780480
10/26/2005 01:30:06 PM - CMDPHP: Poller[0] Host[12] DS[62] CMD: /soft/apache/bin/php -q /appli/cacti/scripts/query_host_partitions.php x.x.x.x cerberus07 2 get total 3, output: 25860247552
10/26/2005 01:30:06 PM - CMDPHP: Poller[0] Host[12] DS[62] CMD: /soft/apache/bin/php -q /appli/cacti/scripts/query_host_partitions.php x.x.x.x cerberus07 2 get used 3, output: 6554787840
10/26/2005 01:30:06 PM - CMDPHP: Poller[0] Host[12] DS[63] CMD: /soft/apache/bin/php -q /appli/cacti/scripts/query_host_partitions.php x.x.x.x cerberus07 2 get total 5, output: 4132306944
10/26/2005 01:30:06 PM - POLLER: Poller[0] CACTI2RRD: /soft/rrdtool/bin/rrdtool update /appli/cacti/rra/xxxxxxxxx_hdd_total_62.rrd --template hdd_used:hdd_total 1130326201:6554787840:25860247552
10/26/2005 01:30:06 PM - POLLER: Poller[0] CACTI2RRD: /soft/rrdtool/bin/rrdtool update /appli/cacti/rra/xxxxxxxxx_hdd_total_61.rrd --template hdd_used:hdd_total 1130326201:4853780480:10487197696
10/26/2005 01:30:06 PM - CMDPHP: Poller[0] Host[12] DS[63] CMD: /soft/apache/bin/php -q /appli/cacti/scripts/query_host_partitions.php x.x.x.x cerberus07 2 get used 5, output: 140902400
10/26/2005 01:30:08 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
snmpwalk (bi-cpu) command line is ok...
$ /appli/netsnmp/bin/snmpwalk -v2c -c xxxxx x.x.x.x .1.3.6.1.2.1.25.3.3.1
HOST-RESOURCES-MIB::hrProcessorFrwID.4 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.5 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.4 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.5 = INTEGER: 0
What could it be ?
$ /appli/netsnmp/bin/snmpwalk -v2c -c xxxxx x.x.x.x .1.3.6.1.2.1.25.3.3.1
HOST-RESOURCES-MIB::hrProcessorFrwID.4 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.5 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.4 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.5 = INTEGER: 0
What could it be ?
Last edited by Arka on Wed Oct 26, 2005 7:42 am, edited 1 time in total.
Verbose Interface query
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
Although command line returns :
/appli/netsnmp/bin/snmpwalk -v2c -c xxxxxx x.x.x.x .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.16777219 = INTEGER: 16777219
IF-MIB::ifIndex.33554436 = INTEGER: 33554436
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/appli/cacti/resource/snmp_queries/interface.xml'
Although command line returns :
/appli/netsnmp/bin/snmpwalk -v2c -c xxxxxx x.x.x.x .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.16777219 = INTEGER: 16777219
IF-MIB::ifIndex.33554436 = INTEGER: 33554436
Last edited by Arka on Wed Oct 26, 2005 7:42 am, edited 1 time in total.
Verbose CPU query
+ Running data query [9].
+ Found type = '4 '[script query].
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/soft/apache/bin/php -q /appli/cacti/scripts/query_host_cpu.php x.x.x.x xxxxxx 2 index'
+ Executing script query '/soft/apache/bin/php -q /appli/cacti/scripts/query_host_cpu.php x.x.x.x xxxxxx 2 query index'
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
Command line returns 0, could it be the problem ?
+ Running data query [9].
+ Found type = '4 '[script query].
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/soft/apache/bin/php -q /appli/cacti/scripts/query_host_cpu.php x.x.x.x xxxxxx 2 index'
+ Executing script query '/soft/apache/bin/php -q /appli/cacti/scripts/query_host_cpu.php x.x.x.x xxxxxx 2 query index'
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
+ Found data query XML file at '/appli/cacti/resource/script_queries/host_cpu.xml'
Command line returns 0, could it be the problem ?
Can't understand why sometimes I get results sometimes not.
For example, I delete a device, DS and graphs assosiated. I create the device again (Win200 or Linux, same behavior).
Sometimes it gets the SNMP info, sometimes not.
After creation, do you need to clear the cache ?
What are the right steps to create a device and get the SNMP results ?
I have created again my second Win2000 server and it has now all the SNMP results. I created again a linux box and now it has no more results.
Hard to understand :/
Is there a reliable way to get a working device when it is created ?
For example, I delete a device, DS and graphs assosiated. I create the device again (Win200 or Linux, same behavior).
Sometimes it gets the SNMP info, sometimes not.
After creation, do you need to clear the cache ?
What are the right steps to create a device and get the SNMP results ?
I have created again my second Win2000 server and it has now all the SNMP results. I created again a linux box and now it has no more results.
Hard to understand :/
Is there a reliable way to get a working device when it is created ?
The hosts were all "up"
I have found what was wrong.
I have checked exec permissions.
But my apache user had no valid shell (no need, it starts as root, then binds to apache user with no shell for security reason)
Simply adding a "normal" shell to this apache user and the problem was fixed...
Thanks for your time.
I have found what was wrong.
I have checked exec permissions.
But my apache user had no valid shell (no need, it starts as root, then binds to apache user with no shell for security reason)
Simply adding a "normal" shell to this apache user and the problem was fixed...
Thanks for your time.
Who is online
Users browsing this forum: No registered users and 1 guest