Hi,
Have the following setup:
Server 2003 R2
Cacti 0.8.7g
PHP 5.2.3.3
Net-SNMP 5.6.1.1
I can snmpwalk a host using v3 but get an SNMP error in cacti when I change the SNMP options to v3
Error in cacti log is:
CMDPHP: Poller[0] WARNING: SNMP GetNext Timeout for Host:'<hostname>', and OID:'.1.3.6.1.2.1.1.3.0'
SNMP v3 error
Moderators: Developers, Moderators
Re: SNMP v3 error
if you change the max number of OIDs to 1, does it go away?
any difference between cmd.php and spine?
any difference between cmd.php and spine?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: SNMP v3 error
max OID's is already set to 1.
currently running cmd.php but I'm not at that stage yet, SNMP discovery is failing via cacti. I could change to spine but not sure it would help as cacti isn't polling the device yet.
I should add that this would be the first device I have configured for SNMP v3 on cacti.
If I run verbose query on SNMP - Interface Statistics I get the following:
That OID appears invalid for SNMPv3 as I can't perform a manual get/walk on it.
Running verbose query on SNMP - Get Mounted Partitions produces this:
currently running cmd.php but I'm not at that stage yet, SNMP discovery is failing via cacti. I could change to spine but not sure it would help as cacti isn't polling the device yet.
I should add that this would be the first device I have configured for SNMP v3 on cacti.
If I run verbose query on SNMP - Interface Statistics I get the following:
Code: Select all
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'D:/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 'D:/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'D:/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'D:/cacti/resource/snmp_queries/interface.xml'
Running verbose query on SNMP - Get Mounted Partitions produces this:
Code: Select all
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'C:\Progra~1\PHP\php.exe -q D:\cacti\scripts\ss_host_disk.php DR-ORACLE21 524 3:161:5000:2:1:<snmp_community>:nagios:7PMV7U04:SHA:oYn88QnVfiRMYxoR:DES: index'
+ Executing script query 'C:\Progra~1\PHP\php.exe -q D:\cacti\scripts\ss_host_disk.php DR-ORACLE21 524 3:161:5000:2:1:<snmp_community>:<snmp_user>:<snmp_pw>:SHA:<snmp_passphrase>:DES: query index'
+ Executing script query 'C:\Progra~1\PHP\php.exe -q D:\cacti\scripts\ss_host_disk.php DR-ORACLE21 524 3:161:5000:2:1:<snmp_community>:<snmp_user>:<snmp_pw>:SHA:<snmp_passphrase>:DES: query description'
+ Executing script query 'C:\Progra~1\PHP\php.exe -q D:\cacti\scripts\ss_host_disk.php DR-ORACLE21 524 3:161:5000:2:1:<snmp_community>:<snmp_user>:<snmp_pw>:SHA:<snmp_passphrase>:DES: query sau'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at 'D:/cacti/resource/script_server/host_disk.xml'
Re: SNMP v3 error
I dont have any SNMPv3 devices, so havent had much experience. I do know that there have been snmpv3 improvements in newer versions of Cacti. Read through the release notes to see the details.
That OID is valid if the device supports IF-MIB. Example, Windows 7:
Does SNMPv1 or v2 work against that host per chance?
That OID is valid if the device supports IF-MIB. Example, Windows 7:
Code: Select all
Q:\>snmpwalk -v 2c -c public localhost .1.3.6.1.2.1.2.2.1.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: SNMP v3 error
Forgive the necro'ing of this old thread but just want to throw something in here:
SNMPv3 doesn't work properly using PHP 5.2 on Windows.The snmp3_get() PHP function exists, so the Cacti snmp_get_method(3) function call returns "SNMP_METHOD_PHP" and Cacti tries to use the PHP SNMP module to retrieve the values, which doesn't work.
You can either a) hack up snmp.php to force SNMP_METHOD_BINARY for SNMPv3 via NET-SNMP, or b) upgrade your Cacti box to PHP 5.3 which has a working SNMPv3 module.
Regards,
Jacob
SNMPv3 doesn't work properly using PHP 5.2 on Windows.The snmp3_get() PHP function exists, so the Cacti snmp_get_method(3) function call returns "SNMP_METHOD_PHP" and Cacti tries to use the PHP SNMP module to retrieve the values, which doesn't work.
You can either a) hack up snmp.php to force SNMP_METHOD_BINARY for SNMPv3 via NET-SNMP, or b) upgrade your Cacti box to PHP 5.3 which has a working SNMPv3 module.
Regards,
Jacob
Who is online
Users browsing this forum: No registered users and 2 guests