Cacti / plugin_gexport

Cacti Graph Export Plugin
GNU General Public License v2.0
12 stars 9 forks source link

Error thrown on every export #51

Closed godsyn closed 3 years ago

godsyn commented 3 years ago

Error thrown on fresh install of cacti 1.2.17, gexport version 2.0

<!--StartFragment-->
2021-06-10 13:20:08 - EXPORT MASTER STATS: Time:6.64 Exports:1 Exported:1
--
2021-06-10 13:20:08 - EXPORT STATS: ExportID:1  (/var/www/cactiexportsync) ExportDate:2021-06-10_13:20:08  ExportDuration:6.64 TotalGraphsExported:40 MaximumThreads: 15
2021-06-10 13:20:08 - CMDPHP PHP ERROR NOTICE Backtrace:   (
    /plugins/gexport/poller_export.php[107]:graph_export(),  
    /plugins/gexport/functions.php[120]:run_export(),
    /plugins/gexport/functions.php[162]:exporter(),
    /plugins/gexport/functions.php[422]:tree_site_export(),
    /plugins/gexport/functions.php[1921]:export_generate_site_html(),
    /plugins/gexport/functions.php[1824]:get_formatted_data_query_indexes(),
    /lib/data_query.php[1793]:CactiErrorHandler()
)
2021-06-10 13:20:08 - ERROR PHP NOTICE: Undefined index: sort_field  in file: /var/www/cacti/lib/data_query.php  on line: 1793
2021-06-10 13:20:01 - SYSTEM STATS: Time:1.2129 Method:spine  Processes:1 Threads:1 Hosts:12 HostsPerProcess:12 DataSources:23  RRDsProcessed:7

<!--EndFragment-->
netniV commented 3 years ago

This suggests that there was a bad link or damaged graph. Was it exporting a damaged graph?

godsyn commented 3 years ago

Can you walk me through the process for obtaining the debug info you require, please? There are currently only a handful of graphs being exported.

The above error is all that is supplied in the logs, and occurs every export.

On Thu, Jun 10, 2021, 22:18 Mark Brugnoli-Vinten @.***> wrote:

This suggests that there was a bad link or damaged graph. Was it exporting a damaged graph?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Cacti/plugin_gexport/issues/51#issuecomment-859212593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD4GBRTMBRVVLWM3BT5MCLTSFW7LANCNFSM46O6GSXA .

netniV commented 3 years ago

So it turns out that this particular problem is not with your data but an issue in the data_query.php file. This has already been fixed for 1.2.18 that is upcoming in commit cacti/cacti@c5c088d2d