SNMPv3 with Cacti on Win2K3

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
gattmandoo
Posts: 3
Joined: Wed Jun 24, 2009 1:50 pm
Location: NY

SNMPv3 with Cacti on Win2K3

Post by gattmandoo »

Hi all, I'm very new to Cacti and PHP. I have installed Cacti 0.8.7d on a Win2003 server. I am trying to get it working with SNMPv3. I have not been successful yet. I have the following installed.

Win2003
Cacti 0.8.7d
OpenSSL 0.9.8k light (32-bit)
NET-SNMP version: 5.4.1
PHP 5.2.10
RRDTool 1.2.x

When I add the device and set up the SNMPv3 info I always get "SNMP Error" I can go to a CMD prompt and do successfu snmpwalk and snmpget of the device using net-SNMP and SNMPv3 credentials

snmpget -v 3 -u user -l authPriv -a MD5 -A ******** -x DES -X ******** MYRouter 1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3990843558) 461 days, 21:40:35

but in Cacti SNMPv3 fails. SNMPv1/2 seem to work fine.
Any ideas?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) wrong forum, moving.
2) search the windows forum, this has been covered many times. Windows does not support SNMPv3.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Correction, with the "latest" net-snmp you can download and install the OpenSSL support msi package (aka snmpv3). At that point in time, you have to disable PHP-SNMP support in PHP (aka php -m should not show snmp as a module, edit php.ini and search for extension...). You should then be able to perform snmpv3 with Windows by using the net-snmp binaries instead of the PHP Module.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I think the user is trying to enable snmpv3 support FOR windows -- not snmpv3 support IN cacti ON windows.
gattmandoo
Posts: 3
Joined: Wed Jun 24, 2009 1:50 pm
Location: NY

Post by gattmandoo »

Thank for the replys but I figured it out.

You need to disable SNMP support in PHP which forces Cacti to use net-snmp for SNMPv3. As soon as I modified PHP and removed snmp settings it started working like a charm.

So all you need is OpenSSL and net-snmp on win2003 for snmpv3.

THanks,
gattmandoo
Posts: 3
Joined: Wed Jun 24, 2009 1:50 pm
Location: NY

Post by gattmandoo »

Oh and you need to make sure you modify your windows environment variable MIBDIRS to point to your net-snmp mib directory
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests