# HHFWebsiteMonitor: Real-Time Website Uptime & Performance Tracking Tool for Cloudpanel Sites

**URL:** https://forum.hhf.technology/t/hhfwebsitemonitor-real-time-website-uptime-performance-tracking-tool-for-cloudpanel-sites/412
**Category:** PHP
**Tags:** cloudpanel, php, website-uptime, performance-tracking
**Created:** [November 19, 2024, 5:51pm UTC](https://forum.hhf.technology/t/hhfwebsitemonitor-real-time-website-uptime-performance-tracking-tool-for-cloudpanel-sites/412 "2024-11-19T17:51:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hhf.technoloy](https://forum.hhf.technology/user_avatar/forum.hhf.technology/hhf.technoloy/32/68_2.png) [@hhf.technoloy](https://forum.hhf.technology/u/hhf.technoloy)
#### Post date: [November 19, 2024, 5:51pm UTC](https://forum.hhf.technology/t/hhfwebsitemonitor-real-time-website-uptime-performance-tracking-tool-for-cloudpanel-sites/412/1 "2024-11-19T17:51:36Z")

</div>

# Website Monitor

A simple web service for monitoring website availability.

 ![image](https://forum-cdn.hhf.technology/original/1X/841367c28bd7a7d42949fce419e873a28c3f7f44.jpeg)

## 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](https://parsedown.org) library (included)

## Setup

### 1. Installation

#### Download the files from [hhf/HHFWebsiteMonitor - HHF Technology Repository: A painless, self-hosted Git service](https://git.hhf.technology/hhf/HHFWebsiteMonitor.git)

1. Upload all files to your cloudpanel.

2. Ensure PHP has write permissions for the `monitors` directory

 ![image](https://forum-cdn.hhf.technology/original/1X/295d8cad544b0a15c50bfe08ce22d703a0c770a1.png)

### 2. Configure Monitored Websites

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

```json

{

"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:

 ![image](https://forum-cdn.hhf.technology/original/1X/8260994763d4ad9deef4cb2d82d118ef898b2de1.png)

```bash

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

```

## Dependencies

- [Parsedown](https://parsedown.org): Markdown rendering library

## Notes

- Ensure proper file permissions for monitoring functionality

## Live site- [HHF Website Monitor](https://monitor.hhf.technology/)
