Ad Widget

Collapse

SNMP Config / Testing help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wayne
    Junior Member
    • Oct 2006
    • 27

    #1

    SNMP Config / Testing help

    Hi guys,
    We are trying to setup Zabbix to monitor one of our main switches. I have enabled SNMP, created the user/community/auth passphrase/priv passphrase on the switch.

    Zabbix is not graphing data. So I figured the next logical step is to check that output on the switch is correct.

    I have tried the following command on the zabbix server:
    snmpwalk -v 3 -c mycommunityname <IP address of switch>

    but I receive the following error:
    snmpwalk: Failure in sendto (Operation not permitted)


    I have googled the error, but everything I came up with wasn't in English
    Does anyone have experience setting up SNMP monitoring that could help me out just a bit?

    Any help is appreciated!
  • johanpre44
    Member
    • Apr 2006
    • 40

    #2
    Using snmpwalk utility to test SNMP

    I'm using SNMP, but only versions 1 and 2c. When I test SNMP I use the following command:
    snmpwalk -Os -v 1 -c <community_string> <host> [section]

    <community_string> = your community string, this is usually public
    <host> = your host name or ip
    [section] = This is optional and i usually use "system" or "interfaces",
    basically this just cuts down on the ammount of info returned
    -v 1 = the version, can be changed to "-v 2c", but with "-v 3" you need a username/password or something (think it with this you need the -A, -a, -u, -x, -X switches - see "man snmpcmd" for more help - I don't have any v3 SNMP to test this with)

    If I want to get and output that I can use in zabbix I will use
    snmpwalk -Of -v 1 -c <community_string> <host> [section] | cut -d "." -f 8-50

    the output:

    interfaces.ifNumber.0 = INTEGER: 9
    interfaces.ifTable.ifEntry.ifIndex.1 = INTEGER: 1
    interfaces.ifTable.ifEntry.ifIndex.2 = INTEGER: 2

    The part before the "=" can then be used straight in zabbix

    Also check your zabbix_server log file, I forgot to compile with SNMP support and only noticed when I had a look at the log file...

    I prefer to stick to SNMP v1 because most of the Cisco routers and 3com switches on my network supports it. I also cannot see the difference between v1 and 2c when I do and snmpwalk, the informations returned is the same for both.

    Comment

    • Wayne
      Junior Member
      • Oct 2006
      • 27

      #3
      Awesome. Thank you for the info, I will be doing some testing on that today and see what we can come up with.

      Thanks!

      Comment

      Working...