Hi
During discovering I need to get VMware name and mapp this value to IP address which is not available in native Zabbix mechanism. I have in /usr/lib/zabbix/externalscripts some *.json file with all neccessary keys and values. e.g
{
"VMware1" : "111.222.333.444"
}
My question is, it's possible to do in preprocessing step fetch from JavaScript window some external json file, proceed datas and extend original discovered json structure about new macros/data?
e.g:
1. taking in original json dicovered json {#VMname} = "WMware1"
2. including data from /usr/lib/externalscripts/*.json
3. searching value in external json for "VMware1"
4. creating new macro {#VMIP} = "111.222.333.444"
5. sending extend output from preprocessing
6. use {#VMIP} value in Interface field, Inventory and other possible
During discovering I need to get VMware name and mapp this value to IP address which is not available in native Zabbix mechanism. I have in /usr/lib/zabbix/externalscripts some *.json file with all neccessary keys and values. e.g
{
"VMware1" : "111.222.333.444"
}
My question is, it's possible to do in preprocessing step fetch from JavaScript window some external json file, proceed datas and extend original discovered json structure about new macros/data?
e.g:
1. taking in original json dicovered json {#VMname} = "WMware1"
2. including data from /usr/lib/externalscripts/*.json
3. searching value in external json for "VMware1"
4. creating new macro {#VMIP} = "111.222.333.444"
5. sending extend output from preprocessing
6. use {#VMIP} value in Interface field, Inventory and other possible
Comment