Ad Widget

Collapse

Unable to monitor systemd service with @ symbol in service name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • erasedhammer
    Member
    • Aug 2020
    • 58

    #1

    Unable to monitor systemd service with @ symbol in service name

    Wireguard systemd services contain @ symbol in the service name.

    I am using this custom template: https://github.com/MogiePete/zabbix-...ice-monitoring

    I keep getting the error: systemd.service.status[wg-quick@wg0] [m|ZBX_NOTSUPPORTED] [Special characters "\, ', ", `, *, ?, [, ], {, }, ~, $, !, &, ;, (, ), <, >, |, #, @, 0x0a" are not allowed in the parameters.]

    I tried adding "wg-quick\@wg0" and "wg-quick"@"wg0" but zabbix still does not allow it.

    How do I escape the @ symbol?
  • erasedhammer
    Member
    • Aug 2020
    • 58

    #2
    No one knows anything?

    Comment

    • Hamardaban
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • May 2019
      • 2713

      #3
      in agent config
      UnsafeUserParameters no 0,1 0 Allow all characters to be passed in arguments to user-defined parameters.
      0 - do not allow
      1 - allow
      The following characters are not allowed:
      \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
      Additionally, newline characters are not allowed.

      Comment

      • erasedhammer
        Member
        • Aug 2020
        • 58

        #4
        Originally posted by Hamardaban
        in agent config
        UnsafeUserParameters no 0,1 0 Allow all characters to be passed in arguments to user-defined parameters.
        0 - do not allow
        1 - allow
        The following characters are not allowed:
        \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
        Additionally, newline characters are not allowed.
        Awesome Thanks.

        Comment

        Working...