| 1 | # yamllint disable rule:line-length |
| 2 | --- |
| 3 | - id: 'notify-rocketchat' |
| 4 | meta: |
| 5 | name: 'RocketChat' |
| 6 | link: 'https://rocket.chat/' |
| 7 | categories: |
| 8 | - notify.agent |
| 9 | icon_filename: 'rocketchat.png' |
| 10 | keywords: |
| 11 | - RocketChat |
| 12 | overview: |
| 13 | notification_description: | |
| 14 | Send notifications to Rocket.Chat 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 | - The incoming webhook URL as given by RocketChat. You can use the same on all your Netdata servers (or you can have multiple if you like - your decision). |
| 22 | - One or more channels to post the messages to |
| 23 | - Access to the terminal where Netdata Agent is running |
| 24 | configuration: |
| 25 | file: |
| 26 | name: 'health_alarm_notify.conf' |
| 27 | options: |
| 28 | description: 'The following options can be defined for this notification' |
| 29 | folding: |
| 30 | title: 'Config Options' |
| 31 | enabled: true |
| 32 | list: |
| 33 | - name: 'SEND_ROCKETCHAT' |
| 34 | default_value: 'YES' |
| 35 | description: "Set `SEND_ROCKETCHAT` to `YES`" |
| 36 | required: true |
| 37 | - name: 'ROCKETCHAT_WEBHOOK_URL' |
| 38 | default_value: '' |
| 39 | description: "set `ROCKETCHAT_WEBHOOK_URL` to your webhook URL." |
| 40 | required: true |
| 41 | - name: 'DEFAULT_RECIPIENT_ROCKETCHAT' |
| 42 | default_value: '' |
| 43 | description: "Set `DEFAULT_RECIPIENT_ROCKETCHAT` to the channel you want the alert notifications to be sent to. You can define multiple channels like this: `alerts` `systems`." |
| 44 | required: true |
| 45 | detailed_description: | |
| 46 | All roles will default to this variable if left unconfigured. |
| 47 | |
| 48 | The `DEFAULT_RECIPIENT_ROCKETCHAT` can be edited in the following entries at the bottom of the same file: |
| 49 | ```text |
| 50 | role_recipients_rocketchat[sysadmin]="systems" |
| 51 | role_recipients_rocketchat[domainadmin]="domains" |
| 52 | role_recipients_rocketchat[dba]="databases systems" |
| 53 | role_recipients_rocketchat[webmaster]="marketing development" |
| 54 | role_recipients_rocketchat[proxyadmin]="proxy_admin" |
| 55 | role_recipients_rocketchat[sitemgr]="sites" |
| 56 | ``` |
| 57 | examples: |
| 58 | folding: |
| 59 | enabled: true |
| 60 | title: '' |
| 61 | list: |
| 62 | - name: 'Basic Configuration' |
| 63 | folding: |
| 64 | enabled: false |
| 65 | description: '' |
| 66 | config: | |
| 67 | #------------------------------------------------------------------------------ |
| 68 | # rocketchat (rocket.chat) global notification options |
| 69 | |
| 70 | SEND_ROCKETCHAT="YES" |
| 71 | ROCKETCHAT_WEBHOOK_URL="<your_incoming_webhook_url>" |
| 72 | DEFAULT_RECIPIENT_ROCKETCHAT="monitoring_alarms" |
| 73 | troubleshooting: |
| 74 | problems: |
| 75 | list: [] |