Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to monitor server uptime and send an email if any are down?

(0) ShareShare
ReportReport
Posted on by

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:

ianwuk_0-1669078342234.png

Is this possible?

 

Thank you for any help!

  • CU-19081228-9 Profile Picture
    on at
    Re: How to monitor server uptime and send an email if any are down?

    @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.

    ianwuk_0-1675341170817.png

     

     

    Compose contains the JSON data you sent through. You would already have this as part of the trigger attachment content.

    ianwuk_1-1675341170822.png

     

    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'], '}')))

    ianwuk_2-1675341170824.png

     

     

    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")]'))

    ianwuk_3-1675341170825.png

     

     

  • jbrines Profile Picture
    1,103 on at
    Re: How to monitor server uptime and send an email if any are down?

    Hi @ianwuk ,

     

    Can you share as it would be helpful?

     

    J.

  • CU-19081228-9 Profile Picture
    on at
    Re: How to monitor server uptime and send an email if any are 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 

  • jbrines Profile Picture
    1,103 on at
    Re: How to monitor server uptime and send an email if any are down?

    Hi @ianwuk did you manage to get a solution for this as I am looking for something similar

  • CU-19081228-9 Profile Picture
    on at
    Re: How to monitor server uptime and send an email if any are down?

    Can anyone help with this?  Thanks!

    @v-chengfen-msft 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1