OPNsense Forum

English Forums => Development and Code Review => Topic started by: hsadeghpour on November 19, 2019, 02:20:16 pm

Title: Sensei Daily Mail Reports
Post by: hsadeghpour on November 19, 2019, 02:20:16 pm
Hello everyone,

Recently, I've deployed OPNsense and then added sensei to have a overlook at the BW usage and users usage via captive portal. Everything looks fine and it works when I check the reports from Sensei Dashboard, however I've configured to get daily mails about the reports from sensei but first night I've got the email from my server and the mail content was "Scheduled reports could not be generated. Probably elasticsearch service is not running or not working properly. Please check elasticsearch service manually." don't know really what causes the problem.

Could anyone please guide me?

Thanks in advance
Title: Re: Sensei Daily Mail Reports
Post by: mb on November 19, 2019, 08:01:41 pm
Hi @hsadeghpour,

Are you using Mongodb or Elasticsearch as the database backend? Which one did Sensei choose for you?

If it is Mongo, we are aware of a problem which will get fixed with the new release (1.2). This will ship this week.

If not, run this command and see what it says:

Code: [Select]
# /usr/local/opnsense/scripts/OPNsense/Sensei/scheduled_reports.sh
Title: Re: Sensei Daily Mail Reports
Post by: hsadeghpour on November 20, 2019, 07:18:37 am
Hi @mb

Thank you for your reply.
It's using Mongodb for it's database, however I've executed the command which you mentioned and again it sent me the mail with "Scheduled reports could not be generated. Probably elasticsearch service is not running or not working properly. Please check elasticsearch service manually." content.

Thank you
Title: Re: Sensei Daily Mail Reports
Post by: mb on November 20, 2019, 06:48:23 pm
Hi @hsadeghpour,

Thanks for the reply. Yes, just as I guessed, this is related to the Mongodb issue. This is fixed in the upcoming 1.2 release which will ship this week.
Title: Re: Sensei Daily Mail Reports
Post by: hsadeghpour on November 21, 2019, 07:17:55 am
Thank you @mb  ;)
Title: Re: Sensei Daily Mail Reports
Post by: mb on November 22, 2019, 01:00:25 am
All welcome :)