https://github.com/leankoala-gmbh/360top
Command Line Dashboard for WebPros 360 Monitoring
https://github.com/leankoala-gmbh/360top
cli command-line-tool monitoring
Last synced: 5 months ago
JSON representation
Command Line Dashboard for WebPros 360 Monitoring
- Host: GitHub
- URL: https://github.com/leankoala-gmbh/360top
- Owner: leankoala-gmbh
- Created: 2023-11-10T06:43:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-15T13:26:47.000Z (over 2 years ago)
- Last Synced: 2024-01-27T05:11:33.602Z (over 2 years ago)
- Topics: cli, command-line-tool, monitoring
- Language: PHP
- Homepage: https://360monitoring.com
- Size: 367 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 360top - Command Line Dashboard for 360 Monitoring
With the 360 Monitoring command line tool `360top` you are able to see all major monitoring information for the current server.
The idea is that you do not have a context switch when you try to fix a problem.
> You will need a 360 Monitoring account to use this command line tool. You can create it under [app.360monitoring.com/signup](https://app.360monitoring.com/signup).

## Installation
Download the latest version of our PHAR archive and give it afterwards rights to be executed. To run 360top you need PHP
installed.
```shell
wget https://github.com/leankoala-gmbh/360top/releases/latest/download/360top.phar
chmod +x 360top.phar
```
Most likely, you want to put the 360top.phar into a directory on your PATH, so you can simply call forrest from any
directory (global install), using for example:
```shell
sudo mv 360top.phar /usr/local/bin/360top
```
## Initialization
After the installation you just have to call the `init` command by running:
```shell
360top init
```
There you have to enter your server ID (if the 360 agent is installed the tool will find the ID automatically) and the API token which you can create in the 360 Monitoring backend.
- [Plesk Platform 360 API key URL](https://monitoring.platform360.io/api-keys/list)
- [360 Monitoring API key URL](https://app.360monitoring.com/api-keys/list)
If you want to automate the initialization you can use [our examples](/docs/install.md).
## Usage
To run the 360top command line tool simply run
```shell
360top
```
## Update
The CLI script can update itself by running the following command.
> As this tool is pretty new we recommend to update more often at the moment.
```shell
360top update
```
## Change Log
- **Version 1.2**
- New metric: Load Average
- Auto refresh the graphs after 60 seconds
- Clear screen on exit
- Added user agent to cURL requests
- Fix: Reset STTY settings on exit
- Fix: Counter not refreshed when arrow pressed
- **Version 1.1**
- `init` now works with command line options and can be used in scripts
- The interval for the data can be chosen (30min, 1h, 1d and 1m)
- Added correct label to graph
- API requests are cached for 60 seconds
- Accept ESC to exit drop down menu
- Reduced artifacts on exit
- Fix: Pagination works with only one page
- **Version 1.0**
- Show historic data for memory, cpu, disc space and notifications
- Show custom metrics
- Initialization script
- Auto build the phar file
- Open notifications are marked red
- Do not show pressed key
- Added command description
- Set version number
- Add `self-update` command
- Version handling
- Fix: PHPStan
- Fix: Open notifications do not have an end date
## Ideas / Todos
- Show current incidents on corresponding metric page
- Live data using 360 agent
- Error handling for API errors
- Modal component