Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8943

Need DNS (reverse) lookup in javascript and preprocessing

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • None
    • Server (S)
    • None

      Need ability to do DNS and DNS reverse lookups in javascript and in preprocessing (or at least in javascript). This does not currently appear to be possible via the ducktape implementation, or I can't find it. (and ducktape appears to have no network access, so there is no way to import or write a "DNS" function by hand).

       

      During LLD we discover items (such as BGP neighbors) that are IP/IPv6 addresses. We would like to then create items/triggers with titles like "BGP Neighbor <x> status" where <x> is the DNS name of the discovered neighbor. currently <x> must be an IP address. In this case, a "DNS reverse resolve" preprocessing step would be sufficient.

       

      However, we have other cases where an IP (or IPv6) address is derived via javascript from some more complicated result (for example an snmpindex part but not all of which represents an IP address), so it is necessary to also have this capability in javascript.

       

      presumably these functions would just return their input argument should resolution fail or timeout (specifiable? I would think LLD use can tolerate a larger timeout that regular polling use of these functions, if they're available outside of LLD).

       

      I have previously achieved this via external discovery scripts (from the pre 2.0 days), but I'm trying to eliminate those as we transition to newer Zabbix releases.

            wiper Andris Zeila
            xxiii Dave E Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: