Jump to content
Symfony

linux Poller :D

Recommended Posts

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.

 

kVQNZmw.png

(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 :D

  • Like 2

Share this post


Link to post
Share on other sites

nice! this could be super useful if you don't want to use an external hosted service for sure.

Edited by liquidfx

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

We are glad you decided to stop by our website and servers. At Fearless Assassins Gaming Community (=F|A=) we strive to bring you the best gaming experience possible. With helpful admins, custom maps and good server regulars your gaming experience should be grand! We love to have fun by playing online games especially W:ET, Call of Duty Series, Counter Strike: Series, Minecraft, Insurgency, DOI, TF2 & Battlefield Series and if you like to do same then join us! Here, you can make worldwide friends while enjoying the game. Anyone from any race and country speaking any language can join our Discord and gaming servers. We have clan members from US, Canada, Europe, Sri Lanka, India, Japan, Australia, Brazil, UK, Austria, Poland, Finland and many other countries. It doesn't matter how much good you are in the game or how much good English you speak. We believe in making new friends from all over the world. If you want to have fun and want to make new friends join up our gaming servers and our VoIP servers any day and at any time. .

×

Important Information

By using this site, you agree to our Terms of Use.