[ZBXNEXT-2873] Export Button on "Availability report" Created: 2015 Jul 06  Updated: 2025 Mar 19

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 2.4.5, 5.0.26, 6.0.7
Fix Version/s: None

Type: Change Request Priority: High
Reporter: Leonardo Vendrusculo Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 41
Labels: availabilityreport, csv, export, patch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

PHP


Attachments: Text File report2.patch     File report2.php     File report2php_v303.patch     Text File report2php_v4018.patch     Text File report2php_v44.patch     Text File report2php_v50.patch     Zip Archive zabbix-module-availabilitycsv-6.0.zip     Zip Archive zabbix-module-availabilitycsv-6.4.zip    
Issue Links:
Causes
Duplicate
is duplicated by ZBXNEXT-8842 AVAILAIBILITY REPORT EXPORT TO CSV Closed
Sub-task

 Description   

add an export button on Availability report to export data to a CVS file

In attachment, is a file modified by me, adding this button



 Comments   
Comment by richlv [ 2015 Jul 06 ]

ZBXNEXT-304 is about it service report export

Comment by richlv [ 2015 Jul 06 ]

could you please attach a patch, produced by 'svn diff' or 'diff -u' ?
also, against which version would the patch be ?

Comment by richlv [ 2015 Jul 07 ]

thanks, but could you do "diff -u" - notice the "-u" parameter

Comment by Leonardo Vendrusculo [ 2015 Jul 07 ]

sorry man... I think that now is right.

I'm using version 2.4.5...

Comment by richlv [ 2015 Jul 07 ]

cool, thanks

Comment by Andrei Coada [ 2016 Sep 02 ]

This is the working patch for 3.0.3 and 3.0.4 versions.
See "Attachments" above - report2php_v303.patch

You must create the "temp" directory in the root of your Zabbix frontend and give it the right permissions.

Comment by DarT [ 2017 Mar 24 ]

hello!

Is it possible to correct a patch to works with 3.2 ;>?

Comment by Clearvision Monitoring Team [ 2017 Mar 29 ]

Hello all,
We've tried the report2php_v303.patch under zabbix-web 3.0.8 but unfortunately it doesn't apply anymore.
Even after tried to patch manually, it seems $controls is no longer the way to go ?

Here's the relevant part of code that no longer works:

$controls->addItem(new CSubmit('exportFile', _('Export to CSV')));

And the error on the logs when the line above, and rest of the patch, is applied:

PHP Fatal error:  Call to a member function addItem() on null in /usr/share/zabbix/report2.php on line 180

Is anyone working on this or has any ideas on how to implement this ?
Thank you.

Comment by Flavio de Souza Oliveira [ 2020 Feb 10 ]

Hello all,

There are any chance of this feature to be implemented guys? This will be great!

Thx!

Comment by Goran [ 2020 Feb 28 ]

Hi,

I made a patch that works with version 4.0.18.

After you apply the patch, you have to create a "temp" directory in /usr/share/zabbix and make the apache user the owner of the directory.

Comment by Flavio de Souza Oliveira [ 2020 Mar 02 ]

Thanks Goran! Great!

Comment by Angel Dabov [ 2020 Mar 20 ]

My patches (v4.4 and v5.0) are not saving files in temp dir. Download works in Chrome and IE as well. 

Comment by Leap Cloud Solutions Inc [ 2022 Jul 05 ]

Any update on this? It's been 7+ years since this was requested. We really need the ability to export the availability report.

Comment by Antons Sincovs [ 2022 Aug 17 ]

The ticket has been updated to also include current supported versions 5.0 and 6.0, to draw additional attention of the DEV team.

Comment by Eric [ 2023 Jan 08 ]

This is highly helpful. It's been years since this is first requested. Hopefully there's some attention given to this function.

Comment by Christin von Perbandt [ 2023 Mar 30 ]

Please, please, add a export function for the availability report and a related api function.

Why ?

  • we can get a report for our Customer more easily , we switched from prtg to zabbix but the lack of a availability reporting function (that we can export or send to our customer) is the only downside - our customers wants their reporting back
  • With the API Function, we can export this to Grafana and build some dashboards for our Customer
  • Other Monitoring Solutions have plenty of options for it

Please give us a reply, why this is so behind in the "wishlist" or why this is soo far in the backlog or why this is not an option.
Tis Feature Request is now open for as long as i heard the name Zabbix.

Comment by Tarik [ 2023 Mar 30 ]

There should be more export buttons in Zabbix. Hosts,items,triggers etc.

Comment by Melanie Gajic [ 2024 Jan 30 ]

Could Zabbix help us understand why there is no export button, what's the point of having that feature if it can't be reported?

Comment by Alex Kalimulin [ 2024 Feb 26 ]

Here is an unofficial and unsupported module for this function:

Comment by Dan [ 2024 Jun 03 ]

This ticket has been open since 2015! This is 8 YEARS! I've been hoping for the last year for this to be resolved and still no updates. Can some sort of ETA be added to your ticket so I can tell my executive team when it will be available? I'm fighting tooth and nail from my team moving to another solution so that we can do things like professional reports. Please help me show them that Zabbix is a true commercial solution and not a dev kit.

Thanks

 

Comment by Tarik [ 2024 Jun 03 ]

I don't understand.Is it so hard to create a view from db and export it. 

Comment by Luis Valdebenito [ 2024 Jun 04 ]

Kalimulin how to install the module in an docker environment??, I´m using zabbix/zabbix-web-nginx-mysql:alpine-6.4-latest image to zabbix-frontend.

Comment by Norbert M Haigermoser [ 2024 Jul 19 ]

i testet 6.4 module on a v7 zabbix instance - its working nicely!

thanks!!

i would make some additional work on the module - do you have a git repo where i can make a pull request?

Comment by Norbert M Haigermoser [ 2024 Jul 19 ]

on your zabbix-web container define a volume for /usr/share/zabbix/modules/ and put the module into the local binded directory
worked fine for me

Comment by Luis Valdebenito [ 2024 Aug 26 ]

[email protected] thank you for your help, its worked for me.

Generated at Sat Apr 05 19:57:07 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.