Cacti / plugin_gexport

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

Undefined index: name in file: /cacti/plugins/gexport/functions.php #4

Closed dsclassen closed 7 years ago

dsclassen commented 7 years ago

Seeing this error whenever gexport runs:

2017-03-17 14:31:21 - SYSTEM HMIB STATS: time:5.3800 processes:50 hosts:24 2017-03-17 14:31:21 - ERROR PHP NOTICE in Plugin 'gexport': Undefined index: name in file: /cacti/plugins/gexport/functions.php on line: 1614 2017-03-17 14:31:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/gexport/poller_export.php: 101 graph_export)(/plugins/gexport/functions.php: 118 run_export)(/plugins/gexport/functions.php: 160 exporter)(/plugins/gexport/functions.php: 354 tree_site_export)(/plugins/gexport/functions.php: 1614 CactiErrorHandler)(/lib/functions.php: 4291 cacti_debug_backtrace) 2017-03-17 14:31:21 - ERROR PHP NOTICE in Plugin 'gexport': Undefined index: id in file: /cacti/plugins/gexport/functions.php on line: 1306 2017-03-17 14:31:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/gexport/poller_export.php: 101 graph_export)(/plugins/gexport/functions.php: 118 run_export)(/plugins/gexport/functions.php: 160 exporter)(/plugins/gexport/functions.php: 354 tree_site_export)(/plugins/gexport/functions.php: 1615 export_generate_site_html)(/plugins/gexport/functions.php: 1306 CactiErrorHandler)(/lib/functions.php: 4291 cacti_debug_backtrace) 2017-03-17 14:31:21 - ERROR PHP NOTICE in Plugin 'gexport': Undefined index: id in file: /cacti/plugins/gexport/functions.php on line: 1317 2017-03-17 14:31:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/gexport/poller_export.php: 101 graph_export)(/plugins/gexport/functions.php: 118 run_export)(/plugins/gexport/functions.php: 160 exporter)(/plugins/gexport/functions.php: 354 tree_site_export)(/plugins/gexport/functions.php: 1615 export_generate_site_html)(/plugins/gexport/functions.php: 1317 CactiErrorHandler)(/lib/functions.php: 4291 cacti_debug_backtrace) 2017-03-17 14:31:21 - ERROR PHP NOTICE in Plugin 'gexport': Undefined index: id in file: /cacti/plugins/gexport/functions.php on line: 1457 2017-03-17 14:31:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/gexport/poller_export.php: 101 graph_export)(/plugins/gexport/functions.php: 118 run_export)(/plugins/gexport/functions.php: 160 exporter)(/plugins/gexport/functions.php: 354 tree_site_export)(/plugins/gexport/functions.php: 1615 export_generate_site_html)(/plugins/gexport/functions.php: 1457 CactiErrorHandler)(/lib/functions.php: 4291 cacti_debug_backtrace) 2017-03-17 14:31:21 - ERROR PHP NOTICE in Plugin 'gexport': Undefined index: id in file: /cacti/plugins/gexport/functions.php on line: 1486 2017-03-17 14:31:21 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/gexport/poller_export.php: 101 graph_export)(/plugins/gexport/functions.php: 118 run_export)(/plugins/gexport/functions.php: 160 exporter)(/plugins/gexport/functions.php: 354 tree_site_export)(/plugins/gexport/functions.php: 1615 export_generate_site_html)(/plugins/gexport/functions.php: 1486 CactiErrorHandler)(/lib/functions.php: 4291 cacti_debug_backtrace) 2017-03-17 14:31:22 - EXPORT STATS: ExportID:1 ExportDate:2017-03-17_14:31:22 ExportDuration:6.85 TotalGraphsExported:22 2017-03-17 14:31:22 - EXPORT MASTER STATS: Time:6.85 Exports:1 Exported:1

cigamit commented 7 years ago

Check your sites table. Looks like a few things are missing there. This should not happen unless you deleted a site while the gexport was running, which is unlikely.

dsclassen commented 7 years ago

The cacti-->sites table looks fine.

sites_table

I'm still getting this error. The graphs are exporting, but the constant errors in my cacti.log are annoying.

cigamit commented 7 years ago

That's is so odd. I've added some code. Let me know if the issue continues.

cigamit commented 7 years ago

This should have solved it. I'll close, but if you find otherwise, just update with a comment.