[ZBX-4403]  Low level discovery rules can not be created in zabbix 1.9.8 Created: 2011 Nov 29  Updated: 2017 May 30  Resolved: 2011 Nov 30

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.9.8 (beta)
Fix Version/s: 1.9.9 (beta)

Type: Incident report Priority: Blocker
Reporter: ennerr Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-4409 Creating discovery rules fails Closed

 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.



 Comments   
Comment by Igor Danoshaites (Inactive) [ 2011 Nov 29 ]

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.

Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 29 ]

It was broken in ZBX-3625 r23438. RESOLVED.

Comment by Igor Danoshaites (Inactive) [ 2011 Nov 29 ]

<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.

Comment by Alexander Vladishev [ 2011 Nov 30 ]

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

<pavels> RESOLVED
<sasha> CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 01 ]

Merged to trunk revision r23661.

CLOSED.

Generated at Thu Apr 25 22:27:57 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.