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

Low level discovery rules can not be created in zabbix 1.9.8

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.8 (beta)
    • Fix Version/s: 1.9.9 (beta)
    • Component/s: Frontend (F)
    • Labels:

      Description

      It is impossible to add Discovery rule. After filling in required details and clicking save, following error message is displayed:

      ERROR: Cannot add discovery rule

      Incorrect arguments passed to function

      It seems that variable $item_db_fields in the api/classes/class.citemgeneral.php function checkInput is declared in such a way as to prevent creating items without declared value_type.

      Workaround is to add line

      'value_type' => '0',

      after the line 231 ('filter' => $filter,) in file host_discovery.php.

        Issue Links

          Activity

          Hide
          Igor Danoshaites added a comment - - edited

          Confirmed this problem. The same error "ERROR: Cannot add discovery rule. Incorrect arguments passed to function [CDiscoveryRule.create -> CDiscoveryRule.checkInput -> CItemGeneral.checkInput]" appears also in the latest trunk revision #23583.

          This was NOT broken by fixing issue ZBX-3510 in rev #23147.

          Show
          Igor Danoshaites added a comment - - edited Confirmed this problem. The same error "ERROR: Cannot add discovery rule. Incorrect arguments passed to function [CDiscoveryRule.create -> CDiscoveryRule.checkInput -> CItemGeneral.checkInput] " appears also in the latest trunk revision #23583. This was NOT broken by fixing issue ZBX-3510 in rev #23147.
          Hide
          Pavels Jelisejevs added a comment -

          It was broken in ZBX-3625 r23438. RESOLVED.

          Show
          Pavels Jelisejevs added a comment - It was broken in ZBX-3625 r23438. RESOLVED.
          Hide
          Igor Danoshaites added a comment - - edited

          <Igor> This dev branch tested using Mysql DB, it is working as desired.
          <Igor> Dev branch ZBX-4403 tested also with PostgreSQL DB, it is working as desired.

          Show
          Igor Danoshaites added a comment - - edited <Igor> This dev branch tested using Mysql DB, it is working as desired. <Igor> Dev branch ZBX-4403 tested also with PostgreSQL DB, it is working as desired.
          Hide
          Alexander Vladishev added a comment - - edited

          (1) The value type of the discovery rule always should be ITEM_VALUE_TYPE_TEXT.

          <pavels> RESOLVED
          <sasha> CLOSED

          Show
          Alexander Vladishev added a comment - - edited (1) The value type of the discovery rule always should be ITEM_VALUE_TYPE_TEXT. <pavels> RESOLVED <sasha> CLOSED
          Hide
          Pavels Jelisejevs added a comment -

          Merged to trunk revision r23661.

          CLOSED.

          Show
          Pavels Jelisejevs added a comment - Merged to trunk revision r23661. CLOSED.

            People

            • Assignee:
              Pavels Jelisejevs
              Reporter:
              ennerr
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: