1 미디어 타입
원본 보기1 미디어 유형
개요
미디어 유형은 Zabbix에서 알림과 경고를 전송하는 데 사용되는 전달 채널입니다.
미디어 유형은 다음과 같은 전달 방법을 지원합니다:
미디어 유형은 경고 > 미디어 유형에서 관리됩니다. 일부 미디어 유형은 기본 데이터셋에 미리 정의되어 있습니다. 작동시키기 위해서는 매개변수를 세부 조정하기만 하면 됩니다.

미디어 유형이 알림 프로세스 내에서 어떻게 작동하는지 보기 위해, Zabbix에서 최종 사용자에게 알림을 전달하기 위한 세 가지 요구사항을 살펴보겠습니다:
- 알림을 전송하는 액션 작업이 정의되어야 합니다
- 작동하는 미디어 유형이 정의되어야 합니다 (예: SMTP를 사용하여 경고를 전송하는 이메일)
- 사용자 수준의 전달 세부사항 (이메일 주소, 전화번호 등)이 사용자 미디어에 정의되어야 합니다
Media type testing
To test if a configured media type works, click on Test in the media type list.
The testing request will be sent to Zabbix server. Zabbix server will attempt to send an alert using the specified media type and will return the result to frontend. The frontend will wait for the server to return the results. Media type testing has a 65-second timeout by default (configurable in Administration > General > Timeouts).
See also testing details for:
설정
Zabbix 프런트엔드에서 미디어 타입을 생성하려면:
- Alerts > Media types로 이동
- Create media type 클릭
- 폼에 미디어 타입의 매개변수 입력
일부 매개변수는 모든 전송 방법에 공통으로 적용됩니다.

| 매개변수 | 설명 |
|---|---|
| Name | 미디어 타입의 이름입니다. |
| Type | 미디어 타입의 전송 방법을 선택합니다. |
| Description | 미디어 타입에 대한 설명을 입력합니다. |
| Enabled | 미디어 타입을 활성화하려면 체크박스를 선택합니다. |
방법별 특정 매개변수에 대해서는 email, SMS, custom alertscript, 또는 webhook 페이지를 참조하세요.
메시지 템플릿
메시지 템플릿 탭에는 이벤트 유형별(문제, 문제 복구, 탐지 등) 기본 메시지가 포함되어 있습니다.

추가를 클릭하여 기본 메시지를 정의하거나 (편집을 클릭하여 기존 메시지를 업데이트)하세요:

| 매개변수 | 설명 |
|---|---|
| 메시지 유형 | 기본 메시지가 사용될 이벤트의 유형입니다. 각 이벤트 유형에 대해 하나의 기본 메시지만 정의할 수 있습니다. |
| 제목 | 기본 메시지의 제목입니다. 제목에는 매크로가 포함될 수 있습니다. 255자로 제한됩니다. SMS 미디어 유형에서는 제목을 사용할 수 없습니다. |
| 메시지 | 기본 메시지입니다. 데이터베이스 유형에 따라 특정 문자 수로 제한됩니다(자세한 정보는 메시지 전송 참조). 메시지에는 지원되는 매크로가 포함될 수 있습니다. 문제 및 문제 업데이트 메시지에서는 표현식 매크로가 지원됩니다(예: {?avg(/host/key,1h)}). |
기본 메시지는 액션 작업에서 정의된 사용자 정의 메시지가 있을 경우 재정의됩니다.
알림에 기본 메시지를 사용하지 않는 webhook이나 사용자 정의 경고 스크립트를 포함하여 모든 전달 방법에 대해 메시지 템플릿 정의는 필수입니다. 예를 들어, "Pushover webhook으로 메시지 전송" 액션은 Pushover webhook에 대한 문제 메시지가 정의되지 않은 경우 문제 알림 전송에 실패합니다.
Options
The Options tab contains alert processing settings. The same set of options is configurable for each media type.
All media types are processed in parallel. While the maximum number of concurrent sessions is configurable per media type, the total number of alerter processes on the server can only be limited by the StartAlerters parameter. Alerts generated by one trigger are processed sequentially. So multiple notifications may be processed simultaneously only if they are generated by multiple triggers.

| Parameter | Description |
|---|---|
| Concurrent sessions | Select the number of parallel alerter sessions for the media type: One - one session Unlimited - unlimited number of sessions Custom - select a custom number of sessions Unlimited/high values mean more parallel sessions and increased capacity for sending notifications. Unlimited/high values should be used in large environments where lots of notifications may need to be sent simultaneously. If more notifications need to be sent than there are concurrent sessions, the remaining notifications will be queued; they will not be lost. |
| Attempts | Number of attempts for trying to send a notification. Up to 100 attempts can be specified; the default value is '3'. If '1' is specified, Zabbix will send the notification only once and will not retry if the sending fails. |
| Attempt interval | Frequency of trying to resend a notification in case the sending failed, in seconds (0-3600). If '0' is specified, Zabbix will retry immediately. Time suffixes are supported, e.g., 5s, 3m, 1h. |
사용자 미디어
미디어 타입이 알림이 어떻게 전송될지를 정의하는 반면, 사용자 미디어는 알림이 어디로 전송되어야 하는지를 정의합니다.
사용자 미디어(예: 이메일 주소, 웹훅 사용자 ID 등)는 전달 방법에 관계없이 사용자 프로필에 정의되어야 합니다. 웹훅 X를 사용하여 Admin 사용자에게 메시지를 보내는 액션은 Admin 사용자 프로필에 웹훅 X 전달 세부사항이 정의되지 않은 경우 전달에 실패합니다.
사용자 미디어를 정의하려면:
- Users > Users로 이동하여 사용자 속성 양식을 엽니다(또는 본인 사용자 프로필의 User settings > Notifications로 이동)
- Media 탭에서 Add를 클릭합니다

| 매개변수 | 설명 |
|---|---|
| Type | 드롭다운 목록에는 활성화된 미디어 타입의 이름이 포함됩니다. 비활성화된 미디어 타입의 미디어를 편집할 때는 타입이 빨간색으로 표시됩니다. |
| Send to | 메시지가 전송될 연락처 정보를 입력합니다. 이메일 미디어 타입의 경우, 주소 필드 아래의 버튼을 클릭하여 여러 주소를 추가할 수 있습니다. 이 경우 나열된 모든 주소로 알림이 전송됩니다. 주소 예시는 email 미디어 타입의 Email 매개변수 설명을 참조하세요. |
| When active | 메시지가 전송되는 시간을 제한할 수 있습니다. 예를 들어, 근무일만 설정할 수 있습니다(1-5,09:00-18:00). 이 제한은 사용자 시간대를 기준으로 합니다. 사용자 시간대가 변경되어 시스템 시간대와 다른 경우, 중요한 메시지를 놓치지 않도록 이 제한을 적절히 조정해야 할 수 있습니다. 형식에 대한 설명은 시간 기간 지정 페이지를 참조하세요. 사용자 매크로가 지원됩니다. |
| Use if severity | 알림을 받고 싶은 트리거 심각도의 체크박스를 표시합니다. 트리거가 아닌 이벤트에 대한 알림을 받으려면 기본 심각도('Not classified')를 반드시 체크해야 합니다. 저장 후, 선택된 트리거 심각도는 해당 심각도 색상으로 표시되고, 선택되지 않은 것들은 회색으로 표시됩니다. |
| Status | 사용자 미디어의 상태입니다. Enabled - 사용 중입니다. Disabled - 사용되지 않습니다. |
Automated Gmail/Office365 media types
Gmail or Office365 users may benefit from easier media type configuration. The Email provider field in the mail media type configuration allows to select pre-configured options for Gmail and Office 365.
When selecting the Gmail/Office365 related options, it is only required to supply the sender email address/password to create a working media type.

As soon as the email address/password is supplied, Zabbix will be able to automatically fill all required settings for Gmail/Office365 media types with the actual/recommended values, i.e., SMTP server, SMTP server port, SMTP helo, and Connection security. Because of this automation, these fields are not even shown, however, it is possible to see the SMTP server and email details in the media type list (see the Details column).
Note also that:
- The password is not required for the relay options.
- For Office365 relay, the domain name of the provided email address will be used to dynamically fill the SMTP server (i.e., replace "example.com" in
example-com.mail.protection.outlook.comwith the real value).
버튼을 클릭하여 여러 주소를 추가할 수 있습니다. 이 경우 나열된 모든 주소로 알림이 전송됩니다. 주소 예시는