web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to monitor server ...
Power Automate
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!

Categories:
I have the same question (0)
  • CU-19081228-9 Profile Picture
    on at

    Can anyone help with this?  Thanks!

    @v-chengfen-msft 

  • jbrines Profile Picture
    1,121 on at

    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

    @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,121 on at

    Hi @ianwuk ,

     

    Can you share as it would be helpful?

     

    J.

  • CU-19081228-9 Profile Picture
    on at

    @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

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard