Update rapport_activite/rapport_activites.sh
This commit is contained in:
parent
e175bf4e33
commit
cd10c8dac7
|
@ -5,12 +5,12 @@ STORAGE_DIR="/var/www/upload/"
|
||||||
main() {
|
main() {
|
||||||
echo "h2. ## Global info"
|
echo "h2. ## Global info"
|
||||||
echo ""
|
echo ""
|
||||||
echo "* Total accounts: $(sudo -u ejabberd ejabberdctl registered_users chalec.org | egrep -v -e 'r\.giskard' -e '(lisa|bart)\.simpson' | wc -l)"
|
echo "* Total accounts: $(ejabberdctl registered_users chalec.org | egrep -v -e 'r\.giskard' -e '(lisa|bart)\.simpson' | wc -l)"
|
||||||
echo "** Active: $(count_active_accounts)"
|
echo "** Active: $(count_active_accounts)"
|
||||||
echo "** Inactive: $(count_inactive_accounts '1 MONTH')"
|
echo "** Inactive: $(count_inactive_accounts '1 MONTH')"
|
||||||
echo "** Removable: $(count_removable_accounts '6 MONTHS')"
|
echo "** Removable: $(count_removable_accounts '6 MONTHS')"
|
||||||
# echo "* Total messages stored (MAM): $(count_archived_messages) "
|
# echo "* Total messages stored (MAM): $(count_archived_messages) "
|
||||||
echo "* Total rooms active: $(sudo -u ejabberd ejabberdctl muc_online_rooms global | wc -l)"
|
echo "* Total rooms active: $(ejabberdctl muc_online_rooms global | wc -l)"
|
||||||
echo ""
|
echo ""
|
||||||
echo "_* Inactive accounts:_ no connection during last month"
|
echo "_* Inactive accounts:_ no connection during last month"
|
||||||
echo "_* Removable accounts:_ no connection in the last 6 months *and* didn't read the welcome message"
|
echo "_* Removable accounts:_ no connection in the last 6 months *and* didn't read the welcome message"
|
||||||
|
|
Loading…
Reference in New Issue