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

Linux Block device discovery: Unsupported

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • None
    • Agent (G), Templates (T)
    • None
    • Server and Proxies at 4.4.4
      active agents at 4.0.16 over the proxies

       

      We have the problem, that some hosts don't get their block devices correctly discovered.

      While /proc/discstats is perfectly gathered with resulting in this value for example:
      {{

      {"values":

      {"sdb":["8","16","sdb","243432","300","30718070","357673","5201007","4333759","123264890","23306442","0","6575400","23662197"],"sda":["8","0","sda","538573","2526","32780828","518642","12925210","2857902","251706738","54360282","0","10264225","54874919"],"sda1":["8","1","sda1","4570","0","372594","2795","181","332","29760","1291","0","2836","4082"],"sda2":["8","2","sda2","2340","2227","118432","1478","2176","33458","285080","47695","0","19659","49172"],"sda3":["8","3","sda3","531398","299","32217554","513557","12922853","2824112","251391898","54311296","0","10253347","54820851"],"sr0":["11","0","sr0","0","0","0","0","0","0","0","0","0","0","0"],"dm-0":["253","0","dm-0","232961","0","18871970","216454","74444","0","595944","943717","0","123358","1160180"],"dm-1":["253","1","dm-1","357","0","49730","341","154954","0","1299736","363688","0","180637","364095"],"dm-2":["253","2","dm-2","4692","0","632978","4975","1134301","0","9509312","2854320","0","1076005","2861010"],"dm-3":["253","3","dm-3","114182","0","9417738","96630","1608259","0","31329848","8783901","0","1839358","8882298"],"dm-4":["253","4","dm-4","220215","0","7356602","295016","4029740","0","85720776","39458612","0","1579004","39775694"],"dm-5":["253","5","dm-5","1308","0","14666","643","715","0","5720","2177","0","1041","2820"],"dm-7":["253","7","dm-7","112668","0","15687226","118332","2884755","0","35087776","14784950","0","1299173","14906569"],"dm-8":["253","8","dm-8","8354","0","182018","5717","9357586","0","150385528","22269743","0","6962027","22284209"],"dm-9":["253","9","dm-9","18794","0","1833202","23011","4280720","0","35831096","14478096","0","2419445","14507899"],"dm-10":["253","10","dm-10","1033","0","127130","1620","425","0","3432","1235","0","839","2855"],"dm-11":["253","11","dm-11","60028","0","8604434","112191","1755821","0","24886528","6355700","0","1406767","6479616"]}

      ,"lld":[{"

      {#DEVNAME}":"sdb"},{"{#DEVNAME}

      ":"sda"},{"

      {#DEVNAME}":"sda1"},{"{#DEVNAME}

      ":"sda2"},{"

      {#DEVNAME}":"sda3"},{"{#DEVNAME}

      ":"sr0"},{"

      {#DEVNAME}":"dm-0"},{"{#DEVNAME}

      ":"dm-1"},{"

      {#DEVNAME}":"dm-2"},{"{#DEVNAME}

      ":"dm-3"},{"

      {#DEVNAME}":"dm-4"},{"{#DEVNAME}

      ":"dm-5"},{"

      {#DEVNAME}":"dm-7"},{"{#DEVNAME}

      ":"dm-8"},{"

      {#DEVNAME}":"dm-9"},{"{#DEVNAME}

      ":"dm-10"},{"

      {#DEVNAME}":"dm-11"}]}}}
       
      Block devices discovery is throwing this:
      Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "\'sdb\'][12]".
      Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "\'sda\'][12]".
      Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "\'sdb\'][13]".
      Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "\'sda\'][13]".



      Not one block device is created. If I test the preprocessing step with the given value it outputs a good result:



      {{[{"{#DEVNAME}

      ":"sdb"},{"

      {#DEVNAME}":"sda"},{"{#DEVNAME}

      ":"sda1"},{"

      {#DEVNAME}":"sda2"},{"{#DEVNAME}

      ":"sda3"},{"

      {#DEVNAME}":"sr0"},{"{#DEVNAME}

      ":"dm-0"},{"

      {#DEVNAME}":"dm-1"},{"{#DEVNAME}

      ":"dm-2"},{"

      {#DEVNAME}":"dm-3"},{"{#DEVNAME}

      ":"dm-4"},{"

      {#DEVNAME}":"dm-5"},{"{#DEVNAME}

      ":"dm-7"},{"

      {#DEVNAME}":"dm-8"},{"{#DEVNAME}

      ":"dm-9"},{"

      {#DEVNAME}":"dm-10"},{"{#DEVNAME}

      ":"dm-11"}]}}

       

      While I modified the template, I already have reimported and tested it with the current one in git:master but it results in the same problem.

            edgar.akhmetshin Edgar Akhmetshin
            rockaut Markus Fischbacher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: