Hello,
I'm running Zabbix 5.0.2, and I've trying to create a custom discovery rule. I tried a very simple test to see how this works:
I'm really at a loss here as to what I'm doing wrong. Any assistance would be appreciated.
I'm running Zabbix 5.0.2, and I've trying to create a custom discovery rule. I tried a very simple test to see how this works:
- I created a discovery rule on a host with key "test.discovery".
- From the Zabbix server itself, I run the following command: zabbix_sender -z 127.0.0.1 -s "testhost" -k test.discovery -o {"{#SITENAME}":"test.com"}
- However, Zabbix gives me the following error message: Invalid discovery rule value: cannot parse as a valid JSON object: invalid object name at: '{#SITENAME}:test.com}'
- [{"{#SITENAME}":"test.com"}]
- "{"{#SITENAME}":"test.com"}"
- "[{"{#SITENAME}":"test.com"}]"
I'm really at a loss here as to what I'm doing wrong. Any assistance would be appreciated.
Comment