DX Unified Infrastructure Management

 View Only
Expand all | Collapse all

UIM MS Teams alarm integration via webhook

  • 1.  UIM MS Teams alarm integration via webhook

    Posted Nov 29, 2024 01:45 PM

    Hello to all,

    Does anyone has integrated UIM with MS Teams to post an alarm on a ms teams group?

    I'm using UIM 23.4 CU2 

    Regards,

    Guillermo



  • 2.  RE: UIM MS Teams alarm integration via webhook

    Broadcom Employee
    Posted Nov 29, 2024 01:52 PM

    Please refer to:

    https://knowledge.broadcom.com/external/article/246965/send-uim-alarm-to-microsoft-teams-chat.html



    ------------------------------
    Steve Danseglio
    Technical Support Engineer 4 | IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------



  • 3.  RE: UIM MS Teams alarm integration via webhook

    Posted Nov 29, 2024 02:00 PM

    Hello Steve! 

    Thanks a lot...I'm working with this paper right know :-) 

    It's not exactly UIM specific, but I'll try to get it working and if it does, I'll post the result for everyone.

    I´m go back soon with the results...

    Regards,

    Guillermo




  • 4.  RE: UIM MS Teams alarm integration via webhook

    Posted Nov 29, 2024 03:53 PM

    Steve, Have you or anyone else tried this and found it to work?

    I follow all procedures but I have a doubt about the payload value and their format.

    Regards,

    Guillermo




  • 5.  RE: UIM MS Teams alarm integration via webhook

    Broadcom Employee
    Posted Nov 29, 2024 05:34 PM

    Yes. I'm not back in the office until December 2 and I can check then or you could open a case and somebody will check for you.



    ------------------------------
    Steve Danseglio
    Technical Support Engineer 4 | IMS Division
    UIM Certified Expert
    KCSv6 Practices Certified
    Certified Customer Success Manager (CCSM) Level 1
    ------------------------------



  • 6.  RE: UIM MS Teams alarm integration via webhook

    Posted Dec 01, 2024 07:04 PM

    Sure, I just opened it.

    Thanks Steve.

    Regards,

    Guillermo




  • 7.  RE: UIM MS Teams alarm integration via webhook

    Posted Dec 03, 2024 05:53 AM

    Hi Guillermo, 

    I'm keen to see how you get this working.

    We've achieved "UIM - Teams Group Chat" by using Power Automate as a middle man.

    It would be great to get it direct.




  • 8.  RE: UIM MS Teams alarm integration via webhook

    Posted Dec 03, 2024 02:56 PM

    Hello Sam!

    WOW! Nice! How did you get it?




  • 9.  RE: UIM MS Teams alarm integration via webhook

    Posted Dec 03, 2024 11:18 PM
      |   view attached

    Hi Sam and Guillermo,

    We use NAS Auto Operator, Command, the command line string then allows us to pass custom (different Webhook URI's) with the required NAS variables like "$nimid" "$hostname" "$source" "$message" "$level".

    The backend command script was written in PowerShell, we use the same method for OpsGenie and Slack.



    Attachment(s)

    zip
    NAStoTEAMS.zip   35 KB 1 version


  • 10.  RE: UIM MS Teams alarm integration via webhook

    Posted Dec 04, 2024 09:27 AM

    Nice Trevor! Let me try it :-)




  • 11.  RE: UIM MS Teams alarm integration via webhook

    Posted Dec 05, 2024 05:50 AM

    Thank you Trevor!

    Great! 

    I've set up the script in our UIM location and updated the script, I've also configured our Teams channel with Webhook.  Got our API and tested it with Postman.

    I've updated the script with our Teams API and configured the AO rule.

    I can see the AO rule firing when a matching alert is received, but the script isn't sending anything.

    I'm thinking it may be a security restriction on our servers as the script is unsigned.  I'll look to getting it signed and I'll test it again.

    Looks to be a great solution! Thank you for sharing.




  • 12.  RE: UIM MS Teams alarm integration via webhook

    Posted Dec 05, 2024 08:20 AM

    Can this method also be used to post to Teams group chats? Or is it channels only?