Cacti / plugin_syslog

Syslog Plugin for Cacti
GNU General Public License v2.0
21 stars 16 forks source link

Can not send mail for syslog alert using default From mail user #119

Closed yingbaiibm closed 4 years ago

yingbaiibm commented 4 years ago

1) Add a syslog alert rule and trigger it, make it send mail to a user 2) Error exist in log

2020/03/27 01:35:04 - CMDPHP MAILER ERROR Backtrace: (/plugins/syslog/syslog_process.php[422]:syslog_sendemail(), /plugins/syslog/functions.php[53]:mailer(), /lib/functions.php[3527]:record_mailer_error(), /lib/functions.php[3733]:cacti_debug_backtrace())

2020/03/27 01:35:04 - CMDPHP MAILER ERROR: Invalid address: (From): root@localhost

If does not set From Email Address under Configuration - Settings - Mail/Reporting/DNS, using default from mail user will get this problem

rhel8.2 x64 Cacti 1.2.10 Syslog 2.7 FF 74

TheWitness commented 4 years ago

This is a Cacti issue and will be fixed there.

ddb4github commented 4 years ago

syslog_process.php use default root@localhost like thold Cacti@localhost

TheWitness commented 4 years ago

Pull request would be fine.