Ward/README.md

102 lines
4.0 KiB
Markdown
Raw Permalink Normal View History

2022-06-29 06:01:25 +08:00
<h3 align = "center">
2023-01-27 01:50:24 +08:00
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/AntonyLeons/ward/docker-image.yml">
2022-06-29 06:01:25 +08:00
<img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/antonyleons/ward?style=plastic">
</h3>
2020-05-18 01:30:15 +08:00
<h3 align = "center">
2022-04-22 00:26:43 +08:00
<img src = "images/logo.png" alt = "Logo" />
2020-05-18 01:30:15 +08:00
</h3>
2020-04-25 22:37:19 +08:00
2020-05-18 01:30:15 +08:00
---
2020-04-25 22:37:19 +08:00
2022-03-21 00:25:13 +08:00
## [Demo](https://status.leons.dev)
2022-02-18 04:52:59 +08:00
# Quick start
2022-02-18 04:51:09 +08:00
2022-02-18 05:00:47 +08:00
## Docker
2022-02-18 04:51:09 +08:00
* `docker run --restart unless-stopped -it -d --name ward -p 4000:4000 -e WARD_PORT=4000 -e WARD_THEME=dark --privileged antonyleons/ward`
2022-03-21 00:07:25 +08:00
* Go to localhost:4000 in web browser
2022-02-18 04:51:09 +08:00
2022-03-21 02:10:44 +08:00
Also see the example [docker-compose.yml](https://github.com/AntonyLeons/Ward/blob/main/docker-compose.yml) file in the root directory.
2022-02-18 05:00:47 +08:00
## Java
2022-02-18 05:01:47 +08:00
Download the latest release from [here](https://github.com/AntonyLeons/Ward/releases/latest)
2022-02-18 04:51:09 +08:00
```console
java -jar ward.jar
```
2022-02-18 05:00:47 +08:00
### About
2020-05-18 01:39:12 +08:00
2023-01-27 01:50:24 +08:00
Ward is a simple and minimalistic server monitoring tool. Ward supports adaptive design system. Also, it supports dark theme.
2020-07-02 04:54:33 +08:00
It shows only principal information and can be used, if you want to see nice looking dashboard instead looking on bunch of numbers and graphs.
2020-05-18 01:19:23 +08:00
Ward works nice on all popular operating systems, because it uses [OSHI](https://github.com/oshi/oshi).
2020-05-27 03:44:52 +08:00
**All features tested on:** `Windows` `Linux`
<p align = "center">
2022-04-22 00:26:43 +08:00
<img src = "images/preview.png" alt = "Preview Image" />
<h6 align = "center">Preview Image</h6>
</p>
2020-05-18 05:39:38 +08:00
2020-05-18 01:30:15 +08:00
---
2020-04-25 22:37:19 +08:00
2020-05-18 01:40:44 +08:00
### Installation
Create your own jar
2020-06-12 19:00:38 +08:00
2022-04-22 00:26:43 +08:00
• Clone the project
• Import project in your IDE as Maven project
• mvn clean package
2020-06-12 19:00:38 +08:00
<br>
Run jar file
2022-02-18 01:34:05 +08:00
1. Create you own jar as described above
2. Execute jar on Windows or Linux with administrative rights
3. Enter localhost:4000 and set up application
<br>
Build for Docker
1. Clone the project
2. docker build --tag ward
2022-03-21 00:28:35 +08:00
3. docker run --restart unless-stopped -it -d --name ward -p 4000:4000 -e WARD_PORT=4000 -e WARD_THEME=dark --privileged ward
4. Go to localhost:4000 in web browser
2022-02-24 07:11:37 +08:00
### Config
2024-04-16 00:32:25 +08:00
If you want to change Ward's configuration, you can edit `setup.ini`. When using Docker, use the environment variables `WARD_NAME`,`WARD_THEME`, `WARD_PORT` to automatically regenerate this file at startup. Using any environment variable listed will enable the defaults below and immediately start Ward without the GUI setup.
| Setting | Env var | Description | Default |
|-----------------|-----------------|----------------------------------------------|---------|
| serverName | WARD_NAME | Name shown in the interface. | Ward |
| port | WARD_PORT | Port to listen on. | 4000 |
| theme | WARD_THEME | Either `light` or `dark`. | light |
| enableFog | WARD_FOG | Either `true` or `false`. | true |
| backgroundColor | WARD_BACKGROUND | HexColor for background when fog is disabled | default |
2022-02-24 07:11:37 +08:00
Environment variables take priority and will regenerate this file with your variables. If no environment variables are set, `setup.ini` is generated once you navigate to Ward's webpage and complete the initial setup. You can also make this file yourself before starting Ward, and place it in the same directory.
2022-02-24 07:11:37 +08:00
For example:
2022-03-21 00:28:35 +08:00
2022-02-24 07:11:37 +08:00
```ini
[setup]
serverName = my-server
theme = dark
port = 8200
enableFog = true
backgroundColor = #303030
2022-02-24 07:11:37 +08:00
```
### Credits
2024-04-16 00:32:25 +08:00
Original Creator: <https://github.com/Rudolf-Barbu/Ward>
<a href="https://www.flaticon.com/free-icons/control-panel" title="control panel icons">Control panel icons created by Freepik - Flaticon</a>
<a href="https://www.flaticon.com/free-icons/processor" title="processor icons">Processor icons created by Those Icons - Flaticon</a>
<a href="https://www.flaticon.com/free-icons/ram" title="ram icons">Ram icons created by srip - Flaticon</a>
2024-04-16 00:32:25 +08:00
<a href="https://www.flaticon.com/free-icons/hard-disk" title="hard disk icons">Hard disk icons created by Freepik - Flaticon</a>