Global Refresh

This commit is contained in:
Ralf Mellis 2023-08-08 09:12:08 +02:00
parent 881c767571
commit 6712e46cee
16 changed files with 37 additions and 10 deletions

23
.gitignore vendored Normal file
View File

@ -0,0 +1,23 @@
# PyCache
__pycache__/
# ---> VisualStudioCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
# Exclude all "private" files (Ralf Mellis)
RaMe*
# Exclude all "private" files (Torsten Behne)
TB*

View File

@ -76,4 +76,4 @@ register.check_plugin(
"levels_database_opcache_hit_rate": (99.7, 99.1),
},
check_ruleset_name="nextcloud_database",
)
)

View File

@ -182,4 +182,4 @@ register.check_plugin(
"levels_number_of_files": (100000, 250000),
},
check_ruleset_name="nextcloud_info",
)
)

View File

@ -95,4 +95,4 @@ register.check_plugin(
"levels_users_free_space": (256.0, 128.0)
},
check_ruleset_name="nextcloud_users",
)
)

View File

@ -33,6 +33,7 @@ OPTIONS:
# set this to true to produce debug output (this clutters the agent output)
# be aware: activating this logs very sensitive information to debug files in ~/tmp
# !!DO NOT FORGET to delete these files after debugging is done!!
DEBUG = False
nc_api_endpoint = "ocs/v2.php/apps/serverinfo/api/v1/info?format=json"

View File

@ -13,4 +13,4 @@ description:
Shows several information about a Nextcloud database (type/version/size).
The check will raise WARN/CRIT if Database OP cache hit rate is below the configurable levels.
inventory:
one service is created (with several details)
one service is created (with several details)

View File

@ -15,4 +15,4 @@ description:
The check will raise WARN/CRIT if free space on disk is below the configurable levels.
The check will raise WARN/CRIT if the number of installed apps with available updates is above the configurable levels.
inventory:
one service is created (with several details)
one service is created (with several details)

View File

@ -16,4 +16,4 @@ description:
item:
userid
inventory:
one service is created for each user
one service is created for each user

View File

@ -11,4 +11,4 @@ def agent_nextcloud_arguments(params, hostname, ipaddress):
ipaddress,
]
special_agent_info['nextcloud'] = agent_nextcloud_arguments
special_agent_info['nextcloud'] = agent_nextcloud_arguments

View File

@ -132,4 +132,4 @@ graph_info["number_of_active_users_combined"] = {
("nc_active_users_last_1hour", "stack"),
("nc_active_users_last_1day", "stack"),
],
}
}

View File

@ -31,4 +31,4 @@ perfometer_info.append({
"total": 100.0,
},
],
})
})

View File

@ -40,4 +40,4 @@ rulespec_registry.register(
parameter_valuespec=_parameter_spec_nextcloud_database,
title=lambda: _("Nextcloud Database"),
)
)
)

View File

@ -4,6 +4,7 @@ from cmk.gui.plugins.wato import (
rulespec_registry,
RulespecGroupCheckParametersApplications
)
from cmk.gui.valuespec import (
Dictionary,
ListChoice,

View File

@ -4,6 +4,7 @@ from cmk.gui.plugins.wato import (
rulespec_registry,
RulespecGroupCheckParametersOperatingSystem,
)
from cmk.gui.valuespec import (
Dictionary,
ListChoice,

View File

@ -4,6 +4,7 @@ from cmk.gui.plugins.wato import (
rulespec_registry,
RulespecGroupCheckParametersApplications
)
from cmk.gui.valuespec import (
Dictionary,
ListChoice,

0
mkp/Nextcloud-2.2.0.mkp Normal file → Executable file
View File