For When You Can't Have The Real Thing
[ start | index | login ]
start > munin > qmail-qstat

qmail-qstat

Created by dave. Last edited by dave, 14 years and 8 days ago. Viewed 3,578 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

qmail-qstat plugin

#!/bin/bash

if [ "$1" = "config" ] ; then echo 'graph_title qmail-qstat' echo 'graph_order messages' echo 'graph_vlabel Messages' echo 'graph_category qmail' echo 'messages.label msgs' echo 'messages.warning 200' echo 'messages.critical 500' exit 0 fi echo "messages.value `/var/qmail/bin/qmail-qstat | grep e: | awk '{print $4}'`"

To make this work, I had to create a /etc/munin/plugin-config.d/qmail file (adding it to /etc/munin/plugins.conf didn't work):

[qmail*]
user root
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt