Jump to content

Poller :D


Symfony

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
Link to comment
Share on other sites

  • 5 months later...

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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