Ad Widget

Collapse

EtherLike-MIB Discovery Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aftab.rashid
    Junior Member
    • Feb 2021
    • 9

    #1

    EtherLike-MIB Discovery Error

    Hi Everyone.

    I'm having the following error on EtherLike-MIB Discovery (net.if.duplex.discovery).
    "cannot accurately apply filter no value received for macro {#SNMPVALUE}"

    How can i resolve this error?

    Regards,
    Aftab Rashid
  • aftab.rashid
    Junior Member
    • Feb 2021
    • 9

    #2
    Hi,
    I have attached the snapshot of error in the attached png file.

    Thanks & regards,
    Aftab Rashid
    Attached Files

    Comment

    • eithor
      Member
      • May 2020
      • 50

      #3
      Hi,

      you do not specify which version you are running. There was a fix/workaround put in place in the standard template "EtherLike-MIB SNMP", it added the below Javascript preprocessing to the discovery. Note that if you have updated Zabbix to a newer version, the templates are not automatically updated and you need to fetch them from the git source (make sure to select the correct branch matching your Zabbix version). In addition to the fix below, I have also added a Filter to the discovery for {#IFTYPE} matching "6" (ethernet). Then you would need to also add ",{#IFTYPE},1.3.6.1.2.1.2.2.1.3" to the end of the discovery OID.

      try {
      var data = JSON.parse(value);
      }
      catch (error) {
      throw 'Failed to parse JSON of EtherLike-MIB discovery.';
      }
      var fields = ['{#SNMPVALUE}','{#IFOPERSTATUS}','{#IFALIAS}','{#I FNAME}','{#IFDESCR}'];
      data.forEach(function (element) {
      fields.forEach(function (field) {
      element[field] = element[field] || '';
      });
      });
      return JSON.stringify(data);

      Comment

      Working...