2 modifications are needed in compared to the original plugin from munin
exchange.
1. Change the family from auto to contrib, so that the plugin will be
included in munin-plugins-extra.
2. Small fix for the autoconf section, which currently answers yes, even
if ejabberd is not installed.
Here's the diff:
--- ejabberd_.orig 2009-09-10 14:26:28.828248996 +0300
+++ ejabberd_.new 2009-09-10 14:27:17.424877909 +0300
@@ -43,12 +43,12 @@
# [ejabberd*]
# env.days 1 7 30
#
-#%# family=auto
+#%# family=contrib
#%# capabilities=autoconf suggest
EJCTL=$(which ejabberdctl)
if [ "$1" == "autoconf" ]; then
- if [ -x $EJCTL > /dev/null ]; then
+ if [ -x "$EJCTL" > /dev/null ]; then
echo yes
exit 0
fi
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]