Reportula
Reportula copied to clipboard
artisan EmailReport:send
Just curious about the new commands to add to cron: "artisan EmailReport:send DAY/WEEK/MONTH"
I've added the three commands to cron, WEEK and MONTH have yet to run on schedule, but the DAY one should be running every day, but has not produced anything that I can see. The documentation doesn't offer any clues, so what should I be expecting from these commands?
In The Admin section you are able to create which kind of reports you would like to receive in your email. The crontab command will check if there ate any reports created, and if there is, will send i report to the e-mails defined in the admin section.
I've set the reports up in the Admin section, but it still doesn't seem to be working. This morning I got a warning email about www-data not being able to sudo:
hostname : Nov 28 08:28:46 : www-data : user NOT in sudoers ; TTY=unknown ; PWD=/var/www/html/reportula-2.0.10/public ; USER=root ; COMMAND=/bin/echo reload
The message came in at the same time that I was checking the bacula status in Reportula. So, I'm not sure if it has anything to do with the "artisan EmailReport:send" command. I have the daily report cron job set to run at 6am, and as you can see the message came in at around 8:30am, which was when I was checking Reportula. I've added www-data to sudoers to run the /bin/echo command mentioned in the alert. But, I'm not sure what www-data was trying to do, so I'm kind of stabbing in the dark here.