-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.0.8rc1
-
None
-
DOC S25-W2/3
-
2
Steps to reproduce:
- Add macro {$ENDPOINT} with value https://example.com:8080 to Zabbix server
- Add item net.tcp.service[tcp,9.9.9.9,"\{{$ENDPOINT}.regsub(https://.+:(\d+)$,\\1)}"]
Result:
The item becomes unsupported, the frontend shows "Invalid third parameter."
Logs:
896202:20241224:145807.946 End substitute_simple_macros_impl() data:'{https://example.com:8080.regsub(https://.+:(\d+)$,\\1)}' 896202:20241224:145807.946 End of substitute_key_macros_impl():SUCCEED data:'net.tcp.service[tcp,9.9.9.9,"{https://example.com:8080.regsub(https://.+:(\d+)$,\\1)}"]' 896202:20241224:145807.946 In substitute_simple_macros_impl() data:EMPTY 896202:20241224:145807.946 In substitute_simple_macros_impl() data:EMPTY 896202:20241224:145807.946 In substitute_simple_macros_impl() data:'4s' 896202:20241224:145807.946 End substitute_simple_macros_impl() data:'4s' 896202:20241224:145807.946 End of zbx_prepare_items() 896202:20241224:145807.946 In get_value() key:'net.tcp.service[tcp,9.9.9.9,"{{$ENDPOINT}.regsub(https://.+:(\d+)$,\\1)}"]' 896202:20241224:145807.946 In get_value_simple() key_orig:'net.tcp.service[tcp,9.9.9.9,"{{$ENDPOINT}.regsub(https://.+:(\d+)$,\\1)}"]' addr:'127.0.0.1' 896202:20241224:145807.946 End of get_value_simple():NOTSUPPORTED 896202:20241224:145807.946 Item [Zabbix server:net.tcp.service[tcp,9.9.9.9,"{{$ENDPOINT}.regsub(https://.+:(\d+)$,\\1)}"]] error: Invalid third parameter. 896202:20241224:145807.946 End of get_value():NOTSUPPORTED
Expected:
Proper macro substitution.
- caused by
-
ZBXNEXT-8719 Server side changes to support of .regsub / .iregsub on internal macros
- Closed
- related to
-
ZBX-24970 Macro functions don't work in script item parameters
- Doc. sign-off
- mentioned in
-
Page Loading...