Ad Widget

Collapse

How to configure net-snmp on Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • f.danieli
    Junior Member
    • Apr 2008
    • 8

    #1

    How to configure net-snmp on Zabbix

    Hi,

    I've installed zabbix 2.0 rc2 on ubuntu from sources. All work fine except for snmp items: I can only get information by OID number.

    For example, I want to get information about Windows Hostname (OID 1.3.6.1.2.1.1.5.0). With OID number all it's ok, but if I configure snmp item as sysName.0 no data was returned.

    from command line, if I execute:
    snmpget -v 1 -c public {ipaddress} 1.3.6.1.2.1.1.5.0

    this is the response:
    iso.3.6.1.2.1.1.5.0 = STRING: "myHOSTNAME"

    if I execute:
    snmpget -v 1 -c public {ipaddress} sysName.0
    this is the response:
    sysName.0: Unknown Object Identifier (Sub-id not found: (top) -> sysName)


    Then I've installed net-snmp 5.7.1 follow this link:
    http://www.net-snmp.org/wiki/index.p...Snmp_on_Ubuntu

    and now I can get hostname with
    snmpget -v 1 -c public {ipaddress} sysName.0

    but from zabbix don't work.

    What's the problem? There is any configuration parameter on zabbix_server.conf? There is a guide that explain how to install properly net-snmp and configure it on zabbix?

    Br,

    fabio
  • harmonica
    Senior Member
    • Jan 2009
    • 251

    #2
    Try snmpget -On -v 2c -c public {ipaddress} system.sysName.0

    Comment

    • f.danieli
      Junior Member
      • Apr 2008
      • 8

      #3
      Hi harmonica,

      thank you for your reply.
      I've execute
      snmpget -On -v 2c -c public {ipaddress} system.sysName.0
      and this is the result:
      .1.3.6.1.2.1.1.5.0 = STRING: myHostname

      My problem is with zabbix. Zabbix don't resolve OID number.

      Br,

      fabio

      Comment

      • wikisb
        Member
        • May 2011
        • 64

        #4
        Hi danieli
        i supposed that the items you created are type snmpv1. i also suppose that you are trying it in the same machine that zabbix is installed, because sometimes yo have to specify at snmp.conf wich machines have access to the MIB's, wich are the comunities & all that.
        if you followed the documentation of zabbix, i don't know where else the problem could be.

        Comment

        Working...