-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Omil | ||
|
||
Just a random name. | ||
|
||
Small pieces of tools to monitor network status using simple ICMP sniffer and send metric data points to Time Series Database. | ||
|
||
## Build | ||
|
||
```shell script | ||
git clone https://github.com/shallowclouds/omil.git && cd omil | ||
chmod +x build.sh | ||
./build.sh | ||
|
||
# Simple script to enable Systemd Unit | ||
sudo ./build/install.sh | ||
``` | ||
|
||
## Usage | ||
|
||
Fill the `conf/config.yml` configuration file or use `--config` to specify your configuration file. | ||
|
||
```yaml | ||
Hostname: "home-lab" | ||
Targets: | ||
- Host: "baidu.com" | ||
Name: "baidu" | ||
- Host: "google.com" | ||
Name: "google" | ||
- Host: "10.1.1.1" | ||
Name: "gateway" | ||
InfluxDBv2: | ||
Addr: "http://192.168.1.2:8086" | ||
Org: "org-name" | ||
Bucket: "bucket-name" | ||
Token: "token" | ||
``` | ||
Run the omil binary: | ||
> Sending and receiving ICMP packets needs root privilege. | ||
```shell script | ||
sudo /path/to/omil --config /etc/omil/config.yml | ||
``` | ||
|
||
OR use systemd: | ||
```shell script | ||
sudo systemctl status omil.service | ||
sudo systemctl start omil.service | ||
sudo systemctl status omil.service | ||
``` |