[ZBX-8430] saving network discovery rule remove from all actions (Actions->Discovery) at "Discovery check" defined in this network discovery rule Created: 2014 Jul 03 Updated: 2017 May 30 Resolved: 2014 Aug 04 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.2.4 |
Fix Version/s: | 2.3.4 |
Type: | Incident report | Priority: | Critical |
Reporter: | Natalia Kagan | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | actions, networkdiscovery | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix 2.2.4 on CentOS 6.4 |
Issue Links: |
|
Description |
Hi, I create new network discovery rule "my test" with check : Zabbix agent "system.sw.os[name]" Then, define new action : Discovery check = my test: Zabbix agent "system.sw.os[name]" Now, once I just open network discovery rule "my test" and click on SAVE Received value = 1 This start happened after upgrade to v2.2.4 Let me know if you need more details from me. Thanks |
Comments |
Comment by richlv [ 2014 Jul 03 ] |
confirming in trunk r47042. |
Comment by Andrejs Čirkovs (Inactive) [ 2014 Jul 14 ] |
RESOLVED in development branch svn://svn.zabbix.com/branches/dev/ZBX-8430 r47297. |
Comment by Natalia Kagan [ 2014 Jul 15 ] |
Thanks a lot for the quick solution !!! I defined SVN to update from svn://svn.zabbix.com/branches/dev/ZBX-8430, but it bring all the sources and not only the fix. Thanks for the help! |
Comment by richlv [ 2014 Jul 15 ] |
first, the fix has not been fully tested and reviewed yet; |
Comment by Ivo Kurzemnieks [ 2014 Jul 16 ] |
(1) Such string comparison with 'new' shouldn't be on API level, but in frontend. Frontend should unset 'dcheckid' if it is new, but in API we should check not 'druleid', like it was before, but 'dcheckid'. andrewtch Right, RESOLVED in r47357. iivs Good, but let's fix coding style.
REOPENED. andrewtch RESOLVED in r47400. iivs CLOSED. |
Comment by Ivo Kurzemnieks [ 2014 Jul 17 ] |
(2) We discussed this and decided to fix another problem in this issue. andrewtch RESOLVED in r47402.
REOPENED.
RESOLVED in r47498, r47534. iivs Few more things:
REOPENED. iivs Would be better if comment was added why nothing has been changed here since last reopening of this subissue. CLOSED. andrewtch Generally, we should not do such tricks while calling Db::update / Db:delete since these functions are sorting id's internally. |
Comment by Natalia Kagan [ 2014 Jul 17 ] |
Hi, I find another problem in 2.2.4, doesn't work if you define in CONFIGURATION->Actions->Discovery conditions: Received value like test1 work only if you define "OR" or using different type,for example "Received value" and "Discovery check" Could you check this as well ? Thanks |
Comment by Andrejs Čirkovs (Inactive) [ 2014 Jul 17 ] |
Natalia, how do you expect two "Received value like %something%" to work with "AND"? This is the same as asserting that X = 1 AND X = 10, which is a bit impossible. |
Comment by Natalia Kagan [ 2014 Jul 17 ] |
my "Received value" is text, for example, the output : centos,jboss,qa so I create action : Received value like jboss, the operation : Add to "QA Jboss" host group |
Comment by richlv [ 2014 Jul 17 ] |
please report that as a separate issue, thanks |
Comment by Natalia Kagan [ 2014 Jul 17 ] |
done, ZBX-8480 Thanks ! |
Comment by Ivo Kurzemnieks [ 2014 Jul 25 ] |
TESTED |
Comment by Andrejs Čirkovs (Inactive) [ 2014 Jul 28 ] |
CLOSED. Fixed in pre-2.3.3 r47634. |
Comment by Pavels Jelisejevs (Inactive) [ 2014 Jul 29 ] |
(6) Please note this in the API changelog. andrewtch RESOLVED, please see https://www.zabbix.com/documentation/2.4/manual/api/changes_2.2_-_2.4#drule sasha REOPENED "and/or drules" should be removed. We didn't fix it under the issue. andrewtch RESOLVED, please check now. sasha Thanks. CLOSED |
Comment by Alexander Vladishev [ 2014 Aug 07 ] |
Fixed in pre-2.3.4 (trunk) r47901. |