42 lines
1.1 KiB
Erlang
42 lines
1.1 KiB
Erlang
|
-module(ejabberd_observer_cli).
|
||
|
|
||
|
-export([start/0]).
|
||
|
|
||
|
start() ->
|
||
|
application:set_env(observer_cli, plugins, plugins(), [{persistent, true}]),
|
||
|
observer_cli:start_plugin().
|
||
|
|
||
|
plugins() ->
|
||
|
[
|
||
|
#{
|
||
|
module => ejabberd_observer_cli_vhosts,
|
||
|
title => "VHosts",
|
||
|
interval => 1600,
|
||
|
shortcut => "V",
|
||
|
sort_column => 2
|
||
|
},
|
||
|
#{
|
||
|
module => ejabberd_observer_cli_users,
|
||
|
title => "Users",
|
||
|
interval => 1600,
|
||
|
shortcut => "U",
|
||
|
sort_column => 2
|
||
|
},
|
||
|
%% #{module => ejabberd_observer_cli_userstophost, title => "Users Top Vhost",
|
||
|
%% interval => 1600, shortcut => "T", sort_column => 2},
|
||
|
#{
|
||
|
module => ejabberd_observer_cli_muc,
|
||
|
title => "MUC",
|
||
|
interval => 1600,
|
||
|
shortcut => "M",
|
||
|
sort_column => 2
|
||
|
},
|
||
|
#{
|
||
|
module => os_stats_plug,
|
||
|
title => "OS",
|
||
|
interval => 2000,
|
||
|
shortcut => "O",
|
||
|
sort_column => 2
|
||
|
}
|
||
|
].
|