There are a host prototypes in SNMP Low Level Discovery for some host. The host prototype creates a hosts without any items. It's possible to link the hosts with some templates but impossible to link SNMPVALUE/SNMPINDEX from parent LLD to connected (by template) items.
For example, I've a Cisco Wi-Fi controller, that returns a list of Wi-Fi spots, and the info about every spot can be getted only from the controller (not from spots). I can create a hosts-spots (every has only one interface - IP address of the controller) from the host prototype. But it's impossible to set a user macros for the prototype (ex. SNMPINDEX/SNMPVALUE). And also it couldn't create items in the hosts-spots, because SNMP items couldn't have an OID with {HOST.HOST} or {HOST.NAME} macros.
I can create items with external check and grab SNMP via external script (linked by {HOST.HOST} or {HOST.NAME} macros), but it's ugly solution.
So what for the host prototypes are needed? Сan I get a working example?
For example, I've a Cisco Wi-Fi controller, that returns a list of Wi-Fi spots, and the info about every spot can be getted only from the controller (not from spots). I can create a hosts-spots (every has only one interface - IP address of the controller) from the host prototype. But it's impossible to set a user macros for the prototype (ex. SNMPINDEX/SNMPVALUE). And also it couldn't create items in the hosts-spots, because SNMP items couldn't have an OID with {HOST.HOST} or {HOST.NAME} macros.
I can create items with external check and grab SNMP via external script (linked by {HOST.HOST} or {HOST.NAME} macros), but it's ugly solution.
So what for the host prototypes are needed? Сan I get a working example?
Comment