[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: |
|
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 |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Nov 29 ] |
It was broken in |
Comment by Igor Danoshaites (Inactive) [ 2011 Nov 29 ] |
<Igor> This dev branch tested using Mysql 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 |
Comment by Pavels Jelisejevs (Inactive) [ 2011 Dec 01 ] |
Merged to trunk revision r23661. CLOSED. |