brylant wrote:stupid me... did not set-up export format...
solved. can be removed...
Hi,
I'm trying to enable Auto Exporting (I have scheduled reporting enabled which works fine - reports are generated) but I can't get it working (I think).
The path is writeable by cacti (user that runs runtime.php)
Does exporting need Auto Archiving to be set (I don't have that set)...
Any other idea why it's not working?
Thanks,
No, "Auto-archiving" can be disabled, so let's have a quick check-up for the default settings:
Go to "Console"->"Configurations"->"Settings"->Tab: Reports-> Section: Auto Exporting. Tick checkbox "enabled" and leave export path blank.
Edit your report template and ensure that "Export Path" is empty. Then switch to your report config and check whether "Scheduled Reporting" is enabled.
Choose the file format you want to have under "Auto Generated Exports" and keep your report ID in mind (see URL ...action=report_edit&id=1...).
Using the CLI rerun the report with: "php runtime.php <report_id> -v".
e.g.
Code: Select all
../../../php/bin/php runtime.php 1 -v
The output messages displayed at the end of the calculation process should look similar to these ones:
Code: Select all
02/04/2010 09:40:30 AM - REPORTIT NOTICE: Export folder '/proj/netops/cacti/cacti-0.8.7e/plugins/reportit/exports/1/' does not exist.
02/04/2010 09:40:30 AM - REPORTIT NOTICE: New export folder '/proj/netops/cacti/cacti-0.8.7e/plugins/reportit/exports/1/' created.
02/04/2010 09:40:30 AM - REPORTIT NOTICE: Export folder '/proj/netops/cacti/cacti-0.8.7e/plugins/reportit/exports/1/1/' does not exist.
02/04/2010 09:40:30 AM - REPORTIT NOTICE: New export folder '/proj/netops/cacti/cacti-0.8.7e/plugins/reportit/exports/1/1/' created.
02/04/2010 09:40:30 AM - PLUGIN: Poller[0] REPORTIT STATS: ID:1 Time:1.1 Reports:1 Emails:0 Exports:1
So the report has been exported to /reportit/exports/1/1/ (/reportit/exports/<template_id>/<report_id>/).
Code: Select all
-rw-rw---- 1 cacti cacti 32826 Feb 4 09:40 2010-02-03_2010-02-03.xml
Best regards
-Andreas-