Ad Widget

Collapse

Agent Active web.page.regexp with credentails fails with special characters

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brambo
    Senior Member
    • Jul 2023
    • 245

    #1

    Agent Active web.page.regexp with credentails fails with special characters

    Zabbix 7.0
    tested with a linux active agent 7.0.11 but it actually seems to be limitation of curl / wget
    I use the following item key which normally works fine
    Code:
    web.page.regexp[https://{$USER}:{$PASSWORD}@{$FQDN},{$PATH},,^{(.*)$,,]
    But when the password contains a exclamation mark ! and or ? it fails. When I build the url by hand and use curl the error message is the same.
    Tips like use \ before the ! doesn't work

    Are there any other options besides using script on the host to pass the basic AUTH details and let it be executed on the host?
    When the agent is on the proxy / zabbix server I know the http agent is a better option but that isn't the situation everywhere.
Working...