Symfony Posted April 18, 2017 Share Posted April 18, 2017 Finally have a working poller + api that polls for a specified "service" with one of three methods. cURL - Will try to receive a web page and upon failure, send an outage notice to the API which sends an email to the specified email address (me) and inserts an outage into the MySQL database. Local - Checks to see if a service is running with ps -aux command. (same thing if fail) Ping - Uses ping (ICMP) to check if host is up. (same thing if fail) The poller is written in C++ and the API in php 7.0 using sendmail for the emails, each service has an associated key that is used when reactivating the service for polling and is sent to the user in the outage email. (outage email format) And everything can be manipulated while the poller is running via invoking the poller binary with the appropriate arguments required for making a new outage or telling the poller that a service is back online 2 Quote Link to comment Share on other sites More sharing options...
liquidfx Posted September 24, 2017 Share Posted September 24, 2017 (edited) nice! this could be super useful if you don't want to use an external hosted service for sure. Edited September 24, 2017 by liquidfx Quote Link to comment Share on other sites More sharing options...
Symfony Posted September 25, 2017 Author Share Posted September 25, 2017 nice! this could be super useful if you don't want to use an external hosted service for sure. it's been updated a ton now in order to allow for a bit more of a flexible UX 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.