Ad Widget

Collapse

Install Zabbix 1.6.4 on Cent OS 5 64bit - Problem with snmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • live2
    Junior Member
    • Nov 2007
    • 9

    #1

    Install Zabbix 1.6.4 on Cent OS 5 64bit - Problem with snmp

    Hello

    i have install Zabbix on my Cent OS Server.
    to install zabbix i found a Script on http://blog.brendon.com/unix/install...-the-easy-way/

    zabbix is now running and i install a zabbix client on windows. Windows reports data perfectly. But i have a problem to connect SNMP Devices.

    Switches, Firewall, ... @ the webinterface i see this message "Error doing snmp_open()"

    in zabbix server log file i found this
    12118:20090412:021739 Item [Linksys Switch OG1:ipReasmFails] error: Error doing snmp_open()
    getaddrinfo: Name or service not known



    can everyone here help me?

    -------------------------------------------------------
    Installed Packages
    Name : net-snmp
    Arch : x86_64
    Epoch : 1
    Version: 5.3.2.2
    Release: 5.el5
    Size : 2.8 M
    Repo : installed
  • Kerrygeek
    Senior Member
    • Dec 2008
    • 115

    #2
    This is similar to mine, I'm running 1.6.2 on CentOS 5.2 and using SNMP exclusively except for the ping checks. I hate to ask about the simple things but have you tried running snmpwalk against one of the devices you're getting the error message about? And, are you sure the community string is correct? For example, if you're looking at a switch or router and it has an ACL on it you might not be able to get to it until you change the ACL.

    Again, I hope I'm not insulting you by asking the easy questions first, if so, I'm sorry...

    Try this from the zabbix machine:
    snmpwalk -v1 -c<community string> <name or ip address>
    and see if you get a response. If that works, we'll go from there. If not, you don't have access to snmp on that device.

    Good luck, post back with what you find.

    Kerry

    Comment

    • live2
      Junior Member
      • Nov 2007
      • 9

      #3
      i have now install a second server with ubuntu and zabbix for check the snmp function is ready on my switch.

      on both server the i have a long result list with "snmpwalk -v 2c -c public 192.168.22.50"

      Code:
      SNMPv2-MIB::sysDescr.0 = STRING: 24-Port 10/100/1000 Gigabit Switch w/WebView
      SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.3955.6.1.2024.1
      DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (30681858) 3 days, 13:13:38.58
      SNMPv2-MIB::sysContact.0 = STRING:
      SNMPv2-MIB::sysName.0 = STRING:
      SNMPv2-MIB::sysLocation.0 = STRING:
      SNMPv2-MIB::sysServices.0 = INTEGER: 2
      SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
      SNMPv2-MIB::sysORID.1 = OID: SNMPv2-SMI::enterprises.89.73
      SNMPv2-MIB::sysORDescr.1 = STRING: RS capabilities
      SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
      in zabbix the result of snmp is on ubuntu
      OID [1.3.6.1.2.1.5.13.0] value has unknow type [0x80] -> i think this is a good message...
      on centos
      Error doing snmp_open()

      Comment

      • Kerrygeek
        Senior Member
        • Dec 2008
        • 115

        #4
        Ok, we're making progress. Here's what I do when I want to set up a device. I do the snmpwalk and redirect it to a file. Then I look in that file to find the parameters I want to monitor. You can do the same thing by taking the part you just sent, for example, if you want to check that system description field you would do this:

        snmpget -v1 -c public <ipaddress> sysDescr.0

        and see if you get a response. If so, you can put sysDescr.0 in the snmp oid field when you set it up under Items. You don't have to get the numbers for most OIDs and it's easier to read. You can do the same thing by putting the numbers for the OID in place of sysDescr.0 but the English version is easier to deal with than a long string of numbers and dots.

        Here's how I do it on a router:

        snmpget -v1 -c <community_string> <ipaddress> ifInOctets.2
        and I get this:
        ifInOctets.2 = Counter32: 193391087


        If that doesn't work, post a screen shot of your Item setup and we'll go from there.

        Good luck!
        Kerry

        Comment

        Working...