Ad Widget

Collapse

LLD Discovery needs to be able to return MACRO that may contain an "@" symbol

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MrClayPole
    Junior Member
    • Oct 2021
    • 3

    #1

    LLD Discovery needs to be able to return MACRO that may contain an "@" symbol

    I have an LLD discovery rule that sometimes returns values that contains "@" symbol as part of the JSON. example below

    [
    {
    "Binary": "cinder-volume",
    "Host": "servername@storage",
    "Zone": "default",
    "Status": "enabled",
    "State": "up",
    "Updated At": "2022-01-13T11:49:56.000000"
    }
    ]

    Is there any way to escape the "@" symbol so it can be used in item prototypes as I'm currently getting 'Character "@" is not allowed'?
  • Answer selected by MrClayPole at 14-01-2022, 11:45.
    MrClayPole
    Junior Member
    • Oct 2021
    • 3

    Fixed it. I needed to set "UnsafeUserParameters" to "1" in Zabbix agent conf and restart the agent.

    Comment

    • MrClayPole
      Junior Member
      • Oct 2021
      • 3

      #2
      Fixed it. I needed to set "UnsafeUserParameters" to "1" in Zabbix agent conf and restart the agent.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #3
        Intresting... "UnsafeUserParameters" has nothing to do with LLD.. (Allow all characters to be passed in arguments to user-defined parameters).
        Only in case, when your items, created by discovery, are using userparameters...

        Comment

        • MrClayPole
          Junior Member
          • Oct 2021
          • 3

          #4
          Hi, I can see my initial description was not 100% clear. The LLD discovery creates the items correctly but they then fail with above error as when they attempt to run against zabbix agent

          Comment

          Working...