[ejabberd] New version of Munin plugin for ejabberd

Peter Viskup skupko.sk at gmail.com
Mon Nov 15 20:54:52 MSK 2010


On 11/15/2010 04:55 PM, Peter Schwindt wrote:
> Just some thing I found out:
>
> I needed to comment out that line:
>
> EJCTL="$EJCTL munin"
>
> Seems like my ejabberdctl does not understand such option.
>
> Thanks anyway,
>
> Peter
>
> On 11/15/10 16:39, Peter Schwindt wrote:
>    
Just add these lines to the ejabberdctl script:

jabber:/etc/ejabberd# diff -u /usr/sbin/ejabberdctl 
/usr/sbin/ejabberdctl.bck
--- /usr/sbin/ejabberdctl       2010-10-20 09:39:38.000000000 +0200
+++ /usr/sbin/ejabberdctl.bck   2010-10-18 23:37:02.000000000 +0200
@@ -56,15 +56,6 @@
             $KERNEL_OPTS \
             "$@"
      ;;
-    munin)
-        shift
-        exec $ERL $SNAME ejabberdctlmunin \
-            -pa $EBIN_DIR \
-            -s ejabberd_ctl \
-            -noinput \
-            $KERNEL_OPTS \
-            -extra $ERLANG_NODE "$@"
-    ;;
      *)
         exec $ERL $SNAME ejabberdctl$SUFFIX \
             -pa $EBIN_DIR \


Read this mailinglist thread [1] for more information. It is probably 
not well documented in the plugin code.
It was added because ejabberdctl issues erlang with 'random' -node 
option by default. This node entry is written to the mnesia table stored 
in memory. This could be correct description of the reason for this 
option to ejabberdctl.
Previous version of ejabberdctl (shipped with ejabberd prior 2.1 
version) used for -node value nanoseconds. The new version (in Debian) 
use PID of ejabberdctl.
You can also change the plugin and remove the munin argument (comment 
out that line) - it will work fine.

1 - http://lists.jabber.ru/pipermail/ejabberd/2009-September/005337.html

--
Peter Viskup


More information about the ejabberd mailing list