https://github.com/fbs/collectd-decoder
Decode collectd network packages
https://github.com/fbs/collectd-decoder
Last synced: about 2 months ago
JSON representation
Decode collectd network packages
- Host: GitHub
- URL: https://github.com/fbs/collectd-decoder
- Owner: fbs
- Created: 2019-05-17T08:45:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T09:34:59.000Z (about 7 years ago)
- Last Synced: 2025-12-26T06:48:19.412Z (6 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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]]
```