[ZBX-17699] Unsupported item key error on manual script execution when item key is denied by DenyKey Created: 2020 May 11  Updated: 2020 May 15  Resolved: 2020 May 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Documentation (D)
Affects Version/s: 5.0.0rc1
Fix Version/s: 5.0.1rc1

Type: Problem report Priority: Trivial
Reporter: Vladislavs Sokurenko Assignee: Zabbix Development Team
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File llilomelggmfjdnc.png    
Issue Links:
Causes
caused by ZBXNEXT-1085 restrict available checks on the agen... Closed
Story Points: 0.125

 Description   

Steps:
EnableRemoteCommands=1
DenyKey=system.run[*]
Execute global script through frontend

-Unsupported item key.
-Cannot execute script

Expected:
Should be clear that it is forbidden to use this key due to DenyKey setting.

For example:
Item key is not allowed

Another issue:
./bin/zabbix_get -s 127.0.0.1 -k "system.run[echo 2]"

Result:
ZBX_NOTSUPPORTED: Unsupported item key.

Make you think that something is wrong with the key but it is not !



 Comments   
Comment by Vjaceslavs Bogdanovs [ 2020 May 11 ]

This is based on the decisions mentioned in the SPEC of the linked task.

Comment by Vladislavs Sokurenko [ 2020 May 11 ]

Indeed, this is documented here

Generated at Tue Apr 01 15:57:13 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.