[ZBX-15488] Cannot add trigger Incorrect trigger expression. Host "xyz" does not exist or you have no access to this host. Created: 2019 Jan 22  Updated: 2024 Apr 10  Resolved: 2019 Mar 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 4.0.2
Fix Version/s: 4.0.6rc1, 4.2.0beta2, 4.2 (plan)

Type: Problem report Priority: Minor
Reporter: V Zvyagina Assignee: Miks Kronkalns
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team B
Team: Team B
Sprint: Sprint 48, Jan 2019, Sprint 49 (Feb 2019)
Story Points: 0.25

 Description   

Description:

  1. user have access to templates which rw and to host which read
  2. user can add items in templase
  3. template is linked to a host
  4. when user tries to add or update trigger, error: "cannot add trigger
    Incorrect trigger expression. Host "xyz" does not exist or you have no access to this host."

 

Result:

  • Incorrect trigger expression. Host "xyz" does not exist or you have no access to this host. [triggers.php:363 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CTrigger->update() → CTriggerGeneral->inherit() → CTriggerGeneral->inheritOnHost() → CTriggerGeneral->updateReal() → CTriggerGeneral->implode_expressions() → CApiService::exception() in include/classes/api/services/CTriggerGeneral.php:1365]
     


 Comments   
Comment by Edgar Akhmetshin [ 2019 Jan 22 ]

Hello V Zvyagina,

Thank you for reporting the issue. I confirm this behaviour.

Regards,
Edgar

Comment by Miks Kronkalns [ 2019 Jan 25 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-15488

Comment by Miks Kronkalns [ 2019 Feb 27 ]

Fixed in:

  • 4.0.6rc1 r90263
  • 4.2.0beta2 (trunk) r90264
Generated at Fri Apr 19 22:52:38 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.