No description
Find a file
2024-12-05 20:34:25 +05:30
HHFWebsiteMonitor@77c0fdd0a4 update 2024-11-19 23:53:15 +05:30
incidents update 2024-11-19 23:05:28 +05:30
monitors update 2024-11-19 23:05:28 +05:30
updates update 2024-11-19 23:05:28 +05:30
configuration.php update 2024-11-19 23:05:28 +05:30
image-1.png update 2024-11-19 23:12:31 +05:30
image-2.png update 2024-11-19 23:12:31 +05:30
image.png update 2024-11-19 23:12:18 +05:30
index.php update 2024-11-19 23:05:28 +05:30
LICENSE Add LICENSE 2024-12-05 20:34:25 +05:30
monitor.php update 2024-11-19 23:54:41 +05:30
monitors.json update 2024-11-19 23:05:28 +05:30
Parsedown.php update 2024-11-19 23:05:28 +05:30
README.md update 2024-11-19 23:12:31 +05:30
style.css update 2024-11-19 23:05:28 +05:30

Website Monitor

A simple web service for monitoring website availability.

Image Home Page

Features

  • Monitor multiple websites simultaneously
  • Customizable status updates and incident messages
  • Easy configuration via JSON
  • Automated monitoring with cron jobs
  • Markdown support for messages

Prerequisites

  • PHP with write permissions
  • Cron (optional, for automated monitoring)
  • Parsedown library (included)

Setup

1. Installation

  1. Upload all files to your cloudpanel.
  2. Ensure PHP has write permissions for the monitors directory

alt text

2. Configure Monitored Websites

Edit monitors.json to add websites you want to monitor:

{
    "forum.hhf.technology": "https://forum.hhf.technology",
    "git.hhf.technology": "https://git.hhf.technology"
}

3. Optional Customizations

Status Updates

  • Create Markdown files in the updates directory
  • Filename should match the website name (e.g., example.com.md)

Incident Messages

Place Markdown files in the incidents directory:

  • Default: Informational message (gray)
  • alert_* prefix: Alert message (red)
  • notice_* prefix: Notice message (yellow)

4. Automate Monitoring

Add this to your crontab to run monitoring every minute:

alt text

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

Dependencies

Notes

  • Ensure proper file permissions for monitoring functionality