ejabberdctl stats returning error

Hi All,

I tried to execute the "ejabberdctl stats test1" from command line and as well as from API. Both returns error for me. Please help me to retrieve the statistical information about the user via mod_stats module

Thanks in Advance

$ ejabberdctl stats

$ ejabberdctl stats test1
Problem 'error {case_clause,<<"test1">>}' occurred executing the command.
Stacktrace: [{mod_admin_extra,stats,1,
                              [{file,"src/mod_admin_extra.erl"},{line,1499}]},
             {ejabberd_ctl,call_command,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,353}]},
             {ejabberd_ctl,try_call_command,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,322}]},
             {ejabberd_ctl,process2,4,
                           [{file,"src/ejabberd_ctl.erl"},{line,271}]},
             {ejabberd_ctl,process,2,
                           [{file,"src/ejabberd_ctl.erl"},{line,249}]},
             {rpc,'-handle_call_call/6-fun-0-',5,
                  [{file,"rpc.erl"},{line,206}]}]

$ ejabberdctl stats
Error: the command "stats" requires 1 more argument.
  Command Name: stats
  Arguments: name::binary
  Returns: stat::integer
  Tags:  stats
  Description:  Get statistical value: registeredusers onlineusers onlineusersnode uptimeseconds processes
Error: the command "stats" requires 1 more argument.


$ ejabberdctl stats registeredusers
2                                                                                                                               

$ ejabberdctl stats uptimeseconds
60
Syndicate content