Ad Widget

Collapse

Zabbix Sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zago123
    Junior Member
    • May 2021
    • 9

    #1

    Zabbix Sender

    Hi Guys,

    I use zabbix sender for send data for my zabbix server by Zabbix Trapper
    i'm trying to make a discovery rule
    she is working
    but the keys are coming with this space
    and because I have this space I can't send data to this key

    I wrote a powershell script

    I'm creating the items by auto discovery with this command
    passing zabbix sender and json with a variable that changes all the time

    I need help getting these spaces off the key


    Code:
    zabbix_sender -z x.x.x.x -s HOST -k key.discovery -o '"[{"{#REP}":\'$data.key'\}]"'
    keys are created in zabbix this way

    Result:
    Code:
    key.latency.[" SERVER001 "]
    because it contains spaces I can't send information for these keys
    how do I not send these spaces through json?
    Last edited by zago123; 24-09-2021, 17:15.
  • zago123
    Junior Member
    • May 2021
    • 9

    #2
    UP, any for help me?

    Comment

    • splitek
      Senior Member
      • Dec 2018
      • 101

      #3
      Maybe use preprocessing on data:

      replace, trim or javascript preprocessing

      Comment


      • zago123
        zago123 commented
        Editing a comment
        I'll take a look at this and come back with the answers. ty
    Working...