Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Feb 23, 2019 11:57 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Reporting issue - multiple recipients
PostPosted: Thu Jan 31, 2019 5:09 am 
Offline

Joined: Thu Jan 31, 2019 4:53 am
Posts: 5
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)?


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Sat Feb 02, 2019 7:38 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2083
Is this the builtin reporting also known as nectar ?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Sun Feb 03, 2019 7:45 am 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 744
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.


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Fri Feb 15, 2019 9:38 am 
Offline

Joined: Thu Jan 31, 2019 4:53 am
Posts: 5
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 <[email protected]>', to '[email protected]', cc '', Subject 'Transit Report'

So [email protected] 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


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Fri Feb 15, 2019 9:54 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2083
If you try the following, do you see the correct values?

Code:
select id,enabled,subject,email from reports;

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Fri Feb 15, 2019 10:05 am 
Offline

Joined: Thu Jan 31, 2019 4:53 am
Posts: 5
The two main recipients are displayed, but not he bcc:

Code:
MariaDB [cacti]> select id,enabled,subject,email from reports;
+----+---------+--------------------------------+----------------------------------------------+
| id | enabled | subject                        | email                                        |
+----+---------+--------------------------------+----------------------------------------------+
|  1 |         | Test Report      | [email protected]                         |
|  2 |         | Test Report 2   | [email protected]                         |
|  3 | on      | Transit Report | [email protected],[email protected] |
+----+---------+--------------------------------+----------------------------------------------+
3 rows in set (0.00 sec)


user2 never receives the report, nor are they in the logs


Last edited by netniV on Fri Feb 15, 2019 10:19 am, edited 1 time in total.
Added code formatting.


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Fri Feb 15, 2019 10:20 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2083
BCC is in the 'bcc' field which we didn't have in the select statement.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Sat Feb 16, 2019 6:11 pm 
Offline

Joined: Thu Jan 31, 2019 4:53 am
Posts: 5
OK, that makes sense. The recipients are showing in the database correctly though so odd that they are not being logged or e-mailed.


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Sun Feb 17, 2019 8:49 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2083
Can you open this as a support issue on GitHub and include the select data example, that way we can log and track it.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Reporting issue - multiple recipients
PostPosted: Mon Feb 18, 2019 12:22 pm 
Offline

Joined: Thu Jan 31, 2019 4:53 am
Posts: 5
No problem, logged under #2427

Cheers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group