Ad Widget

Collapse

Zabbix Sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • credel
    Junior Member
    • Sep 2021
    • 1

    #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 10.25.0.156 -s STI04 -k key.discovery  -o '"[{\"{#REP}\":\'$data.key'\}]"'
    keys are created in zabbix this way

    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?

Working...