Ad Widget

Collapse

New type of information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Milio
    Junior Member
    • Oct 2009
    • 5

    #1

    New type of information

    I'm not sure if this could be done... Anyway, the thing is I need to get via SNMP the IP Address from a remote and agent-less device. I considered the UserParameter option, and it works, but that's not what I really need.

    That device I mentioned before is linked to a template in which I'd like to attach an item that could give me its IP Address. Since Zabbix agent can't be installed on that device, it turns out my best option is to snmpwalk it and get the IP through the right MIB. The problem is I managed to get it working through command line -you know, by writing snmpwalk -v2c -c public OID HostIP....- but I got no results in Zabbix because the OID corresponding to the IP Address returns a value which type is "ipAdEntAddr".

    Obviously, when defining a SNMPv2 item in Zabbix and attaching it to that device, Zabbix tells me that specific OID I told you returns an unknown value. So, I'd like to know if I could define a new type of information -and if so, what changes I should make- so that Zabbix stops recognising "ipAdEntAddr" as such an unknown value.

    Thanks.
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    You managed to get it working through command line -you know, by writing snmpwalk -v2c -c public OID HostIP....- but I got no results in Zabbix because zabbix uses snmpget.

    [root@zabbix]# snmpget -v2c -c public <IP_address> 1.3.6.1.2.1.4.20.1.1
    IP-MIB::ipAdEntAddr = No Such Instance currently exists at this OID
    [root@zabbix]#
    [root@zabbix]# snmpget -v2c -c public <IP_address> 1.3.6.1.2.1.4.20.1.1.223.174.28.133
    IP-MIB::ipAdEntAddr.223.174.28.133 = IpAddress: 223.174.28.133

    You need the 'object identifier'. That's the sequence of numbers that comes after 20.1.1

    Monitoring this will only tell you if that IP address changes. If what you're looking for is a quick way to find what IP addresses are attached to your device, you will most likely need a script running snmpwalk. (or a UserParameter)

    HTH

    MrKen
    Last edited by MrKen; 31-10-2009, 17:55. Reason: manicure
    Disclaimer: All of the above is pure speculation.

    Comment

    Working...