Jitsi monitoring mod, room list , occupant list

Hi, this module works for me but the json format is not compatible with my processor.

Is there a way to remove those square brackets at the beginning and end of each room?

Hi! Is this module only works with TOKEN auth? or works for internal_plain too??

Hi there,
I want to get a list of participants in the specific room. I got to know that mod_muc_size module helps us to do that… I tried adding that mod_muc_size file under the prosody-plugins directory and enable it in the configuration.
I used this mod_muc_size file. https://github.com/jitsi/jitsi-meet/blob/master/resources/prosody-plugins/mod_muc_size.lua
But when I try to “curl http://localhost:5280/sessions” I receive a 404 not found error. this is the prosody.err logs.

Aug 18 10:04:26 certmanagererrorSSL/TLS: Failed to load '/etc/prosody/certs/example.com.key': Previous error (see
 logs), or other system error. (for conference.example.com)
Aug 18 10:04:26 conference.example.com:tlserrorError creating contexts for s2sin: error loading private key (sys
tem lib)
Aug 18 10:37:08 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 10:37:08 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 10:54:33 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 10:54:33 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 10:55:46 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 10:55:46 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 11:06:45 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 11:06:45 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 11:08:02 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281
Aug 18 11:08:02 portmanagererrorError binding encrypted port for https: No certificate present in SSL/TLS configu
ration for https port 5281

Can anyone please help me out here?

Thanks

First of all, I wish to thank you for your work. I have installed and running jitsi server in a jail under FreeBSD 12.1.
Followed your configuration to implement mod_muc_status with no much luck (always getting 404 “someone is looking to you from your back” thing until I did these steps:
Downloaded all prosody modules for mod_muc_size.lua
Created mod_muc_stats.lua from your code.
Installed luarocks (v. 5.2)
Installed via luarocks net-url, basexx, luajwtjitsi and lua-cjson
As luajwtjitsi needs git, installed git
luajwtjitsi needs also luacrypto and lbase64
When I had all these installed… things didn’t work: there were warnings about failed dependencies in prosody err log. Until I removed luajwtjitsi dependencies luacrypto and lua-cjson and installed exactly the minimum versions luajwtjitsi neeed (at first I did install the newest versions at my reach).
After all that, things are working like a charm.
Hope this helps someone.

1 Like

hi, how did you fixed it? I have the similar issue - the muc is nil

For users which use Docker - if you want to make requests on 5280 port you need to forward this port in docker-compose.yml image

Thanx a lot for the contribution and it is working amazingly in our environment.
But I faced problem installing net-url (same problem as basexx error in Jitsi-meet-tokens install) and my mod_muc_status cant find token module as it was not installed due to the problem and I inspected that it was not available in the source link. So I had to comment all the token related part and atlast it worked. Any solution on that?

I also need monitoring functionality and tried to activate mod size.

  • I’m using the docker setup
  • I exposed port 5280 to the prosody container
  • in the env file I added XMPP_MUC_MODULES=muc_size
  • I deleted the config folder ~/.jitsi-meet-cfg so my .env changes have effect

After that i expected results. Two problems:

Prosody log sais: error 'app_id' must not be empty
I went ahead and added an JWT_APP_ID to the .env file but the message does NOT go away.
(I deleted the config directory).
For testing, removed authentication from the mod_muc_size.lua.

I always get 404 pages when accessing port 5280
For example my.domain:5280/sessions.
More specifically: Unknown host: my.domain.
I tried other hostnames like “meet.jitsi” (found that in the prosody config files) but it did not change anything.

Can you help me?

the new mod_muc_census module is designed to handle this server monitoring use case:

4 Likes

Niiiiiiiice! Thanks @mirth!

1 Like

Thanks,
Finally my search for room names ends here.
its working.

1 Like

Hi Chinkesh,

How to view the JSON output?

Thank you. It works after many times testing.

Now its working perfectly for me. . .

thank you @mirth can we show the name of the participants and moderator, I’m asking because when I have changed

table.insert(room_data, {
room_name = room.jid;
participants = participant_count;
created_time = room.created_timestamp;

to
room_name = room;

then I get lot’s of data like participant names etc but it’s not hard to pick up

@pratik - that capability isn’t planned for mod_muc_census because adding names introduces the risk of PII leak.