Ad Widget

Collapse

no data received for OID, but CLI works fine.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eoinverling
    Junior Member
    • Dec 2008
    • 2

    #1

    no data received for OID, but CLI works fine.

    Hi,

    I've a strange problem, and I assume I'm at fault.

    I'm running 1.6.1 on Ubuntu 8.04 .. and have proxies on other ubuntu servers.

    I'm trying to graph a device, and the particular OID I'm trying to get data from won't work in Zabbix.

    On the CLI I do:-

    snmpget -v1 -c <my-community> <device-IP> <OID>
    SNMPv2-SMI:: <OID> = INTEGER: -51

    which is fine, although the only funny thing about it it ... the result seems to be from a v2 MIB, whereas the command uses "-v1", and won't work with "-v2c"

    Anyway, that looks like it works ... so I try add that to zabbix.
    I add the host, then I add an item to that host

    Description: <anything>
    type: SNMPv1 agent
    SNMP Community: <my-community>
    SNMP OID: <OID>
    port: 161
    key: <OID>
    type: Numeric(int 64bit)

    but I don't receive any data from the device/OID!?

    Is this the correct procedure? Am I missing something? I use the OID for the "key" value, is that correct?

    I'll keep digging ...

    thanks
    E
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    Hi eoinverling,

    As I understand it, the OID should work as the key, but I would replace it with SNMPv2-SMI:: <OID>.

    I usually use things like these for the key:
    ifAlias.4
    tcpConnState.0.0.1825
    etc.

    You should be able to snmpwalk both the OID and the key, and get the same result.

    Some questions:

    1. Is Zabbix configured --with-net-snmp ?

    2. Is there anything in Zabbix_Server.log? Also, look at Conf --> Items, is there an error for this particular item?

    3. Is this host successfully monitoring other snmp items?

    Meanwhile, keep digging....

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • eoinverling
      Junior Member
      • Dec 2008
      • 2

      #3
      MrKen ... thank you very much!

      > You should be able to snmpwalk both the OID and the
      > key, and get the same result.

      ... this should be put in the manual!!

      So, I got it sorted, thank you.

      Another thing I notice, which I didn't have the patients for before. Once I add an item to be graphed, it takes about 5 to 10 minutes (haven't timed it exactly) for the info to populate. I was loosing patients with that before, and assuming it wasn't working.

      I'm delighted now ... cept I've loads of devices to configure!!

      thanks again
      E

      Comment

      Working...