Version 2.2.1

This commit is contained in:
2023-03-23 13:15:32 +01:00
parent f1f5083ed8
commit dd5c3c14d2
10 changed files with 98 additions and 10 deletions

View File

@@ -78,7 +78,13 @@ metric_info["nc_active_users_last_1day"] = {
}
metric_info["nc_users_free_space"] = {
"title": _("Free Space"),
"title": _("Free Space of User"),
"unit": "bytes",
"color": "22/a",
}
metric_info["nc_free_space"] = {
"title": _("Free Space on Disk"),
"unit": "bytes",
"color": "22/a",
}

View File

@@ -29,6 +29,34 @@ def _parameter_spec_nextcloud_info():
)
],
)),
("levels_free_space", Tuple(
title=_("Nextcloud levels for free disk space overall"),
elements=[
Float(
title=_("Warning below"),
default_value=8.0,
unit="GBytes",
),
Float(
title=_("Critical below"),
default_value=4.0,
unit="GBytes",
)
],
)),
("levels_number_of_files", Tuple(
title=_("Nextcloud number of files"),
elements=[
Integer(
title=_("Warning at"),
default_value=100000,
),
Integer(
title=_("Critical at"),
default_value=250000,
)
],
)),
],
)