https://github.com/zperf/tcpmon
Portable monitor for Sockets/NICs/SNMP
https://github.com/zperf/tcpmon
Last synced: 5 months ago
JSON representation
Portable monitor for Sockets/NICs/SNMP
- Host: GitHub
- URL: https://github.com/zperf/tcpmon
- Owner: zperf
- License: mit
- Created: 2023-07-27T13:20:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-27T09:59:15.000Z (about 1 year ago)
- Last Synced: 2025-05-27T10:44:21.474Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 8.46 MB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tcpmon
A simple TCP monitor for Linux.
## Installation
```bash
# build the RPM
make package
# install
rpm -Uvh tcpmon-.el7.x86_64.rpm
```
## Getting started
Start collecting monitoring data:
```bash
tcpmon start
```
Collection metrics snapshot:
```bash
curl -JfSsLO http://127.0.0.1:6789/backup
```
Export metrics in line protocol:
```bash
tcpmon export -o metrics.txt
```
Then import `metrics.txt` in InfluxDB and find out what is going wrong.
## Configuration
Config file located at `$HOME/.tcpmon/config.yaml` (Development) or `/etc/tcpmon/config.yaml` (Production)
## Development
```bash
# build a binary
make
# build binary for Linux
make build-linux
```
## License
MIT