소개
이 문서에서는 Cisco SDWAN-Manager에서 경보 알림을 웹훅을 통해 Cisco Webex Teams 채널로 전송하도록 설정하는 방법에 대해 설명합니다.
사전 요구 사항
요구 사항
Webhook URL 엔드포인트 생성
Cisco Webex Teams 채널로 전송할 Cisco SDWAN-Manager 경보 알림을 구성하려면 https://apphub.webex.com에서 Cisco Webex에 대한 수신 웹훅을 생성합니다.
1: 연결을 클릭합니다.

2: Webhook 이름 및 새 스페이스 만들기(예: Webex의 Webhook Notification). 그런 다음 드롭다운 메뉴에서 Webhook Notification 스페이스를 선택하고 ADD를 클릭합니다.

3: Webhook URL 끝점이 생성됩니다.

사용되는 구성 요소
이 문서는 이러한 소프트웨어 및 하드웨어 버전을 기반으로 합니다.
- Cisco Catalyst SD-WAN Manager 버전 20.15.3.1
구성
1. Cisco SD-WAN Manager 메뉴에서. Monitor(모니터링) > Logs(로그) > Alarms(경보) > Alarm Notifications(경보 알림) > Add Alarm Notifications(경보 알림 추가)로 이동합니다.

- 알림: 알림의 이름을 만들었습니다.
- 경보 유형:
- 개체 유형: Devices를 선택합니다.
- 개체 목록: all(모두) 또는 개별 디바이스를 선택합니다.
- 심각도: 전부
- 유형: 모두 또는 필요한 항목을 선택합니다.
- 배송 방법:
- Webhook에 대한 채널 선택:
- 드롭다운 메뉴에서 Cisco Webex를 선택합니다.
- 웹 후크 URL: 수신 Webhooks 앱에서 URL을 복사합니다.

- 웹후크 임계값: 4
- 완료되면 Add Notifications(알림 추가)를 클릭합니다.

다음을 확인합니다.
- 경보 알림이 Cisco Webex Teams 채널(채널 이름: "Webhook Notification").

문제 해결
Webhook 통합에 문제가 있는 경우 로그를 확인합니다. Cisco SDWAN-Manager 셸에 로그인하고 cd /var/log/nms 디렉토리로 이동하여 vmanage-server.log 파일을 확인합니다.
작업 예:
- 204 상태 코드를 받으면 Webhook이 성공적으로 전달 및 처리되었음을 의미합니다.
vmanage_1# vsh
vmanage_1:~$ cd /var/log/nms
vmanage_1:/var/log/nms$ tail -f vmanage-server.log | grep webhook
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-9) || Response status code after sending webhook: 204
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-11) || Response status code after sending webhook: 204
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-10) || Response status code after sending webhook: 204
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-12) || Response status code after sending webhook: 204
작동 안 함 예:
- 404 응답 코드를 받으면 엔드포인트 URL이 올바르지 않음을 의미합니다.
vmanage_1:/var/log/nms$ tail -f vmanage-server.log | grep webhook
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-13) || Response status code after sending webhook: 404
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-14) || Response status code after sending webhook: 404
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-15) || Response status code after sending webhook: 404
[] [vmanage_1] [NotificationsConsumer] (pool-53-thread-1) || Response status code after sending webhook: 404
관련 정보
기술 지원 및 문서 − Cisco Systems