-
Type:
Change Request
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 7.0.22
-
Component/s: Frontend (F), Templates (T)
usr/share/zabbix/ui/app/controllers/CControllerPopupItemTest.php got lot of support of user/lld macros; like snmp_id, username, browser_script and so on, for item properties where macros are supported.
But when using macros for the private and/or public key file fields, in the item definition, it was not possible to test such items from the web interface - testing popup does not present those two fields in the form and therefore does not resolve such macros, passing them on "as is".
To fix it, following change in code may be done:
# Fix macro expansion in SSH items testing popup --- a/ui/app/controllers/CControllerPopupItemTest.php +++ b/ui/app/controllers/CControllerPopupItemTest.php @@ -246,6 +246,14 @@ abstract class CControllerPopupItemTest extends CController { 'http_password' => [ 'support_user_macros' => true, 'support_lld_macros' => true + ], + 'privatekey' => [ + 'support_user_macros' => true, + 'support_lld_macros' => true + ], + 'publickey' => [ + 'support_user_macros' => true, + 'support_lld_macros' => true ] ];