#695 prosodyctl connected_users_number

Reporter Dan
Owner Nobody
Created
Updated
Stars ★ (1)  
Tags
  • Status-New
  • Type-Enhancement
  • Priority-Medium
  1. Dan on

    Please support printing the number of currently connected users with prosodyctl (comparable to ejabberdctl).

  2. Dan on

    answering to myself here: this can be achieved via mod_listusers. After placing it into the modules path you can get the number of currently connected users via: prosodyctl mod_listusers --connected |wc -l If you want to get the number of "unique" users currently online, i.e. filtering out the simultaneously connected ressources of the same user, you can achieve this via: prosodyctl mod_listusers --connected |cut -d"/" -f1 |sort -u |wc -l

  3. Dan on

    only (big) caveat here with mod_listusers is, that it depends on mod_admin_telnet, something I would definitely like to avoid, as calls to prosodyctl can be way better controlled (e.g. with sudo) than those to the local telnet console...

New comment