Skip to content

mcwelan/fping

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is up to date with umardx/fping:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

infping Monitoring with fping/InfluxDB/Grafana + Daemon SystemD

Parse fping output, store result in influxdb 1.2, and visualizing with grafana.

Requirement:

Golang:

Install golang : https://golang.org/doc/install

Fping
$ sudo apt-get install fping

Edit config.toml:

[influxdb]

host = "192.168.114.30"
port = "8086"
db = "fping"
measurement = "ping"
precision = "ms"
retentionpolicy = "infinite"
user = "fping"
pass = "fpingdakjwgkawjnmbjhwtuia"

[consul]

url = "http://a:a@consul1.dx/v1/catalog/nodes"

Install infping:

$ ./setup.sh
$ sudo systemctl status infping.service

Output

2017/06/21 20:01:02 Connected to influxdb! (dur:1.996646ms, ver:1.2.4)
2017/06/21 20:01:02 Going to ping the following ips: [192.168.200.121 192.168.114.30]
2017/06/21 20:01:12 Node:b827eb3068d3am13k, IP:192.168.200.121, loss: 0, min: 5.83, avg: 17.3, max: 76.4
2017/06/21 20:01:12 Node:consulnode, IP:192.168.114.30, loss: 0, min: 0.47, avg: 0.59, max: 0.68

Consul Members

$ consul members
Node        		Address              Status  Type    Build  Protocol  DC
consulnode  		192.168.114.30:8301  alive   server  0.8.3  2         dc1
b827eb3068d3am13k	192.168.200.121:8301 alive   client  0.8.3  2         dc1

About

Monitoring with fping/InfluxDB/Grafana + Daemon SystemD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 85.3%
  • Shell 14.7%