{"id":13787375,"url":"https://github.com/robertcsapo/cisco-dnac-platform-webex-notifications","last_synced_at":"2025-09-04T17:37:15.335Z","repository":{"id":139954360,"uuid":"165879053","full_name":"robertcsapo/cisco-dnac-platform-webex-notifications","owner":"robertcsapo","description":"Receive Events from Cisco DNA Center and push the information to Cisco Webex Teams","archived":false,"fork":false,"pushed_at":"2020-09-07T12:24:09.000Z","size":721,"stargazers_count":9,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T11:04:36.687Z","etag":null,"topics":["cisco","cisco-dna-center","cisco-webex-teams","dna","dna-center","dnac","docker","docker-compose","flask","python","python-webhook","receive-events","webex","webhook"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertcsapo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-15T15:51:02.000Z","updated_at":"2025-03-25T14:05:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"73c2904a-ef0a-443a-b650-7538657eae8c","html_url":"https://github.com/robertcsapo/cisco-dnac-platform-webex-notifications","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertcsapo%2Fcisco-dnac-platform-webex-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertcsapo%2Fcisco-dnac-platform-webex-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertcsapo%2Fcisco-dnac-platform-webex-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertcsapo%2Fcisco-dnac-platform-webex-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertcsapo","download_url":"https://codeload.github.com/robertcsapo/cisco-dnac-platform-webex-notifications/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975316,"owners_count":21192208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cisco","cisco-dna-center","cisco-webex-teams","dna","dna-center","dnac","docker","docker-compose","flask","python","python-webhook","receive-events","webex","webhook"],"created_at":"2024-08-03T20:00:33.420Z","updated_at":"2025-04-14T23:01:35.354Z","avatar_url":"https://github.com/robertcsapo.png","language":"Python","funding_links":[],"categories":["Assurance"],"sub_categories":[],"readme":"# cisco-dnac-platform-webex-notifications\n[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/robertcsapo/cisco-dnac-platform-webex-notifications)\n## Receive Events from Cisco DNA Center and push the information to Cisco Webex Teams\n\n## Disclaimer\n* This solution isn't using Username/Password header with Cisco DNA Center (let me know if needed)\n* You need to use HTTPS with Cisco DNA Center for Events API\n\t- It's recommended to use this service with non-https and have a loadbalancer infront (https)\n\t- SSL is now supported (ad-hoc) on this service (without LB) - not recommended for production\n\n![](cisco.dnac.webex.teams.assurance.jpg)\n\n## How to setup\n### Python Webhook\n#### Prerequisites\n* Docker support\n* Cisco Webex Teams Token and Teams ID\n\t- How-To Guide https://developer.webex.com/docs/api/getting-started\n\n### Start Python Webhook\n\n```\ndocker run -d -p 5000:5000 -e WEBEX_TEAMS_ACCESS_TOKEN=\"TOKEN\" -e WEBEX_TEAMS_ROOM_ID=\"ID\" robertcsapo/cisco-dnac-platform-webex-notifications\n```\n\nIf SSL is need\n\n```\ndocker run -d -p 5000:5000 -e WEBEX_TEAMS_ACCESS_TOKEN=\"TOKEN\" -e WEBEX_TEAMS_ROOM_ID=\"ID\" robertcsapo/cisco-dnac-platform-webex-notifications --ssl\n```\n\n### Cisco DNA Center\n#### Prerequisites\n* Enable Cisco DNA Center as a Platform\n\t- How-To Guide https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center-platform/1-3-1-0/user_guide/b_dnac_platform_ug_1_3_1_0/b_dnac_platform_ug_1_3_1_0_chapter_010.html\n* Configure Cisco DNA Center Events (https://\u003cdnac-ip\u003e/dna/systemSettings/settings?settings-item=dnacp-events-settings)\n\t- How-To Guide https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/dna-center-platform/1-3-1-0/user_guide/b_dnac_platform_ug_1_3_1_0/b_dnac_platform_ug_1_3_1_0_chapter_010.html\n\t- Adam Radford's Blog https://blogs.cisco.com/developer/event-notifications-in-webex-teams\n\n\n## Troubleshooting\n### DNAC - /dnac URL (GET)\n#### http://localhost:5000/dnac\nThe URL that you need to configure on Cisco DNA Center\n#### Response\n```cisco-dnac-platform-webex-notifications version \u003cversion\u003e -\u003e by Robert Csapo (robert@nigma.org)```\n### Sample - /sample URL (GET)\n#### GET http://localhost:5000/sample\nSends Sample data from outputdata.json\n#### Response\n```Sample JSON Payload received```\n\n### Webex - /webex URL (GET)\n#### GET http://localhost:5000/webex\nSends Sample data to Webex Room\n#### Response\n```Sample Webex Teams Message```\n\n### Post Sample (POST) - /postsample URL\n#### POST http://localhost:5000/postsample\nSend your own JSON sample data (use POST Method and Postman)\n#### POST JSON Sample Data (through Postman or curl)\n  \n### Cisco DNA Center (POST) - /dnac URL\n#### POST http://localhost:5000/dnac\nThis is the URL Path that Cisco DNA Center uses\n#### You configure this in Systems Settings (Cisco DNA Center)\n```\n{\n\t\"id\": \"AWZJw6y7OyE4MOPs83V-\",\n\t\"instanceId\": \"E-NETWORK-EVENT-AWZJw6y7OyE4MOPs83V--1538835787576\",\n\t\"category\": \"Warn\",\n\t\"status\": \"NEW\",\n\t\"timestamp\": 1538835787576,\n\t\"severity\": \"P1\",\n\t\"domain\": \"Availability\",\n\t\"source\": \"DNAC\",\n\t\"priority\": \"P1\",\n\t\"type\": \"Network\",\n\t\"title\": \"Device unreachable\",\n\t\"description\": \"This network device {network_device} is unreachable from controller. The device role is {fabricOrDeviceRole}.\",\n\t\"actualServiceId\": \"100.68.0.66\",\n\t\"assignedTo\": \"\",\n\t\"enrichmentInfo\": {\n\t\t\"issueDetails\": {\n\t\t\t\"issue\": [{\n\t\t\t\t\"issueId\": \"AWZJw6y7OyE4MOPs83V-\",\n\t\t\t\t\"issueSource\": \"Cisco DNA\",\n\t\t\t\t\"issueCategory\": \"Availability\",\n\t\t\t\t\"issueName\": \"snmp_device_down\",\n\t\t\t\t\"issueDescription\": \"This network device {network_device} is unreachable from controller. The device role is {fabricOrDeviceRole}.\",\n\t\t\t\t\"issueEntity\": \"network_device\",\n\t\t\t\t\"issueEntityValue\": \"100.68.0.66\",\n\t\t\t\t\"issueSeverity\": \"HIGH\",\n\t\t\t\t\"issuePriority\": \"\",\n\t\t\t\t\"issueSummary\": \"Network Device 100.68.0.66 Is Unreachable From Controller\",\n\t\t\t\t\"issueTimestamp\": 1538835787576,\n\t\t\t\t\"suggestedActions\": [{\n\t\t\t\t\t\"message\": \"From the controller, verify whether the last hop is reachable.\",\n\t\t\t\t\t\"steps\": []\n\t\t\t\t}, {\n\t\t\t\t\t\"message\": \"Verify that the physical port(s) on the network device associated with the network device discovery(IP) is UP.\",\n\t\t\t\t\t\"steps\": []\n\t\t\t\t}, {\n\t\t\t\t\t\"message\": \"Verify access to the device.\",\n\t\t\t\t\t\"steps\": []\n\t\t\t\t}],\n\t\t\t\t\"impactedHosts\": [{\n\t\t\t\t\t\"hostName\": \"Unknown\",\n\t\t\t\t\t\"hostOs\": \"Unknown\",\n\t\t\t\t\t\"ssid\": \"Unknown\",\n\t\t\t\t\t\"connectedInterface\": \"Unknown\",\n\t\t\t\t\t\"macAddress\": \"100.67.0.35\",\n\t\t\t\t\t\"failedAttempts\": 3,\n\t\t\t\t\t\"location\": {\n\t\t\t\t\t\t\"siteId\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"siteType\": \"BUILDING\",\n\t\t\t\t\t\t\"area\": \"Global\",\n\t\t\t\t\t\t\"building\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"apsImpacted\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"timestamp\": 1538835787576\n\t\t\t\t}, {\n\t\t\t\t\t\"hostName\": \"Unknown\",\n\t\t\t\t\t\"hostOs\": \"Unknown\",\n\t\t\t\t\t\"ssid\": \"Unknown\",\n\t\t\t\t\t\"connectedInterface\": \"Unknown\",\n\t\t\t\t\t\"macAddress\": \"100.69.0.68\",\n\t\t\t\t\t\"failedAttempts\": 3,\n\t\t\t\t\t\"location\": {\n\t\t\t\t\t\t\"siteId\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"siteType\": \"BUILDING\",\n\t\t\t\t\t\t\"area\": \"Global\",\n\t\t\t\t\t\t\"building\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"apsImpacted\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"timestamp\": 1538835787576\n\t\t\t\t}, {\n\t\t\t\t\t\"hostName\": \"Unknown\",\n\t\t\t\t\t\"hostOs\": \"Unknown\",\n\t\t\t\t\t\"ssid\": \"Unknown\",\n\t\t\t\t\t\"connectedInterface\": \"Unknown\",\n\t\t\t\t\t\"macAddress\": \"100.68.0.66\",\n\t\t\t\t\t\"failedAttempts\": 3,\n\t\t\t\t\t\"location\": {\n\t\t\t\t\t\t\"siteId\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"siteType\": \"BUILDING\",\n\t\t\t\t\t\t\"area\": \"Global\",\n\t\t\t\t\t\t\"building\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"apsImpacted\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"timestamp\": 1538835787576\n\t\t\t\t}, {\n\t\t\t\t\t\"hostName\": \"Unknown\",\n\t\t\t\t\t\"hostOs\": \"Unknown\",\n\t\t\t\t\t\"ssid\": \"Unknown\",\n\t\t\t\t\t\"connectedInterface\": \"Unknown\",\n\t\t\t\t\t\"macAddress\": \"100.68.0.67\",\n\t\t\t\t\t\"failedAttempts\": 3,\n\t\t\t\t\t\"location\": {\n\t\t\t\t\t\t\"siteId\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"siteType\": \"BUILDING\",\n\t\t\t\t\t\t\"area\": \"Global\",\n\t\t\t\t\t\t\"building\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"apsImpacted\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"timestamp\": 1538835787576\n\t\t\t\t}, {\n\t\t\t\t\t\"hostName\": \"Unknown\",\n\t\t\t\t\t\"hostOs\": \"Unknown\",\n\t\t\t\t\t\"ssid\": \"Unknown\",\n\t\t\t\t\t\"connectedInterface\": \"Unknown\",\n\t\t\t\t\t\"macAddress\": \"100.66.10.35\",\n\t\t\t\t\t\"failedAttempts\": 3,\n\t\t\t\t\t\"location\": {\n\t\t\t\t\t\t\"siteId\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"siteType\": \"BUILDING\",\n\t\t\t\t\t\t\"area\": \"Global\",\n\t\t\t\t\t\t\"building\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"apsImpacted\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"timestamp\": 1538835787576\n\t\t\t\t}, {\n\t\t\t\t\t\"hostName\": \"Unknown\",\n\t\t\t\t\t\"hostOs\": \"Unknown\",\n\t\t\t\t\t\"ssid\": \"Unknown\",\n\t\t\t\t\t\"connectedInterface\": \"Unknown\",\n\t\t\t\t\t\"macAddress\": \"100.65.253.18\",\n\t\t\t\t\t\"failedAttempts\": 3,\n\t\t\t\t\t\"location\": {\n\t\t\t\t\t\t\"siteId\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"siteType\": \"BUILDING\",\n\t\t\t\t\t\t\"area\": \"Global\",\n\t\t\t\t\t\t\"building\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"apsImpacted\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"timestamp\": 1538835787576\n\t\t\t\t}, {\n\t\t\t\t\t\"hostName\": \"Unknown\",\n\t\t\t\t\t\"hostOs\": \"Unknown\",\n\t\t\t\t\t\"ssid\": \"Unknown\",\n\t\t\t\t\t\"connectedInterface\": \"Unknown\",\n\t\t\t\t\t\"macAddress\": \"100.67.0.34\",\n\t\t\t\t\t\"failedAttempts\": 3,\n\t\t\t\t\t\"location\": {\n\t\t\t\t\t\t\"siteId\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"siteType\": \"BUILDING\",\n\t\t\t\t\t\t\"area\": \"Global\",\n\t\t\t\t\t\t\"building\": \"UNASSIGNED\",\n\t\t\t\t\t\t\"apsImpacted\": []\n\t\t\t\t\t},\n\t\t\t\t\t\"timestamp\": 1538835787576\n\t\t\t\t}]\n\t\t\t}]\n\t\t},\n\t\t\"connectedDevice\": [{\n\t\t\t\"deviceDetails\": {\n\t\t\t\t\"cisco360view\": \"https://100.65.1.10/dna/assurance/home#networkDevice/undefined\"\n\t\t\t}\n\t\t}]\n\t}\n}\n```\n#### Response\n```Sample JSON Payload received```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertcsapo%2Fcisco-dnac-platform-webex-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertcsapo%2Fcisco-dnac-platform-webex-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertcsapo%2Fcisco-dnac-platform-webex-notifications/lists"}