Hello Everyone.
We use Site24x7 to monitor servers.
How can we use PowerAutomate to monitor all of them,and, based on whether the colour of the object on the site is red or not, perform an action?
It's one URL that provides monitoring for all servers and if any of them turn from green to either yellow or red we want to send an email to alert someone.
So, the flow will check, say every 15 minutes or so and perform an action accordingly.
I can set up a flow to check the website URL itself but it's the individual servers that that webite is monitoring that I want to create alerts off - how can I do that?
Below is the basic flow:
Is this possible?
Thank you for any help!
@jbrines Here you are - full credit to @grantjenkins.
Hopefully this gets what you're looking for. Note that I've just got a manual trigger and storing the JSON directly in the Compose for this example.
See full flow below. I'll go into each of the actions.
Compose contains the JSON data you sent through. You would already have this as part of the trigger attachment content.
XML is a Compose that converts the JSON data to XML so we can apply XPath expressions. Note that I've also added a root element to ensure it's valid XML. The expression used is:
xml(json(concat('{"root": ', outputs('Compose'), '}'))) //Your expression would likely look like the following: xml(json(concat('{"root": ', triggerBody()?['attachments'][0]['content'], '}')))
Condition checks to see if any items within any of the facts arrays have a name containing 'Monitor status' and a value containing 'DOWN'. If at least one item is returned, then the Condition will return true and would run your Reply in channel with a message in the Yes branch. The expression for the condition is:
length(xpath(outputs('XML'), '//sections/facts[contains(name, "Monitor status") and contains(value, "DOWN")]'))
@jbrines Yes, I did manage to sort this out.
See post 9 here - Solved: How to read fact/values from JSON? - Power Platform Community (microsoft.com), all thanks to the very helpful @grantjenkins
Hi @ianwuk did you manage to get a solution for this as I am looking for something similar
Can anyone help with this? Thanks!
@v-chengfen-msft
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1