Skip to content

php error when trigger threshold sendmail  #3380

@yingbaiibm

Description

@yingbaiibm

To Reproduce
Steps to reproduce the behavior:

  1. Create multiple threshold and trigger them to sendmail to user
  2. After trigger, check mail, only receive one mail.
  3. Check Log, error exist and garbled log exist

2020/03/27 04:45:03 - CMDPHP MAILER ERROR Backtrace: (/poller.php[801]:api_plugin_hook(), /lib/plugins.php[74]:api_plugin_run_plugin_hook(), /lib/plugins.php[177]:thold_poller_bottom(), /plugins/thold/includes/polling.php[45]:thold_check_all_thresholds(), /plugins/thold/includes/polling.php[474]:thold_check_threshold(), /plugins/thold/thold_functions.php[2920]:thold_mail(), /plugins/thold/thold_functions.php[5388]:mailer(), /lib/functions.php[3535]:record_mailer_error(), /lib/functions.php[3733]:cacti_debug_backtrace())
2020/03/27 04:45:03 - CMDPHP MAILER ERROR:
2020/03/27 04:45:03 - CMDPHP MAILER ERROR Backtrace: (/poller.php[801]:api_plugin_hook(), /lib/plugins.php[74]:api_plugin_run_plugin_hook(), /lib/plugins.php[177]:thold_poller_bottom(), /plugins/thold/includes/polling.php[45]:thold_check_all_thresholds(), /plugins/thold/includes/polling.php[474]:thold_check_threshold(), /plugins/thold/thold_functions.php[2334]:thold_mail(), /plugins/thold/thold_functions.php[5388]:mailer(), /lib/functions.php[3535]:record_mailer_error(), /lib/functions.php[3733]:cacti_debug_backtrace())
2020/03/27 04:45:03 - CMDPHP MAILER ERROR:

At present, the main body of attachment specified by the mailer function provided by cacti core is PNG itself, but the third-party library phpmailer only supports the local file path. It recognizes the PNG content as a path and directly reports an error

Screenshots
Screen Shot 2020-03-27 at 5 48 55 PM

Desktop (please complete the following information):
rhel8.2 x64
cacti 1.2.10
thold 1.3.4
FF 74

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions