SNMP error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
abefroman99
Posts: 1
Joined: Wed Jan 21, 2009 5:26 pm

SNMP error

Post by abefroman99 »

Hi,

I installed cacti for the first time and I am getting a "SNMP error" when trying to view graphs.

What can I do to troubleshoot that?

Should this be saying Open?
# nmap -sS xx.xx.yy.yy -p161
Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2009-01-21 16:43 CST
Interesting ports on xx.xx.yy.yy:
PORT STATE SERVICE
161/tcp closed snmp


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

Post by gandalf »

Yep. Please see 1st link of my sig for setup instructions and more
Reinhard
abefroman
Posts: 10
Joined: Sun Aug 12, 2007 7:10 pm

Post by abefroman »

Thanks!

I was actually testing tcp, not udp, when I test udp, it say its open:
# nmap -sU xx.xx.xx.xx -p161

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2009-01-22 19:02 CST
Interesting ports on xx.xx.xx.xx:
PORT STATE SERVICE
161/udp open|filtered snmp

Nmap run completed -- 1 IP address (1 host up) scanned in 0.335 seconds

I looked through your link, looked through the faq, tried a couple things, but it is still giving SNMP error.

Is there anyway to get more details than "SNMP error"?

I have my community string set as "public"

When it says "SNMP error" is it almost always a problem with the community string?

This is what I have in running-config on my switch
access-list 2 permit xx.xx.xx.xx
snmp-server community public RO 2
snmp-server enable traps vtp
snmp-server host xx.xx.xx.xx version 2c public

where xx.xx.xx.xx is the IP of my cacti server

Do you know what could be wrong?

Is there a way to test an SNMP read from the command line?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yep. Use

Code: Select all

snmpwalk -c <community> -v 1 <host> system
If the device does not like v1, use v2c instead. Again, see SNMP setup instructions at first link of my sig. It's all there
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests