Using latest 2.90.1 express on CentOS 6 (with it's php 5.3) with Cacti 0.8.8h from EPEL repo.
The "Add graphs to report" button doesn't work.
I am able to generate a quick report with using the "Create PDF Report" button.
This is what happens when I press the "Add graphs to report" button in the php log:
Code: Select all
Jun 13 19:53:19 npls4 httpd: PHP Notice: Undefined index: dsstats_name in /usr/share/cacti/plugins/CereusReporting/addToGraphReport.php on line 41
Jun 13 19:53:19 npls4 httpd: PHP Notice: Undefined index: ReportId in /usr/share/cacti/plugins/CereusReporting/addToGraphReport.php on line 42
Jun 13 19:53:19 npls4 httpd: PHP Notice: Undefined index: nmid_pdfAddSubLeafs in /usr/share/cacti/plugins/CereusReporting/addToGraphReport.php on line 45
Jun 13 19:53:19 npls4 httpd: PHP Notice: Undefined variable: val in /usr/share/cacti/plugins/CereusReporting/addToGraphReport.php on line 49
Of course this immediately gives the following in Cacti's log:
Code: Select all
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT reportType FROM plugin_nmidCreatePDF_Reports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT MAX(`order`) FROM plugin_nmidCreatePDF_GraphReports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT reportType FROM plugin_nmidCreatePDF_Reports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT MAX(`order`) FROM plugin_nmidCreatePDF_GraphReports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT reportType FROM plugin_nmidCreatePDF_Reports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT MAX(`order`) FROM plugin_nmidCreatePDF_GraphReports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT reportType FROM plugin_nmidCreatePDF_Reports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT MAX(`order`) FROM plugin_nmidCreatePDF_GraphReports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT reportType FROM plugin_nmidCreatePDF_Reports WHERE ReportId="
Jun 13 19:53:19 npls4 Cacti[23428]: CMDPHP: ERROR: SQL Cell Failed!, Error:'1064', SQL:"SELECT MAX(`order`) FROM plugin_nmidCreatePDF_GraphReports WHERE ReportId="
Another few oddities:
- CereusReporting_messages.log is empty, regardless of the level. I do not see any permissions error (and via eye inspection it looks fine), is there a way to set its directory to /tmp (instead of under Cacti's plugins)?
- If I enable "Add availaibility table to tree view", I get "CereusReporting/modules/availability/polling_functions.php was encoded#012with the PHP 5.5 ionCube Encoder and requires PHP 5.5 to be installed." and no graphs displayed when browsing graphs (reminder CentOS 6 with php 5.3).
- I am able to create report by manually adding items from the console -> Manage Reports -> <report> -> Items for this report -> add. however there is a small glitch there too, on the first empty report it immediately shows a broken image under "preview" because of a "Validation error." from the query string: "graph_image.php?local_graph_id=&rra_id=0&view_type=tree&graph_start=1465835727&graph_end=1465839327"
- This is not really a problem but just an eyesore: If I define a report with many empty fields I get multiple undefined variable notices in php:
Jun 13 20:33:10 npls4 httpd: PHP Notice: Undefined variable: s_printHeader in /usr/share/cacti/plugins/CereusReporting/CereusReporting_addReport.php on line 208
Jun 13 20:33:10 npls4 httpd: PHP Notice: Undefined variable: s_printFooter in /usr/share/cacti/plugins/CereusReporting/CereusReporting_addReport.php on line 214
Jun 13 20:33:10 npls4 httpd: PHP Notice: Undefined variable: s_skipHFCoverPage in /usr/share/cacti/plugins/CereusReporting/CereusReporting_addReport.php on line 220
Jun 13 20:33:10 npls4 httpd: PHP Notice: Undefined variable: s_printHeader in /usr/share/cacti/plugins/CereusReporting/CereusReporting_addReport.php on line 278
Jun 13 20:33:10 npls4 httpd: PHP Notice: Undefined variable: s_printFooter in /usr/share/cacti/plugins/CereusReporting/CereusReporting_addReport.php on line 278
Jun 13 20:33:10 npls4 httpd: PHP Notice: Undefined variable: s_skipHFCoverPage in /usr/share/cacti/plugins/CereusReporting/CereusReporting_addReport.php on line 279
- I had to disable the CSRF in Cacti as the plugin didn't work with it.
Hope someone will be able to help me...
Thanks