Skip to main content
Solved

CV alerts sent to MS Teams via webhook


Forum|alt.badge.img+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

Best answer by Mrityunjay Upadhyay

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>"

    }

  ]

}

View original
Did this answer your question?
If you have a question or comment, please create a topic

9 replies

christopherlecky
Byte
Forum|alt.badge.img+17

I have nothing to add except… 

Teams… ick.


Forum|alt.badge.img+1
  • Author
  • Bit
  • 3 replies
  • April 28, 2022
christopherlecky wrote:

I have nothing to add except… 

Teams… ick.

cheapest and fastest push notification for mobile devices ...


christopherlecky
Byte
Forum|alt.badge.img+17

No argument there.


Mike Struening
Vaulter
Forum|alt.badge.img+23

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


Mike Struening
Vaulter
Forum|alt.badge.img+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


Forum|alt.badge.img+1
  • Author
  • Bit
  • 3 replies
  • April 29, 2022

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


Forum|alt.badge.img+3

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>"

    }

  ]

}


Forum|alt.badge.img+1
  • Author
  • Bit
  • 3 replies
  • April 29, 2022

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


christopherlecky
Byte
Forum|alt.badge.img+17

Just wanted to circle back on this. 

Man this is pretty cool.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings