Skip to content

fbs/collectd-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Collectd decoder

A simple collectd network packat decoder written in python. It has support for encrypted packets.

It doesn't do anything smart. It just does it best decoding packets and prints them to stdout.

Only tested with collectd 4.10 packet formats

Usage

Capture data first, keep your tcpdump as specific as possible:

$ sudo tcpdump -nn -i eth0 -w dump.pcap udp and port 25826 and host 13.0.0.37

Then parse:

$ python3 ./collectd_decoder.py -f dump.pcap [-p enc_passwd]

Output should look something like:

########################################
HOST rofl.copter.ninja
TIMEHR Thu May 1 10:00:01 2019
INTERVALHR 300
PLUGIN table
PLUGIN_INSTANCE cpu
TYPE gauge
TYPE_INSTANCE load
VALUES [['GAUGE', 9000.1]]

About

Decode collectd network packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages