Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/disinterpreter/perl-mymetrics
My sensors for private use
https://github.com/disinterpreter/perl-mymetrics
Last synced: about 2 months ago
JSON representation
My sensors for private use
- Host: GitHub
- URL: https://github.com/disinterpreter/perl-mymetrics
- Owner: Disinterpreter
- License: mit
- Created: 2017-07-15T10:53:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-15T12:52:09.000Z (over 7 years ago)
- Last Synced: 2024-10-15T04:12:05.155Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mymetrics
Sensors for private use. Clone repository into /opt/scripts and run ./sensor.pl file. Requipments:
- LWP
Example
./sensor.pl
```
[{hdd: 31552},
{networkRX: 623991, networkTX: 25647038},
{nginxReq: 196},
{loadavg: '0.49 0.51 0.53'},
{avalhdd:{all:2875655720,useed:1224437136,aval:1505120572}}]
```
Where:
- hdd - speed HDD read (edit needed in to hddread.pl file)
- Network - RX and TX needed interface in bytes (edit needed in to network.pl file)
- nginxReq - read stats from nginx statistic (edit in nginx.pl and see more https://nginx.ru/en/docs/http/ngx_http_stub_status_module.html)
- loadavg - `¯\_(ツ)_/¯`
- avalhdd - space on / (kbytes)