simple system stats script for graphite

so i wrote a little script for dumping some stats to a graphite server.

script is located here.

all you have to do to get this working:
ensure nc is installed
ensure vmstat is installed
change gserver and gport to matching graphite server and port
and cron this to run every minute or so.

it will graph :
cpu.idle
cpu.systime
cpu.usertime
cpu.wait-IO
swap.swapped-in
swap.swapped-to
mem.buffers
mem.cache
mem.virtfree
mem.virtswap
disk.free
disk.total
disk.used
load.1-minute
load.5-minutes
load.15-minutes
mem.free
mem.total
mem.used
swap.free
swap.total
swap.used
users

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *