I've wrote a script that list the objects I want to monitor via SNMP.
I execute it in a template on a discovery rule by external check.
Problem, I don't known what I should return to zabbix at the end of my script.
Should I just do a 1 line print on Json format that should be like that ?
print "{"jsonrpc": "2.0","method": "SOMETHING","data": [{"{#ID}": "1","{#INFORMATION}": "info"},{"{#ID}": "2","{#INFORMATION}": "info"},{....}]";
I execute it in a template on a discovery rule by external check.
Problem, I don't known what I should return to zabbix at the end of my script.
Should I just do a 1 line print on Json format that should be like that ?
print "{"jsonrpc": "2.0","method": "SOMETHING","data": [{"{#ID}": "1","{#INFORMATION}": "info"},{"{#ID}": "2","{#INFORMATION}": "info"},{....}]";
Comment