5 Essential Tips for Maximizing Your Experience at Nutanix .NEXT for Bloggers
Same boat... If you figure it out let us know!
which looks like so and you can go to the alerts via link in the message
So here is how you add messagecards to teams…. few things: using teams webhooks means you cannot do any of the really cool stuff You must use messagecards and include the schema @context you want to do more - look at building a bot + flow I wish we could change the nutanix alert policies to include the API as manually creating playbooks for single alerts is terrible (im going to see what options are available) https://docs.microsoft.com/en-us/outlook/actionable-messages/message-card-reference Here is a very functional json body for teams including the Nutanix parameters : { "@context": "https://schema.org/extensions", "@type": "MessageCard", "summary": "\"Nutanix Card\"", "themeColor": "ff001a", "sections": [ { "activityTitle": "**TX1PRDNTNXCL01**", "activitySubtitle": " _Alert: Creation Time_ ", "activityImage": "https://futurumresearch.com/wp-content/uploads/2019/09/Nutanix-Logo.gif", "facts": [ { "name": "Severity:", "value": "**Alert: Severity**" },
dudes ive just figured it all out… will add in the update when I get a bit of time and work on the MS json a little more. You can use the inbuilt nutanix parameters to get the alert info… pure magical bliss
so what im now thinking i will have to do is build my own api so I can run a get on the nutanix api and return the values to my teams post message…. and devs willing to point me in the general direction? Is there something natively on nutanix I can/should use for this? or would I be better off just building something in node myself? or anyone running something remotely to call the nutanix apis and generating the slack/teams alerts form there? Just some ideas…
now i just need to try figure out how to get alert info into that message instead of manually, becuase then ill end up with 100 manual messages and playbooks
Ok I figured it out… I wasnt able to include the nutanix api perameters… but its now working for anyone who wants to know all it was expecting was json format… didnt need to specify headers at all. heres what i set: set a custom alert policy to 5-10% cpu so it would trigger a lot and selected my test vm obviously this is my very fist time attempting this and literally just figured it out but in the near future Id like to see if I can call the alert parameters. cant seem to change the answer in the post? might just make a quick new one. Any hew cheers! Aidan
Thanks Anish, I have been trying to post to a Microsoft teams (Microsoft’s version slack)… using the rest api method but I assumed it was for nutanix rest api after trying to test. I can use a bash script instead to run the post from curl with an alert… thank you for the information, greatly appreciated :)
@dlira - any reason your software is being flagged 11 times on virustotal for containing viruses and malware? https://www.virustotal.com/gui/file/31063ce5973c88faa6fa82c2a4f592f347b8e744c81e14b9867cb8f7cdb4bc7e/detectionCOMMUNITY AegisLab Trojan.Win32.Strictor.4!c Arcabit Trojan.Strictor.D382F7 BitDefender Gen:Variant.Strictor.230135 BitDefenderTheta Gen:NN.ZexaF.32249.@B3@aWX8tho Emsisoft Gen:Variant.Strictor.230135 (B) eScan Gen:Variant.Strictor.230135 FireEye Gen:Variant.Strictor.230135 GData Gen:Variant.Strictor.230135 (2x) Ikarus Trojan.Python.Agent MAX Malware (ai Score=88) TrendMicro-HouseCall TROJ_GEN.R002H09JN19
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.