Skip to content

Commit

Permalink
nextcloud-stats: Improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Apr 16, 2024
1 parent 2d24996 commit 21f6a67
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions check-plugins/nextcloud-stats/nextcloud-stats
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import lib.url # pylint: disable=C0413
from lib.globals import STATE_OK, STATE_UNKNOWN # pylint: disable=C0413

__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
__version__ = '2024031401'
__version__ = '2024041601'

DESCRIPTION = """This plugin lets you track the number of active
users over time, the number of shares in various categories and some storage
Expand Down Expand Up @@ -197,14 +197,19 @@ def main():
lib.txt.pluralize('update', nc_system_apps_num_updates_available),
nc_system_version,
)
msg += '* Shares: {} ({} groups, {} links [{} w/o password], {} mails, {} rooms, {} users, {} federated sent)\n'.format( # pylint: disable=C0301
msg += '* Shares: {} ({} {}, {} {} [{} w/o password], {} {}, {} {}, {} {}, {} federated sent)\n'.format( # pylint: disable=C0301
nc_shares_num_shares,
nc_shares_num_shares_groups,
lib.txt.pluralize('group', nc_shares_num_shares_groups),
nc_shares_num_shares_link,
lib.txt.pluralize('link', nc_shares_num_shares_link),
nc_shares_num_shares_link_no_password,
nc_shares_num_shares_mail,
lib.txt.pluralize('mail', nc_shares_num_shares_mail),
nc_shares_num_shares_room,
lib.txt.pluralize('room', nc_shares_num_shares_room),
nc_shares_num_shares_user,
lib.txt.pluralize('user', nc_shares_num_shares_user),
nc_shares_num_fed_shares_sent,
)
msg += '* Federated Shares: {} received\n'.format(nc_shares_num_fed_shares_received)
Expand Down

0 comments on commit 21f6a67

Please sign in to comment.