I've been using zabbix for a couple of years (since 3.4.1, now 5.2), including working with IPMI related things, but there is one thing that has always stumped me. It makes me think I am missing something obvious.
Adding IPMI interfaces to hosts.
I have my discovery rules, and actions, and they are creating hosts, filling in the discovered IP address, hostnames, adding the relevant templates, and hostgroups.
How do I automatically add IPMI interfaces to 100s of host entries, either the existing ones, or new ones as they are discovered/actioned into existence.
I know they can be done manually, that's not useful for 100, let alone the upcoming thousand we are adding.
I did write a python script that talked to the zabbix API, and created IPMI interfaces for entries (based upon regexp/substitution applied to the default host Interface), but our environment has become a lot more complicated, so I'm revisiting this again, to hopefully discover what I don't know.
The internal item, zabbix[host,discovery,interfaces], seems to only tell me what I've configured in to a host, and even then I don't see how to get that value into an IPMI interface entry for a host.
Are people adding IPMI interfaces?
Are they adding them to existing host entries, or into new hosts of their own?
Surely not everyone is writing their own scripts to handle this.
It feels like a big lack in zabbix, which in turn makes me think, what did I miss?
The closest thing I can think of today is to extract the IP address of the IPMI interface with a custom userparameter based on 'ipmitool lan print', to add that to the host inventory via OOB.IP , then put the macro {$INVENTORY.OOB.IP} into the IPMI Interface field. Of course even that needs my script to create/update the interface.
Adding IPMI interfaces to hosts.
I have my discovery rules, and actions, and they are creating hosts, filling in the discovered IP address, hostnames, adding the relevant templates, and hostgroups.
How do I automatically add IPMI interfaces to 100s of host entries, either the existing ones, or new ones as they are discovered/actioned into existence.
I know they can be done manually, that's not useful for 100, let alone the upcoming thousand we are adding.
I did write a python script that talked to the zabbix API, and created IPMI interfaces for entries (based upon regexp/substitution applied to the default host Interface), but our environment has become a lot more complicated, so I'm revisiting this again, to hopefully discover what I don't know.
The internal item, zabbix[host,discovery,interfaces], seems to only tell me what I've configured in to a host, and even then I don't see how to get that value into an IPMI interface entry for a host.
Are people adding IPMI interfaces?
Are they adding them to existing host entries, or into new hosts of their own?
Surely not everyone is writing their own scripts to handle this.
It feels like a big lack in zabbix, which in turn makes me think, what did I miss?
The closest thing I can think of today is to extract the IP address of the IPMI interface with a custom userparameter based on 'ipmitool lan print', to add that to the host inventory via OOB.IP , then put the macro {$INVENTORY.OOB.IP} into the IPMI Interface field. Of course even that needs my script to create/update the interface.