Value should be a JSON object error in Zabbix
I have the following script:- #!/bin/bash echo “{” echo “\”data\”:[” grep -hoR server_name.* /etc/nginx/sites-enabled/|sed ‘s/[^ ]* //’|sed ‘s/.$//’|awk -F”/” ‘{ print “{\”{#URL}\”:\””$1″\”},” }’| head -c -2 echo “]” echo “}” This is set up as a UserParameter on the client UserParameter=url.discovery[*],/etc/zabbix/scripts/urls.sh and gives results such as { “data”:[ {“{#URL}”:”example.com”}] } I then have a discovery … Read more