Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21941

[Zabbix] [Template] [Netapp ADFD A700 HTTP] Disk discovery don't work if disk is not linked to a cluster

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      Steps to reproduce:

      1. Apply template to a actual node
      2. Wait.... javascript issue on discovery "Disk discovery"

      Result:

      Javacript issue when disk is not linked to a cluster (field node.name is not present)

      Expected:
      Disk is skipped

       

      Solution :

       

      var result = [];

      JSON.parse(value).records.forEach(function (disk) {
          if (typeof disk.name !== 'undefined' && typeof disk.node !== 'undefined' && typeof disk.node.name !== 'undefined') {
             result.push({"

      {#DISKNAME}

      ": disk.name, "{#NODENAME}": disk.node.name});
          }
      });

      return JSON.stringify(result);

      To avoid add data when name, node or node.name is not populated

            zit Zabbix Integration Team
            christophew Christophe W
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: