Hello,
is it possible to implement this in Zabbix:
- I have a host and item(lets say every minute update) with JSON output
- I want to create hosts or update latency items if such hosts already exist
- Hostnames and IPs for the new hosts in DEST.URI
- I want to apply some extra items and triggers to these hosts, for example, ICMP ping, but this ping should be performed from the "ROOT" host because these hosts are not accessible from the Zabbix server
what should I use? JSON preprocessing? Discovery rules? Other things?
Thank you in advance for your answers
is it possible to implement this in Zabbix:
- I have a host and item(lets say every minute update) with JSON output
Code:
{
"jsonrpc": "2.0",
"result": {
"NRSETS": 1,
"RECORDS": [{
"SET": {
"ID": 999,
"TARGETS": [{
"DEST": {
"URI": "sip:1.202.79.67",
"FLAGS": "AP",
"PRIORITY": 0,
"LATENCY": {
"AVG": 0,
"STD": 0,
"EST": 0,
"MAX": 0,
"TIMEOUT": 1481
}
}
}, {
"DEST": {
"URI": "sip:124.89.90.34",
"FLAGS": "AP",
"PRIORITY": 0,
"LATENCY": {
"AVG": 0,
"STD": 0,
"EST": 0,
"MAX": 0,
"TIMEOUT": 1481
}
}
}, {
"DEST": {
"URI": "sip:220.249.100.164",
"FLAGS": "AP",
"PRIORITY": 0,
"ATTRS": {
"BODY": "zabbix-host=synopsys-cn58",
"DUID": null,
"MAXLOAD": 0,
"WEIGHT": 0,
"RWEIGHT": 0,
"SOCKET": null,
"SOCKNAME": null,
"OBPROXY": null
},
"LATENCY": {
"AVG": 0,
"STD": 0,
"EST": 0,
"MAX": 0,
"TIMEOUT": 1481
}
}
}]
}
}]
},
"id": 1541869
}
- Hostnames and IPs for the new hosts in DEST.URI
- I want to apply some extra items and triggers to these hosts, for example, ICMP ping, but this ping should be performed from the "ROOT" host because these hosts are not accessible from the Zabbix server
what should I use? JSON preprocessing? Discovery rules? Other things?
Thank you in advance for your answers
Comment