I need help figuring out a way to apply Host Discovery logic, using SNMP mibs that have variable object values, depending on the host quantities.
MIB structure is the following:
Example two devices return mib objects with different variables as identifiers for that device
Device 1:
MIB::devName.<first-variable-value.x.y.z>
MIB::devStatus.<first-variable-value.x.y.z>
Device 2:
MIB::devName.<second-variable-value.a.b.c>
MIB::devStatus.<second-variable-value.a.b.c>
If I have more devices, the variable-values will be different for each device (they are not 1,2,3, but rather 101, 203, 224...).
That creates a situation, where I cannot use common logic to write the discovery rule that would be mapped to item prototypes, graphs etc.
My only logic would be to get the mib objects (<first-variable-value.x.y.z> & <second-variable-value.a.b.c>) and store these somehow and then use the stored values as inputs for item prototype queries.
So if I want to query the Device 1 interfaces names, I have to use
MIB::devInterfaceName.<first-variable-value.x.y.z>.0 - first interface
MIB::devInterfaceName.<first-variable-value.x.y.z>.1 - second interface
How could this be done with zabbix?
Zabbix version I'm testing this is 4.4
MIB structure is the following:
Example two devices return mib objects with different variables as identifiers for that device
Device 1:
MIB::devName.<first-variable-value.x.y.z>
MIB::devStatus.<first-variable-value.x.y.z>
Device 2:
MIB::devName.<second-variable-value.a.b.c>
MIB::devStatus.<second-variable-value.a.b.c>
If I have more devices, the variable-values will be different for each device (they are not 1,2,3, but rather 101, 203, 224...).
That creates a situation, where I cannot use common logic to write the discovery rule that would be mapped to item prototypes, graphs etc.
My only logic would be to get the mib objects (<first-variable-value.x.y.z> & <second-variable-value.a.b.c>) and store these somehow and then use the stored values as inputs for item prototype queries.
So if I want to query the Device 1 interfaces names, I have to use
MIB::devInterfaceName.<first-variable-value.x.y.z>.0 - first interface
MIB::devInterfaceName.<first-variable-value.x.y.z>.1 - second interface
How could this be done with zabbix?
Zabbix version I'm testing this is 4.4
Comment