Skip to content

jktr/mumble-ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mumble-ping

This implements mumble's ping protocol and outputs the gathered statistics in influxdb's line protocol 2.0 or as JSON.

Goals for this project were:

  • trying out name resolution and UDP sockets in C
  • building a fully statically linked executable with nix
  • compling with musl libc instead of glibc
  • having a portable (non-python) mumble scraper until telegraf supports mumble

example:

$ ./mumble-ping --influx mumble.example.com
mumble,server=mumble.example.com,port=64738,version=1.3.0 users=3u,users_max=100u,bandwidth=125000u,latency=15u 1610319359057131867
$ ./mumble-ping --json mumble.example.com
{"server":"mumble.example.com","port":64738,"version":"1.3.0","users":3,"users_max":100,"bandwidth":125000,"latency":15,"timestamp":1610319359057131867}
tag/field relation to server unit
server canonical DNS name
port port, ignoring SRV records
version version number, ignoring zeroth component
users currently connected users
users_max maximum user capacity
bandwith per-user bandwidth cap bits/second
latency .5 RTT milliseconds

Note that the measurement's nanosecond timestamp is adjusted for server latency.

About

gathers mumble statistics via udp ping protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published