#!/bin/sh

echo -n "CPU `cat /proc/loadavg |cut -f1 -d' '`"| socat - udp-datagram:127.0.0.1:8124

#!/bin/sh

DATA="`hostname -s`.CPU `cat /proc/loadavg |cut -f1 -d' '`"
HOST="127.0.0.1"

echo -n $DATA | socat - udp-datagram:$HOST:8124

Use short hostname plus dot as prefix to CPU reading.
Use short hostname plus dot as prefix to CPU reading.
