diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..18ff89d --- /dev/null +++ b/.gitignore @@ -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* + diff --git a/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_database.py b/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_database.py index 723dab9..3765c72 100644 --- a/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_database.py +++ b/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_database.py @@ -76,4 +76,4 @@ register.check_plugin( "levels_database_opcache_hit_rate": (99.7, 99.1), }, check_ruleset_name="nextcloud_database", -) +) \ No newline at end of file diff --git a/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_info.py b/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_info.py index 2fe044d..4c1fd06 100644 --- a/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_info.py +++ b/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_info.py @@ -182,4 +182,4 @@ register.check_plugin( "levels_number_of_files": (100000, 250000), }, check_ruleset_name="nextcloud_info", -) +) \ No newline at end of file diff --git a/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_users.py b/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_users.py index 78a7c06..223dbd5 100644 --- a/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_users.py +++ b/local/lib/python3/cmk/base/plugins/agent_based/nextcloud_users.py @@ -95,4 +95,4 @@ register.check_plugin( "levels_users_free_space": (256.0, 128.0) }, check_ruleset_name="nextcloud_users", -) \ No newline at end of file +) diff --git a/local/share/check_mk/agents/special/agent_nextcloud b/local/share/check_mk/agents/special/agent_nextcloud index 6160272..c4dc655 100755 --- a/local/share/check_mk/agents/special/agent_nextcloud +++ b/local/share/check_mk/agents/special/agent_nextcloud @@ -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" diff --git a/local/share/check_mk/checkman/nextcloud_database b/local/share/check_mk/checkman/nextcloud_database index bd78a04..08c598a 100644 --- a/local/share/check_mk/checkman/nextcloud_database +++ b/local/share/check_mk/checkman/nextcloud_database @@ -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) \ No newline at end of file diff --git a/local/share/check_mk/checkman/nextcloud_info b/local/share/check_mk/checkman/nextcloud_info index bcae4d7..f14bd45 100644 --- a/local/share/check_mk/checkman/nextcloud_info +++ b/local/share/check_mk/checkman/nextcloud_info @@ -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) \ No newline at end of file diff --git a/local/share/check_mk/checkman/nextcloud_users b/local/share/check_mk/checkman/nextcloud_users index b5060fb..db0a5e6 100644 --- a/local/share/check_mk/checkman/nextcloud_users +++ b/local/share/check_mk/checkman/nextcloud_users @@ -16,4 +16,4 @@ description: item: userid inventory: - one service is created for each user + one service is created for each user \ No newline at end of file diff --git a/local/share/check_mk/checks/agent_nextcloud b/local/share/check_mk/checks/agent_nextcloud index ad50f75..9d864e6 100644 --- a/local/share/check_mk/checks/agent_nextcloud +++ b/local/share/check_mk/checks/agent_nextcloud @@ -11,4 +11,4 @@ def agent_nextcloud_arguments(params, hostname, ipaddress): ipaddress, ] -special_agent_info['nextcloud'] = agent_nextcloud_arguments \ No newline at end of file +special_agent_info['nextcloud'] = agent_nextcloud_arguments diff --git a/local/share/check_mk/web/plugins/metrics/nextcloud_metrics.py b/local/share/check_mk/web/plugins/metrics/nextcloud_metrics.py index a4b800d..cbce1c3 100644 --- a/local/share/check_mk/web/plugins/metrics/nextcloud_metrics.py +++ b/local/share/check_mk/web/plugins/metrics/nextcloud_metrics.py @@ -132,4 +132,4 @@ graph_info["number_of_active_users_combined"] = { ("nc_active_users_last_1hour", "stack"), ("nc_active_users_last_1day", "stack"), ], -} \ No newline at end of file +} diff --git a/local/share/check_mk/web/plugins/perfometer/nextcloud_perfometers.py b/local/share/check_mk/web/plugins/perfometer/nextcloud_perfometers.py index a513286..9774e06 100644 --- a/local/share/check_mk/web/plugins/perfometer/nextcloud_perfometers.py +++ b/local/share/check_mk/web/plugins/perfometer/nextcloud_perfometers.py @@ -31,4 +31,4 @@ perfometer_info.append({ "total": 100.0, }, ], -}) \ No newline at end of file +}) diff --git a/local/share/check_mk/web/plugins/wato/nextcloud_database_rules.py b/local/share/check_mk/web/plugins/wato/nextcloud_database_rules.py index 9d4615c..8881ca8 100644 --- a/local/share/check_mk/web/plugins/wato/nextcloud_database_rules.py +++ b/local/share/check_mk/web/plugins/wato/nextcloud_database_rules.py @@ -40,4 +40,4 @@ rulespec_registry.register( parameter_valuespec=_parameter_spec_nextcloud_database, title=lambda: _("Nextcloud Database"), ) -) \ No newline at end of file +) diff --git a/local/share/check_mk/web/plugins/wato/nextcloud_info_rules.py b/local/share/check_mk/web/plugins/wato/nextcloud_info_rules.py index a19178b..f777406 100644 --- a/local/share/check_mk/web/plugins/wato/nextcloud_info_rules.py +++ b/local/share/check_mk/web/plugins/wato/nextcloud_info_rules.py @@ -4,6 +4,7 @@ from cmk.gui.plugins.wato import ( rulespec_registry, RulespecGroupCheckParametersApplications ) + from cmk.gui.valuespec import ( Dictionary, ListChoice, diff --git a/local/share/check_mk/web/plugins/wato/nextcloud_params.py b/local/share/check_mk/web/plugins/wato/nextcloud_params.py index 9992a3b..79bc6a4 100644 --- a/local/share/check_mk/web/plugins/wato/nextcloud_params.py +++ b/local/share/check_mk/web/plugins/wato/nextcloud_params.py @@ -4,6 +4,7 @@ from cmk.gui.plugins.wato import ( rulespec_registry, RulespecGroupCheckParametersOperatingSystem, ) + from cmk.gui.valuespec import ( Dictionary, ListChoice, diff --git a/local/share/check_mk/web/plugins/wato/nextcloud_users_rules.py b/local/share/check_mk/web/plugins/wato/nextcloud_users_rules.py index a9877d2..8440478 100644 --- a/local/share/check_mk/web/plugins/wato/nextcloud_users_rules.py +++ b/local/share/check_mk/web/plugins/wato/nextcloud_users_rules.py @@ -4,6 +4,7 @@ from cmk.gui.plugins.wato import ( rulespec_registry, RulespecGroupCheckParametersApplications ) + from cmk.gui.valuespec import ( Dictionary, ListChoice, diff --git a/mkp/Nextcloud-2.2.0.mkp b/mkp/Nextcloud-2.2.0.mkp old mode 100644 new mode 100755