RSS Amplifier

Jeff Casavant · Jan 11, 2015

A simple service status page in PHP

0
Sign in to vote or save

Jeff Casavant

I’ve recently added several services to my hobby VPS, including GitLab, Neo4J, and some custom-written Python stuff. I figured that it would become necessary for someone not logged in to the server to see the status of these particular processes, possibly for external monitoring purposes.

I figured that a simple way to do this would be to design a series of grep steps to pare down the output of ps aux until I was able to get only the relevant processes; this should be a cinch since PHP can run console commands.

I ran into several problems with formatting along the way, but it works perfectly now. The end result looks like this. Feel free to take, use, & modify it.

Edit 2015-01-14: It now takes a URL param plaintext which eliminates the HTML code to support use in curl.

Read the original on casavant.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.