Bug 1142505

Summary: Unable to to mass update trigger dependencies
Product: [Fedora] Fedora EPEL Reporter: Trey Dockendorf <treydock>
Component: zabbix22Assignee: Volker Fröhlich <volker27>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: el6CC: treydock, volker27
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-16 23:13:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to resolve issue none

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.