BBS server software that provides good stats? reddit / bbs ---------------------------------------------------------------------- [deleted] · 2021-09-27 01:27 [deleted] ---------------------------------------------------------------------- fang-castro · 2021-09-27 01:55 MPL? ---------------------------------------------------------------------- SpecialConditions · 2021-09-27 02:01 I can't seem to find a variable or function that will return the number of users online. I can get daily, weekly, and monthly stats though. Maybe I'm missing something ---------------------------------------------------------------------- fang-castro · 2021-09-27 02:06 ask the brainiacs on fsxNet ---------------------------------------------------------------------- dikkiesmalls · 2021-09-27 03:55 I think mystic can use python as well now, that may be your best option ---------------------------------------------------------------------- denzuko · 2021-09-27 04:28 Nah... its simpler to write a custom login matrix in MPL and when a successful user logins just send a statsd metric to influxdb, prometheus, or datadog. Some like the following could be added: `>>> import statsd` `>>> c = statsd.StatsClient('localhost', 8125, prefix='users')` `>>> c.incr('online') # Will be 'foo.bar' in statsd/graphite.` Then follow that up with another MPL script to trigger on disconnect to do something like the following: `>>> import statsd` `>>> c = statsd.StatsClient('localhost', 8125, prefix='foo')` `>>> c.decr('bar') # Will be 'foo.bar' in statsd/graphite.` Same can be done for a few other metrics. Also the mystic.dat is technically a database and if one reads the pascal source code they can pull out the schema and then related metrics could be processed. Have a few scripts on xmcore that does that that but with the recent updates I may have to revisit them and polish it up for public use. ---------------------------------------------------------------------- denzuko · 2021-09-27 04:31 Ok, the stats thing may be possible but paging sysop is why sysops are usually logged in most of the time. It's an allegorical (and possible precursor) to the live help chat op windows one sees on SaaS sites. ---------------------------------------------------------------------- gnu2tux · 2021-09-27 09:30 Even with my super limited knowledge of MPL, I can tell you that exporting that data from Mystic using either native MPL or Python is pretty trivial. I'm sure there's already mods that do this, or at least tutorials that shown how to do it. ---------------------------------------------------------------------- SpecialConditions · 2021-09-27 11:36 That has crossed my mind. I think that I'll go this route. ---------------------------------------------------------------------- crashj · 2021-10-03 00:10 Synchronet BBS captures this in both user information "I" and in logs that are accessible as a sysop like ;LOG. Plus all of the logs are exposed in the filesystem as well.