Metrics collected by Zabbix can be used not only for historic data analysis and problem detection but they can also be utilized to populate your host inventory.

Keeping track of your host inventory is a necessity in organizations of every size. Using another tool to do that can be costly and cause software bloat and sometimes we may have to resort to populating inventory data manually.

With Zabbix we can utilize our collected metrics and automatically populate our host inventory with them:

  • Collected metrics can be used to populate an inventory field
  • Automated inventory data collection can be mixed with manual inventory input
  • Group and do a count up of hosts based on their inventory values
  • Provide inventory information in your alert messages

Check out the video to learn how to automate inventory collection and present it in multiple views.

How to automate inventory collection and display inventory data:

  1. Navigate to Configuration → Templates
  2. Open the Linux by Zabbix agent template
  3. Open the item Version of Zabbix agent running
  4. In the Populates Host inventory field section select Software Application A
  5. Navigate to Configuration → Hosts
  6. Filter to find your Linux hosts
  7. Press the Mass Update button
  8. Link the Linux by Zabbix agent in Templates → Link templates
  9. Select Automatic Inventory mode under the Inventory tab
  10. Press the Update button
  11. Wait for the metrics to get collected from your hosts
  12. Navigate to Inventory → Overview and Group hosts by Software Application A
  13. Click on the Host Count number
  14. Click on one of the hosts
  15. Click on the Details tab to observe the individual host details
Tips and best practices:
  • Every type of item can be used to populate an inventory field
  • Inventory fields populated by an item will be updated once a new value is collected by Zabbix
  • All data types, except Log, can be used to populate an inventory field
  • A single item can populate only a single inventory field
  • Inventory macros like {INVENTORY.*} can be used in alert messages
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x