[SOLVED] SNMP agent not responding in Vista

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

Moderators: Developers, Moderators

djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

[SOLVED] SNMP agent not responding in Vista

Post by djmanou »

Hello,

I have problem monitoring a windows vista station in cacti.
I installed the snmp service and activate it.
I've added the device in cacti but get a "SNMP Error" when I click on it.
I launched a snmpwalk command on the vista station and get a timeout response
Apparently, the snmp agent is not responding to requests. I even try to desactivate Firewall on vista station, but no success.

Did any user manage to monitor a vista host in cacti and make snmp agent working?

Thanks
Last edited by djmanou on Fri Aug 17, 2007 10:24 am, edited 2 times in total.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I have and its exactly the same as Windows 2003. Make sure you specify a public community and allowed hosts, in the snmp service.
jauhari
Posts: 3
Joined: Mon Jul 30, 2007 3:25 am
Contact:

Post by jauhari »

BSOD2600 wrote:I have and its exactly the same as Windows 2003. Make sure you specify a public community and allowed hosts, in the snmp service.
How to specify a public community and allowed hosts? and this setting is on Windows or on My Cacti Server?

Thanks
djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

Post by djmanou »

I checked the configuration of the snmp agent. The public community is declared and all hosts are allowed to communicate.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP agent not responding in Vista

Post by BSOD2600 »

djmanou wrote:I launched a snmpwalk command on the vista station and get a timeout response
If snmp doesn't work locally, then either the service isn't properly set up (you say it is) or a firewall / AV is blocking the snmp traffic.
djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

Post by djmanou »

I desactivated the windows vista integrated firewall and launched the following command locally:

snmpwalk -c public -v 1 127.0.0.1
=>Timeout: No Response from 127.0.0.1

On another windows xp host i launched the same command and it works!!!

SNMPv2-MIB::sysDescr.0 = STRING: Hardware: x86 Family 6 Model 8 Stepping 0 AT/AT
COMPATIBLE - Software: Windows 2000 Version 5.1 (Build 2600 Uniprocessor Free)
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.311.1.1.3.1.1
SNMPv2-MIB::sysUpTime.0 = Timeticks: (9224934) 1 day, 1:37:29.34
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: XP2200
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 79
...

SNMP agent have the same configuration on the 2 machines

Does anybody can reproduce the same test on a vista host?

Thanks a lot
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

run: netstat -a from the commandline. do you see port 161 listening?
djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

Post by djmanou »

Here's an extract of the result of the netstat -a command

Proto Adresse locale Adresse distante
djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

Post by djmanou »

Here's an extract of the result of the netstat -a command

UDP 0.0.0.0:123 *:*
UDP 0.0.0.0:161 *:*
UDP 0.0.0.0:162 *:*

Only TCP protocols are in state LISTENING.

I compared the results with an XP Host working in cacti and the the result of netstat -a is the same for snmp protocol.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright, so snmp is installed and listening; good.

Disable the windows firewall and antirvirus (what are you using anyways?). Run: snmpwalk -v 1 -c public 127.0.0.1 system on the Vista machine. Get any data?
djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

Post by djmanou »

Here's the result :

C:\Users\jlecomte>snmpwalk -v 1 -c public 127.0.0.1 system
Timeout: No Response from 127.0.0.1

No more success...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

So you're sure you've created a public community and granted ALL hosts to access it? restarted the service?

What firewall and antivirus are you using?
djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

Post by djmanou »

Public community is declared and all hosts are allowed, i've restarted the service

AV : Nod32
FW : Vista integrated one
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I bet nod32 is blocking snmp. Figure out how to allow it. You might need to allow it in the Vista firewall too.
djmanou
Posts: 12
Joined: Sun Jul 29, 2007 2:12 pm

Post by djmanou »

I momently desactivated NOD32 AV and Vista integrated Firewall
=> I get Timeout response again.

Don't you have a Vista host on which you can reproduce the same test?

Regards.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest