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

1TB for disk maximum setting.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.2.3
    • API (A), Frontend (F)
    • Ubuntu 13.04, Nginx, PHP, Python, Posgresql

      I am creating some graphics via API. And i got error as accident of byte multiplication.
      But it seems this is a severe bug - or i can't see obvious existing solution for this ?

      I noticed that i cannot set maximum value of bytes above 999999999999 Bytes = 931.32 GB which is the Float limit.
      There also is no way to change Graphic max/min to Integer.

      For all items on graph I use Integer, not Float. But graph maximum must be float for it to be comparable on screen view.
      At the moment I use virtual disks below 1TB, but this could change any day.

      Obvious fix would be to allow KB MB GB TB units besides B.
      As of now help/manual is telling me to use B for 1024 times calculations. Am I wrong ?
      If only datatype is changed to Integer, then this same issue will haunt Zabbix at 8388608 TB limit

      Error:

      pyzabbix.ZabbixAPIException: ('Error -32500: Application error., SQL statement execution has failed "INSERT INTO graphs (yaxismax2,name,graphtype,ymin_type2,height,yaxismax,width,show_legend,show_work_period,yaxismin2,ymax_type2,ymin_type,ymax_type,yaxismin,graphid) VALUES (\'449008766025728\',\'_G2_sizes\',\'1\',\'1\',\'200\',\'449008766025728\',\'900\',\'1\',\'0\',\'0\',\'1\',\'1\',\'1\',\'0\',\'1516\')". while sending {\'params\': {\'yaxismax2\': 449008766025728, \'name\': \'_G2_sizes\', \'graphtype\': 1, \'ymin_type2\': 1, \'height\': 200, \'yaxismax\': 449008766025728, \'width\': 900, \'show_legend\': 1, \'show_work_period\': 0, \'gitems\': [{\'itemid\': u\'25391\', \'color\': \'000000\', \'sortorder\': 0, \'yaxisside\': 1, \'calc_fnc\': 4}, {\'itemid\': u\'25389\', \'color\': \'CCFF00\', \'sortorder\': 1, \'yaxisside\': 1, \'calc_fnc\': 4}, {\'itemid\': u\'25439\', \'color\': \'1C4A9E\', \'sortorder\': 2, \'calc_fnc\': 4}, {\'itemid\': u\'25440\', \'color\': \'3872C9\', \'sortorder\': 3, \'calc_fnc\': 4}, {\'itemid\': u\'25441\', \'color\': \'DD844C\', \'sortorder\': 4, \'calc_fnc\': 4}, {\'itemid\': u\'25442\', \'color\': \'EDA46C\', \'sortorder\': 5, \'calc_fnc\': 4}, {\'itemid\': u\'25444\', \'color\': \'5CADAD\', \'sortorder\': 6, \'calc_fnc\': 4}, {\'itemid\': u\'25446\', \'color\': \'B97A6F\', \'sortorder\': 7, \'calc_fnc\': 4}, {\'itemid\': u\'25448\', \'color\': \'4D4D4D\', \'sortorder\': 8, \'calc_fnc\': 4}, {\'itemid\': u\'25450\', \'color\': \'D1B930\', \'sortorder\': 9, \'calc_fnc\': 4}, {\'itemid\': u\'25451\', \'color\': \'AE5C8A\', \'sortorder\': 10, \'calc_fnc\': 4}, {\'itemid\': u\'25452\', \'color\': \'DF93D7\', \'sortorder\': 11, \'calc_fnc\': 4}, {\'itemid\': u\'25537\', \'color\': \'AE5C8A\', \'sortorder\': 12, \'calc_fnc\': 4}, {\'itemid\': u\'25538\', \'color\': \'DF93D7\', \'sortorder\': 13, \'calc_fnc\': 4}, {\'itemid\': u\'25454\', \'color\': \'BD9F83\', \'sortorder\': 14, \'calc_fnc\': 4}, {\'itemid\': u\'25455\', \'color\': \'E2BB91\', \'sortorder\': 15, \'calc_fnc\': 4}, {\'itemid\': u\'25456\', \'color\': \'5FBFDB\', \'sortorder\': 16, \'calc_fnc\': 4}], \'yaxismin2\': 0, \'ymax_type2\': 1, \'ymin_type\': 1, \'ymax_type\': 1, \'yaxismin\': 0}, \'jsonrpc\': \'2.0\', \'method\': \'graph.create\', \'auth\': u\'0e45d9e5efd298c23bd195f0d3aa61ec\', \'id\': 29}', -32500)
      

      PS: ymin_type2 yaxismax2 are my own creation copy paste same as the original ones.
      They are for Right Side graphic min and max.

            Unassigned Unassigned
            smilodon Simon DOe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: