- alert.png (2.55 KiB) Viewed 5859 times
MAILER WARNING: Mail failed from...
Moderators: Developers, Moderators
- camerabob
- Cacti User
- Posts: 386
- Joined: Fri Feb 10, 2017 2:45 pm
- Location: Long Island, New York, USA
- Contact:
Re: MAILER WARNING: Mail failed from...
Hover over the small green ? and read. I believe you need to add email addresses here.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4
Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4
Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Re: MAILER WARNING: Mail failed from...
I believe that Camera Bob is right. You don't have an email addresses defined against the threshold (and i'm assuming that this isn't a templated threshold). Whilst you do have the administrative email defined for core problems, that isn't used by Threshold and you don't have any lists associated as you'd already mentioned so there are no email address to use. If you feel that using the administrative email address as a back up should be used by Threshold, I'd suggest opening an Enhancement Request for it on GitHub were TheWitness has been making quite a few changes recently.
https://github.com/Cacti/plugin_thold/i ... .md&title=
https://github.com/Cacti/plugin_thold/i ... .md&title=
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: MAILER WARNING: Mail failed from...
No, If what you are telling is like that, there is no sense to have the Notification List field in the threhold template. If you see, I have a notification list added in the warning and in the alert. However this is just an example, I played around with different choices, I've put previoulsly just a single email, later on I added the option to notify the admin user and last one was the notification list and with all of them is exactly the same error, so I don't know if is something related with PHP or related with the integration between thold plugin and cacti of if is a problem of cacti itself. As I told you previously I've been using cacti since long long time ago and I've never faced this issue before.netniV wrote:I believe that Camera Bob is right. You don't have an email addresses defined against the threshold (and i'm assuming that this isn't a templated threshold). Whilst you do have the administrative email defined for core problems, that isn't used by Threshold and you don't have any lists associated as you'd already mentioned so there are no email address to use. If you feel that using the administrative email address as a back up should be used by Threshold, I'd suggest opening an Enhancement Request for it on GitHub were TheWitness has been making quite a few changes recently.
https://github.com/Cacti/plugin_thold/i ... .md&title=
Re: MAILER WARNING: Mail failed from...
Sorry, I mistook the entries against notification lists as being unset, not that the list name was that. What do you have in the notification list then? And what version of Thold are you using?
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: MAILER WARNING: Mail failed from...
No worries, actually thank you for trying to help me. My thold version is tha last one 1.24 and in the notification list is just my email address.netniV wrote:Sorry, I mistook the entries against notification lists as being unset, not that the list name was that. What do you have in the notification list then? And what version of Thold are you using?
Re: MAILER WARNING: Mail failed from...
Well.. I'm gonna close this topic because I found the problem. The PHP version. I installed a fresh cacti copy with PHP7.0 instead of 7.3 and now the notifications are sent properly.
Cheers
Cheers
Re: MAILER WARNING: Mail failed from...
ugh, I've literally just seen the PHP 7.3 email testing bug but it didn't occur to me that it could apply to this as well.
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: MAILER WARNING: Mail failed from...
I have the problem of not being able to send email reports, how do I solve the issue? assume its the same issue as above, if its the PHP version causing the problem, how do i sort this?
When i send a test email i get the response > You must provide at least one recipient email address.
Console > Cacti Settings > General > Automation has email addresses filled in
Console > Cacti Settings > Mail/Reporting/DNS test email addresses filled in, from email filled in
sending email address is google mail.
Cacti is running on Raspberry Pi v3b
this is the error form the log
2020/01/25 16:55:02 - MAILER WARNING: Mail failed via SMTP from 'MyPi <emailaddress@gmail.com>', to '', cc '', Subject 'Cacti System Warning', Error: You must provide at least one recipient email address.
2020/01/25 16:55:02 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php[343]:admin_email(), /lib/functions.php[3230]:send_mail(), /lib/functions.php[3270]:mailer(), /lib/functions.php[3425]:parse_email_details(), /lib/functions.php[3644]:split_emaildetail(), /lib/functions.php[3690]:preg_match(), CactiErrorHandler())
2020/01/25 16:55:02 - ERROR PHP WARNING: preg_match(): Compilation failed: invalid range in character class at offset 29 in file: /usr/share/cacti/site/lib/functions.php on line: 3690
2020/01/25 16:55:02 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php[343]:admin_email(), /lib/functions.php[3230]:send_mail(), /lib/functions.php[3270]:mailer(), /lib/functions.php[3393]:parse_email_details(), /lib/functions.php[3644]:split_emaildetail(), /lib/functions.php[3690]:preg_match(), CactiErrorHandler())
2020/01/25 16:55:02 - ERROR PHP WARNING: preg_match(): Compilation failed: invalid range in character class at offset 29 in file: /usr/share/cacti/site/lib/functions.php on line: 3690
2020/01/25 16:55:02 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php[343]:admin_email(), /lib/functions.php[3230]:send_mail(), /lib/functions.php[3270]:mailer(), /lib/functions.php[3393]:parse_email_details(), /lib/functions.php[3644]:split_emaildetail(), /lib/functions.php[3690]:preg_match(), CactiErrorHandler())
2020/01/25 16:55:02 - ERROR PHP WARNING: preg_match(): Compilation failed: invalid range in character class at offset 29 in file: /usr/share/cacti/site/lib/functions.php on line: 3690
thanks for any help
Ollie
Re: MAILER WARNING: Mail failed from...
I have the same problem.
Any ideard for fix this problem?
thx
Any ideard for fix this problem?
thx
Re: MAILER WARNING: Mail failed from...
Same here - just having my first go at Cacti on an old Raspberry Pi - so version 1.2.2 which seems to be the one in the repos. I can't even send test email - I get 'you must provide at least one recipient email address' despite everything being filled in. I have made sure there is user details on Config>settings>automation as well as "test email" I'm using SMTP and the server pings fine.
Yet still get
I must be missing something so obvious!
the previous log lines are
All I can think of is there is an @ in the USERNAME of the SMTP account
This post seems similar
Is this all link?
Cheers
Eserim
Yet still get
Code: Select all
2020/06/02 21:00:05 - MAILER WARNING: Mail failed via SMTP from 'cacti <axxx@jxxxx.com>', to '', cc '', Subject 'Cacti Test Message', Error: You must provide at least one recipient email address.
the previous log lines are
Code: Select all
2020/06/02 20:55:27 - CMDPHP PHP ERROR WARNING Backtrace: (/settings.php[254]:email_test(), /lib/functions.php[3844]:send_mail(), /lib/functions.php[3270]:mailer(), /lib/functions.php[3425]:parse_email_details(), /lib/functions.php[3644]:split_emaildetail(), /lib/functions.php[3690]:preg_match(), CactiErrorHandler())
2020/06/02 20:55:27 - ERROR PHP WARNING: preg_match(): Compilation failed: invalid range in character class at offset 29 in file: /usr/share/cacti/site/lib/functions.php on line: 3690
2020/06/02 20:55:27 - CMDPHP PHP ERROR WARNING Backtrace: (/settings.php[254]:email_test(), /lib/functions.php[3844]:send_mail(), /lib/functions.php[3270]:mailer(), /lib/functions.php[3393]:parse_email_details(), /lib/functions.php[3644]:split_emaildetail(), /lib/functions.php[3690]:preg_match(), CactiErrorHandler())
2020/06/02 20:55:27 - ERROR PHP WARNING: preg_match(): Compilation failed: invalid range in character class at offset 29 in file: /usr/share/cacti/site/lib/functions.php on line: 3690
2020/06/02 20:55:27 - CMDPHP PHP ERROR WARNING Backtrace: (/settings.php[254]:email_test(), /lib/functions.php[3844]:send_mail(), /lib/functions.php[3270]:mailer(), /lib/functions.php[3393]:parse_email_details(), /lib/functions.php[3644]:split_emaildetail(), /lib/functions.php[3690]:preg_match(), CactiErrorHandler())
2020/06/02 20:55:27 - ERROR PHP WARNING: preg_match(): Compilation failed: invalid range in character class at offset 29 in file: /usr/share/cacti/site/lib/functions.php on line: 3690
This post seems similar
Is this all link?
Cheers
Eserim
Re: MAILER WARNING: Mail failed from...
This issue seems to be resolved in this commit:
https://github.com/Cacti/cacti/commit/f ... 06ff300f41
I using cacti 1.2.2 of debian buster, so edited the file directly.
As with this commit, adding a backslash before the hyphen eliminates the error.
https://github.com/Cacti/cacti/commit/f ... 06ff300f41
I using cacti 1.2.2 of debian buster, so edited the file directly.
As with this commit, adding a backslash before the hyphen eliminates the error.
Who is online
Users browsing this forum: No registered users and 7 guests