How to correctly use DERIVE or COUNTER in munin plugins
- by Johan
I'm using munin to monitor my server.
I've been able to write plugins for it, but only if the graph type is GAUGE. When I try COUNTER or DERIVE, no data is logged or graphed.
The plugin i'm currently stuck on is for monitoring bandwidth usage, and is as follows:
/etc/munin/plugins/bandwidth2
#!/bin/sh
if [ "$1" = "config" ]; then
echo…