[ZBXNEXT-2347] Export inventory data to CSV formated file. Created: 2014 Jun 17  Updated: 2024 Oct 09

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 2.2.3
Fix Version/s: None

Type: New Feature Request Priority: Minor
Reporter: Ron Jerome Assignee: Unassigned
Resolution: Unresolved Votes: 8
Labels: csv, export, inventory, patch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File export-inventories-to-csv.patch     Text File export-inventories-to-csv246.patch     Text File export-inventories-to-csv247.patch     Text File export-inventories-to-csv300.patch     Text File export-inventories-to-csv303.patch     JPEG File zbx_inv_exp.jpg    
Issue Links:
Duplicate

 Description   

Attached is a patch (against v. 2.2.3) which adds the ability to export inventory data to a CSV file. This is modeled on the csv export of events. The patch affects two files: include/views/inventory.host.list.php, (adds an "Export to CSV" button) and hostinventories.php where the actual generation and export of the csv data takes place.



 Comments   
Comment by Ron Jerome [ 2014 Jun 17 ]

I've updated the patch because the previous one wasn't respecting the "Group" page filter selection

Comment by Smolkov Anton [ 2015 Nov 23 ]

Really nice job, Ron.
I've little updated your patch for 2.4.6 zabbix version. I've also added "Host Name" column to export file.

For those how does not know how to apply patch:
1)Copy patch file to "/usr/share/zabbix" directory;
2)Go to this directory;
3)Run:
patch -p1 < export-inventories-to-csv246.patch

Comment by storex [ 2015 Dec 16 ]

To work filtering 2.4.7 had to change zbx_strtolower on mb_strtolower and zbx_strpos on mb_strpos

Comment by Smolkov Anton [ 2016 Feb 19 ]

Updated for 3.0

Comment by Aleksandr Ljutsko [ 2017 Mar 03 ]

For 3.2.4 I having trouble with inventory.host.list.php when applying patch for 3.0.3 version, so it didn`t patched. With hostinventories.php where`s no problem.

Comment by Dmitry Verkhoturov [ 2017 Mar 20 ]

Hello, everyone!

I've added your patches for 2.4 and 3.0 to https://github.com/zabbix/zabbix-patches - now it could be applied easily with command-line tool.
3.0 patch was not applied well into 3.0.9 and I had to alter last part slightly, but I have no ability to test it — if I've done it wrong, please write me.

Generated at Sat Mar 15 07:26:50 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.