ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-7578

Template Import fail with Undefined variable: graph [conf.import.php:130 → CConfigurationImport->import()

    Details

    • Type: Incident report Incident report
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.2rc1, 2.3.0
    • Component/s: Frontend (F), Server (S)
    • Labels:
    • Environment:
       FreeBSD 9.2 4GB RAM / 4-core

      Description

      If I want to import a working template v2.0.9, i get this error message:
      Undefined variable: graph [conf.import.php:130 → CConfigurationImport->import() → CConfigurationImport->processGraphs() → CAPIObject->create() → CAPIObject->__call() → czbxrpc::call() → czbxrpc::callAPI() → call_user_func() → CGraphGeneral->create() → CGraph->validateCreate() → CGraph->validateItems() in /usr/local/www/zabbix22/api/classes/CGraph.php:721]
      Cannot add a non-numeric item "RFC1213-MIB::tcpCurrEstab.0" to graph "".

      If i delete this item from this template, a new error message will generate.
      array_flip(): Can only flip STRING and INTEGER values! [conf.import.php:130 → CConfigurationImport->import() → CConfigurationImport->processGraphs() → CAPIObject->create() → CAPIObject->__call() → czbxrpc::call() → czbxrpc::callAPI() → call_user_func() → CGraphGeneral->create() → CGraph->validateCreate() → CGraph->validateItems() → CItem->get() → dbConditionInt() → array_flip() in /usr/local/www/zabbix22/include/db.inc.php:1047]
      No permissions to referred object or it does not exist!

        Activity

        Hide
        Stefan Sabolowitsch added a comment -

        Any chance here to solve this problem ?
        I need this Template for our netscreen devices.

        thx
        Stefan

        Show
        Stefan Sabolowitsch added a comment - Any chance here to solve this problem ? I need this Template for our netscreen devices. thx Stefan
        Hide
        Eduards Samersovs (Inactive) added a comment -

        Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7578

        Show
        Eduards Samersovs (Inactive) added a comment - Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7578
        Hide
        Stefan Sabolowitsch added a comment - - edited

        Eduards, thanks for patching.
        But can i use only this ZBX-7578-frontend on my v2.2.1 Version and not this complete ZBX-7578-2.3.0 Alpha ?

        Eduards Samersovs Yes, it will be fixed in 2.2.2rc1 and trunk

        Show
        Stefan Sabolowitsch added a comment - - edited Eduards, thanks for patching. But can i use only this ZBX-7578 -frontend on my v2.2.1 Version and not this complete ZBX-7578 -2.3.0 Alpha ? Eduards Samersovs Yes, it will be fixed in 2.2.2rc1 and trunk
        Hide
        Stefan Sabolowitsch added a comment -

        also in rev41348 2.2.2.rc1 or wait until 12:00UTC to next build

        Show
        Stefan Sabolowitsch added a comment - also in rev41348 2.2.2.rc1 or wait until 12:00UTC to next build
        Hide
        richlv added a comment -

        this fix has not been merged to 2.2 branch or trunk- if you would like to test it right away, you would have to check out from svn : https://www.zabbix.org/wiki/Get_Zabbix

        Show
        richlv added a comment - this fix has not been merged to 2.2 branch or trunk- if you would like to test it right away, you would have to check out from svn : https://www.zabbix.org/wiki/Get_Zabbix
        Hide
        Stefan Sabolowitsch added a comment -

        OK, i test now with frontend from svn://svn.zabbix.com/branches/dev/ZBX-7578 with server/agent from rev41348 2.2.2.rc1
        change for testing in defines.inc.php ZABBIX_DB_VERSION from 2030000 to 2020000

        but i get always this error:

         
        Cannot add a non-numeric item "RFC1213-MIB::tcpCurrEstab.0" to graph "Network: RFC1213 - TCP".
        
        Show
        Stefan Sabolowitsch added a comment - OK, i test now with frontend from svn://svn.zabbix.com/branches/dev/ZBX-7578 with server/agent from rev41348 2.2.2.rc1 change for testing in defines.inc.php ZABBIX_DB_VERSION from 2030000 to 2020000 but i get always this error: Cannot add a non-numeric item "RFC1213-MIB::tcpCurrEstab.0" to graph "Network: RFC1213 - TCP" .
        Hide
        Stefan Sabolowitsch added a comment - - edited

        get with this patch this error message:

         
        Cannot add a non-numeric item "RFC1213-MIB::tcpCurrEstab.0" to graph "Network: RFC1213 - TCP".
        

        Eduards Samersovs You can use only numeric items in graphs.

        Show
        Stefan Sabolowitsch added a comment - - edited get with this patch this error message: Cannot add a non-numeric item "RFC1213-MIB::tcpCurrEstab.0" to graph "Network: RFC1213 - TCP" . Eduards Samersovs You can use only numeric items in graphs.
        Hide
        Stefan Sabolowitsch added a comment - - edited

        OK, why this works on v2.0.9 and the export is here successfully ?

        Eduards Samersovs Sorry, non-numeric items cannot be displayed in the graph, so in ZBX-6866 we add a validation on it.

        Show
        Stefan Sabolowitsch added a comment - - edited OK, why this works on v2.0.9 and the export is here successfully ? Eduards Samersovs Sorry, non-numeric items cannot be displayed in the graph, so in ZBX-6866 we add a validation on it.
        Hide
        Oleg Egorov added a comment -

        TESTED

        Show
        Oleg Egorov added a comment - TESTED
        Hide
        Stefan Sabolowitsch added a comment -

        i can now confirm without this non-numeric items this patch will work.
        You can close this ticket.
        thanks for this fast patching here.

        Show
        Stefan Sabolowitsch added a comment - i can now confirm without this non-numeric items this patch will work. You can close this ticket. thanks for this fast patching here.
        Hide
        Eduards Samersovs (Inactive) added a comment -

        Fixed in versions 2.3.0 (trunk) r.41378, 2.2.2rc1 r.41377

        Show
        Eduards Samersovs (Inactive) added a comment - Fixed in versions 2.3.0 (trunk) r.41378, 2.2.2rc1 r.41377
        Hide
        Pavels Jelisejevs (Inactive) added a comment - - edited

        (1) Found a minor API regression. According to the docs, the "color" parameter for graph items must be mandatory. It's currently not and this request works:

        {
            "name": "MySQL bandwidth",
            "width": 900,
            "height": 200,
            "gitems": [
                {
                    "itemid": "23287"
                }
            ]
        }
        

        Eduards Samersovs Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7578

        Pavels Jelisejevs TESTED.

        Show
        Pavels Jelisejevs (Inactive) added a comment - - edited (1) Found a minor API regression. According to the docs, the "color" parameter for graph items must be mandatory. It's currently not and this request works: { "name" : "MySQL bandwidth" , "width" : 900, "height" : 200, "gitems" : [ { "itemid" : "23287" } ] } Eduards Samersovs Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-7578 Pavels Jelisejevs TESTED.
        Hide
        Pavels Jelisejevs (Inactive) added a comment -

        TESTED.

        Show
        Pavels Jelisejevs (Inactive) added a comment - TESTED.
        Hide
        Eduards Samersovs (Inactive) added a comment -

        Fixed in versions 2.3.0 (trunk) r.41399, 2.2.2rc1 r.41398

        Show
        Eduards Samersovs (Inactive) added a comment - Fixed in versions 2.3.0 (trunk) r.41399, 2.2.2rc1 r.41398

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Sabolowitsch
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: