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
keys are created in zabbix this way
Result:
because it contains spaces I can't send information for these keys
how do I not send these spaces through json?
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'\}]"'
Result:
Code:
key.latency.[" SERVER001 "]
how do I not send these spaces through json?
Comment