Reporting issue - multiple recipients
Moderators: Developers, Moderators
Reporting issue - multiple recipients
I've recently set up the reporting function to send a daily e-mail with a few graphs on there. Whilst this overall works, I've got an issue with sending this to multiple recipients. The report always goes to the first contact listed, however it doesn't send to either additional addresses (separated by commas) or to any of the bcc addresses. I've tried various combinations of this and the cacti logs only show the first address being sent to, as does the mail server logs. Am I missing something obvious or is this a bug (currently running v1.2.1)?
Re: Reporting issue - multiple recipients
Is this the builtin reporting also known as nectar ?
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Reporting issue - multiple recipients
There have been reports of some special characters causing issues with email addresses. They have been corrected in develop. Are those emails containing special characters?
Before history, there was a paradise, now dust.
Re: Reporting issue - multiple recipients
This is using the built in reporting. There are no special characters in the e-mail addresses (aside from a dash which should be fine).
It sends to the first recipient, but no others. For testing I've entered a second (comma separated) address to the 'to' address box where the first recipient always gets the e-mail and also added one separately to the 'bcc' box. The logs don't even mention these addresses aside from the first one (addresses substituted):
2019/02/15 07:00:06 - MAILER INFO: Mail successfully sent from 'Cacti Monitoring <mail@domain.com>', to 'user@anotherdomain.co.uk', cc '', Subject 'Transit Report'
So user@anotherdomain.co.uk does receive the message, but the second comma separated to address or the bcc adddress do not receive anything nor are they mentioned in the logs
It sends to the first recipient, but no others. For testing I've entered a second (comma separated) address to the 'to' address box where the first recipient always gets the e-mail and also added one separately to the 'bcc' box. The logs don't even mention these addresses aside from the first one (addresses substituted):
2019/02/15 07:00:06 - MAILER INFO: Mail successfully sent from 'Cacti Monitoring <mail@domain.com>', to 'user@anotherdomain.co.uk', cc '', Subject 'Transit Report'
So user@anotherdomain.co.uk does receive the message, but the second comma separated to address or the bcc adddress do not receive anything nor are they mentioned in the logs
Re: Reporting issue - multiple recipients
If you try the following, do you see the correct values?
Code: Select all
select id,enabled,subject,email from reports;
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Reporting issue - multiple recipients
The two main recipients are displayed, but not he bcc:
user2 never receives the report, nor are they in the logs
Code: Select all
MariaDB [cacti]> select id,enabled,subject,email from reports;
+----+---------+--------------------------------+----------------------------------------------+
| id | enabled | subject | email |
+----+---------+--------------------------------+----------------------------------------------+
| 1 | | Test Report | user@anotherdomain.co.uk |
| 2 | | Test Report 2 | user@anotherdomain.co.uk |
| 3 | on | Transit Report | user@anotherdomain.co.uk,user2@anotherdomain.co.uk |
+----+---------+--------------------------------+----------------------------------------------+
3 rows in set (0.00 sec)
Last edited by netniV on Fri Feb 15, 2019 10:19 am, edited 1 time in total.
Reason: Added code formatting.
Reason: Added code formatting.
Re: Reporting issue - multiple recipients
BCC is in the 'bcc' field which we didn't have in the select statement.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Reporting issue - multiple recipients
OK, that makes sense. The recipients are showing in the database correctly though so odd that they are not being logged or e-mailed.
Re: Reporting issue - multiple recipients
Can you open this as a support issue on GitHub and include the select data example, that way we can log and track it.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Reporting issue - multiple recipients
No problem, logged under #2427
Cheers
Cheers
Who is online
Users browsing this forum: No registered users and 0 guests