Solved

CV alerts sent to MS Teams via webhook

  • 28 April 2022
  • 9 replies
  • 606 views

Badge +1

hi, i want to use a webhook for MS Teams to send our CV alterts directly to a dedicated MS Teams channels. The configuration seems easy. Within commandcenter i added the webhook url provided by MS Teams.

Under Monitoring alerts i defined some “standard” definitions like:

Backup Job suceeded to be sent to the webhook.

No adaptions within the template were made.

But in the webhook configuration it always shows me: Webhook offline (date)

 

Has someone managed already a webhook integration with MS Teams and may share his insights, what changes to the standard configuration is necessary.

 

thanks

icon

Best answer by Mrityunjay Upadhyay 29 April 2022, 09:32

View original

If you have a question or comment, please create a topic

9 replies

Userlevel 5
Badge +16

I have nothing to add except… 

Teams… ick.

Badge +1

I have nothing to add except… 

Teams… ick.

cheapest and fastest push notification for mobile devices ...

Userlevel 5
Badge +16

No argument there.

Userlevel 7
Badge +23

@BernhardSt , while we wait to see if anyone in the community can advise, I’m going to see if we have anyone internally.

Userlevel 7
Badge +23

I have an answer!

on 24 --- if MOngoDB deployment is standalone server then use FS agent --- https://documentation.commvault.com/11.24/expert/43131_performing_full_backup_of_standalone_mongodb_deployment.html

Expert View

 

on 24 --- if MOngoDB deplpyment is a replica set or a sharded cluster then use the MongoDB agent https://documentation.commvault.com/11.24/expert/99408_performing_full_backup_of_replica_set_or_sharded_cluster_deployment.html

Expert View

Badge +1

@Mike Struening hi mike. thanks for your answer. but i think the links dont fit to my question. thanks

Badge +2

Hi,

 

The template should follow microsoft teams format as mentioned in this doc. 

https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL

 

A sample is pasted below. please create new connector and paste following format in template, trigger alert and verify in teams.

 

  "summary": "<ALERT CATEGORY - ALERT TYPE>",

  "themeColor": "0078D7",

  "title": "<ALERT NAME>",

  "sections": [

    {

      "facts": [

        {

          "name": "Detected Criteria",

          "value": "<DETECTED CRITERIA>"

        },

        {

          "name": "Detected Time",

          "value": "<TIME>"

        },

        {

          "name": "CommCell",

          "value": "<COMMCELL NAME>"

        },

        {

          "name": "User",

          "value": "<USER NAME>"

        },

        {

          "name": "Job ID",

          "value": "<JOB ID>"

        },

        {

          "name": "Status",

          "value": "<STATUS>"

        },

        {

          "name": "Client",

          "value": "<CLIENT DISPLAY NAME>"

        },

        {

          "name": "Agent Type",

          "value": "<AGENT TYPE NAME>"

        },

        {

          "name": "Instance",

          "value": "<INSTANCE NAME>"

        },

        {

          "name": "Backup Set",

          "value": "<BACKUPSET NAME>"

        },

        {

          "name": "Subclient",

          "value": "<SUBCLIENT NAME>"

        },

        {

          "name": "Start Time",

          "value": "<START TIME>"

        }

      ],

      "text": "<ALERT CATEGORY - ALERT TYPE>"

    }

  ]

}

Badge +1

hi thank you. now its working!! great. i am happy now :)

Userlevel 5
Badge +16

Just wanted to circle back on this. 

Man this is pretty cool.