metadata.yaml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # yamllint disable rule:line-length
  2. ---
  3. - id: 'notify-email'
  4. meta:
  5. name: 'Email'
  6. link: ''
  7. categories:
  8. - notify.agent
  9. icon_filename: 'email.png'
  10. keywords:
  11. - email
  12. overview:
  13. notification_description: |
  14. Send notifications via Email using Netdata's Agent alert notification feature, which supports dozens of endpoints, user roles, and more.
  15. notification_limitations: ''
  16. setup:
  17. prerequisites:
  18. list:
  19. - title: ''
  20. description: |
  21. - A working sendmail command is required for email alerts to work. Almost all MTAs provide a sendmail interface. Netdata sends all emails as user netdata, so make sure your sendmail works for local users.
  22. - Access to the terminal where Netdata Agent is running
  23. configuration:
  24. file:
  25. name: 'health_alarm_notify.conf'
  26. options:
  27. description: 'The following options can be defined for this notification'
  28. folding:
  29. title: 'Config Options'
  30. enabled: true
  31. list:
  32. - name: 'EMAIL_SENDER'
  33. default_value: 'netdata'
  34. description: "You can change `EMAIL_SENDER` to the email address sending the notifications."
  35. required: false
  36. - name: 'SEND_EMAIL'
  37. default_value: 'YES'
  38. description: "Set `SEND_EMAIL` to YES"
  39. required: true
  40. - name: 'DEFAULT_RECIPIENT_EMAIL'
  41. default_value: 'root'
  42. description: "Set `DEFAULT_RECIPIENT_EMAIL` to the email address you want the email to be sent by default. You can define multiple email addresses like this: `alarms@example.com` `systems@example.com`."
  43. required: true
  44. detailed_description: |
  45. All roles will default to this variable if left unconfigured.
  46. The `DEFAULT_RECIPIENT_CUSTOM` can be edited in the following entries at the bottom of the same file:
  47. ```conf
  48. role_recipients_email[sysadmin]="systems@example.com"
  49. role_recipients_email[domainadmin]="domains@example.com"
  50. role_recipients_email[dba]="databases@example.com systems@example.com"
  51. role_recipients_email[webmaster]="marketing@example.com development@example.com"
  52. role_recipients_email[proxyadmin]="proxy-admin@example.com"
  53. role_recipients_email[sitemgr]="sites@example.com"
  54. ```
  55. examples:
  56. folding:
  57. enabled: true
  58. title: ''
  59. list:
  60. - name: 'Basic Configuration'
  61. folding:
  62. enabled: false
  63. description: ''
  64. config: |
  65. #------------------------------------------------------------------------------
  66. # email global notification options
  67. EMAIL_SENDER="example@domain.com"
  68. SEND_EMAIL="YES"
  69. DEFAULT_RECIPIENT_EMAIL="recipient@example.com"
  70. troubleshooting:
  71. problems:
  72. list: []