snmpv3 is working on command line but not in cacti gui - bug

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
scalex
Posts: 2
Joined: Mon Feb 14, 2011 4:11 am

snmpv3 is working on command line but not in cacti gui - bug

Post by scalex »

Hello cacti experts,

I have a problem with cacti which is installed on a linux box (centos 5.5). Now I want to monitor some windows stations. On my windows xp box, I've installed net-snmp-5.4.2.1-1.win32.exe (and disabled widows native snmp support) because snmp v3 IS A MUST (user/pass authentication)

Command line commands are working without any problems:

On my Windows XP console:
C:\>snmpwalk -v 3 -l authnopriv -u gandalf -a MD5 -A myauthpass -x DES -X myprivpass 127.0.0.1 interface
IF-MIB::ifNumber.0 = INTEGER: 4
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::ifDescr.1 = STRING: MS TCP Loopback interface
IF-MIB::ifDescr.2 = STRING: VMware Virtual Ethernet Adapter for VMnet8
IF-MIB::ifDescr.3 = STRING: VMware Virtual Ethernet Adapter for VMnet1
IF-MIB::ifDescr.4 = STRING: Intel(R) 82566DM Gigabit Network Connection - Packet Scheduler Miniport
...

On my Linux Cacti server, on console:
[root@monitor ~]# snmpwalk -v 3 -l authnopriv -u gandalf -A myauthpass -x DES -X myprivpass 192.168.51.59 interface
IF-MIB::ifNumber.0 = INTEGER: 4
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::ifDescr.1 = STRING: MS TCP Loopback interface
IF-MIB::ifDescr.2 = STRING: VMware Virtual Ethernet Adapter for VMnet8
IF-MIB::ifDescr.3 = STRING: VMware Virtual Ethernet Adapter for VMnet1
IF-MIB::ifDescr.4 = STRING: Intel(R) 82566DM Gigabit Network Connection - Packet Scheduler Miniport
...

So, snmp v3 is working without problem. Now, on cacti server, for my host I've configured:

hostname: 192.168.51.59
host template: windows xp host
downed device detection: snmp
snmp vervsion: v3
snmp username: gandalf
snmp password: myauthpass
snmp auth protocol (v3): MD5
snmp privacy pashprase: myprivpass
snmp privacy protocol (v3): DES
snmp context:
snmp port: 161
snmp timeout: 500
maximum oid's per get request: 10

All the time, in cacti I am getting snmp error! If for my host I am changing from v3 protocol to v1 or v2 (without auth), everything is working fine! So my problem is related only to snmp v3 implementation in cacti-0.8.7g-2.el5.rf. My snmpd.conf file from windows xp station is looking like below:

C:\usr\etc\snmp\snmpd.conf
rocommunity myrocommunity

createUser gandalf MD5 myauthpass DES myprivphrase
group groupv3 usm gandalf
view all included .iso 80
access groupv3 "" any auth exact all all all

I don't know if matter but I've tested snmpget command which is not working!

On my windows xp console:
C:\>snmpget -v 3 -l authnopriv -u gandalf -A myauthpass -x DES -X myprivpass 192.168.51.59 interface
Timeout: No Response from 192.168.51.59.

On my cacti server console:
[root@monitor ~]# snmpget -v 3 -l authnopriv -u gandalf -A myauthpass -x DES -X myprivpass 192.168.51.59 interface
Timeout: No Response from 192.168.51.59.

How can be fixed this problem?

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

Re: snmpv3 is working on command line but not in cacti gui -

Post by gandalf »

To run AuthNoPriv with cacti, please set SNMP Privacy Protocol to "NONE".
We will allow for an empty passphrase with upcoming 087h
R.
scalex
Posts: 2
Joined: Mon Feb 14, 2011 4:11 am

Re: snmpv3 is working on command line but not in cacti gui -

Post by scalex »

Thanks, is working!

Regards,
Alx
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests