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

Configuration -> Discovery -> Operations -> Add to host groups -> update throws "Undefined index" error

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • 2.3.4
    • 2.3.3
    • Frontend (F)
    • Zabbix 2.3.4-48152

      In Configuration -> Discovery -> Operations -> Add to host groups -> update throws "Undefined index" error when you try to go and modify it after you have saved it. Selected several host groups when creating the discovery action. The action saved successfully. Went back to add another host group and get the following error after clicking update then save:

      Undefined index: actionid [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() in /var/www/html/zabbix.cbeyond.net/include/classes/api/services/CAction.php:933]
      Undefined index:  [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() in /var/www/html/zabbix.cbeyond.net/include/classes/api/services/CAction.php:933]
      Undefined index: opconditions [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() in /var/www/html/zabbix.cbeyond.net/include/classes/api/services/CAction.php:1169]
      Argument 2 passed to zbx_array_diff() must be of the type array, null given, called in /var/www/html/zabbix.cbeyond.net/include/classes/api/services/CAction.php on line 1169 and defined [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() in /var/www/html/zabbix.cbeyond.net/include/func.inc.php:850]
      array_diff(): Argument #2 is not an array [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() ? array_diff() in /var/www/html/zabbix.cbeyond.net/include/func.inc.php:854]
      array_diff(): Argument #1 is not an array [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() ? array_diff() in /var/www/html/zabbix.cbeyond.net/include/func.inc.php:857]
      Invalid argument supplied for foreach() [actionconf.php:152 ? CFrontendApiWrapper->update() ? CApiWrapper->__call() ? CFrontendApiWrapper->callMethod() ? CApiWrapper->callMethod() ? CFrontendApiWrapper->callClientMethod() ? CLocalApiClient->callMethod() ? call_user_func_array() ? CAction->update() ? CAction->updateOperations() ? zbx_array_diff() in /var/www/html/zabbix.cbeyond.net/include/func.inc.php:878]
      Error in query [INSERT INTO opgroup (groupid,operationid,opgroupid) VALUES ('3086','78','25')] [Duplicate entry '78-3086' for key 'opgroup_1']
      SQL statement execution has failed "INSERT INTO opgroup (groupid,operationid,opgroupid) VALUES ('3086','78','25')".
      

      If i remove the "add host group" operation completely save and come back i can recreate the host groups without the error. Error only occurs when updating an existing host group operation.

            Unassigned Unassigned
            palmertree Kenneth Palmertree
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: