Git Product home page Git Product logo

website-monitor's Introduction

Website Monitor

This is a simple website monitor, inspired by broke.lol.

A screenshot of the website monitor

Usage

Upload everything to your web server (except the screen.png file, which isn’t needed). Make sure that PHP has permission to write to the monitors directory (this is where monitor data is stored).

Open monitors.json and add whatever websites you’d like you monitor. The format is a key-value pair, with the key being the “display name” of the website, and the value being the URL that will be checked. For example:

{
	"example.com": "https:\/\/example.com",
	"wikipedia.org": "https:\/\/www.wikipedia.org"
}

To automate your monitoring, you can add something like this to your crontab:

* * * * * /usr/bin/php -f /path/to/monitor.php >/dev/null 2>&1

You can display a specific message for each monitored resource by creating a Markdown file in the updates directory that uses the same display name for the resource (and has a .md extension). For example, if you want to display some text near the example.com resource, you’d add a file called example.com.md within the updates directory.

You can display various incident messages by placing a Markdown file in the incidents directory. By default, any file there will be treated as an informational message (shown in gray). If you prepend alert_ in the file name, the message will be treated as an alert (shown in red). And if you prepend notice_, it’ll be treated as a notice (shown in yellow).

This project uses Parsedown, a truly excellent Markdown rendering tool.

website-monitor's People

Contributors

newbold avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.