Bug 1142505 - Unable to to mass update trigger dependencies
Summary: Unable to to mass update trigger dependencies
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: zabbix22
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Volker Fröhlich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-16 22:47 UTC by Trey Dockendorf
Modified: 2014-09-16 23:13 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-16 23:13:38 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to resolve issue (598 bytes, text/plain)
2014-09-16 22:47 UTC, Trey Dockendorf
no flags Details

Description Trey Dockendorf 2014-09-16 22:47:52 UTC
Created attachment 938251 [details]
Patch to resolve issue

Description of problem:

When I perform a Mass Update on triggers, then select "Add" for trigger dependencies, the popup drop-down for "Group" only contains groups that have monitored hosts. All templates are in their own Host Group and they are not visible in the pop up.

If I modify "monitored_hosts=1" to "monitored_hosts=0" , and execute that java script in a javascript console, the popup produced contains all host groups in the "Group" dropdown.

Version-Release number of selected component (if applicable):

zabbix-2.2.1-5

How reproducible:

Always

Steps to Reproduce:
1. Checkbox triggers to mass update
2. Select 'Mass Update' from dropdown then click 'Go'
3. Checkbox 'Replace Dependencies'
4. Click "Add"

Actual results:

The dropdown for "Group" does not contain groups that have only templates

Expected results:

The dropdown would contain groups that have triggers

Additional info:

Removing the "monitored_host" parameter from the Javascript that calls to PopUp resolves this.  Based on the HostGroup API documentation, having the "with_triggers=1" parameter is sufficient when mass updating triggers.

Filed upstream: https://support.zabbix.com/browse/ZBX-8769

Comment 1 Trey Dockendorf 2014-09-16 23:12:46 UTC
This appears to be resolved in 2.2.6.


Note You need to log in before you can comment on or make changes to this bug.