From 6432e182dbab7b2f01294a4265a400ae2e5ab065 Mon Sep 17 00:00:00 2001 From: Marius Rieder Date: Sat, 1 Jul 2023 12:36:36 +0200 Subject: [PATCH] Update bakery plugin for Checkmk 2.2 --- .devcontainer/symlink.sh | 7 +++++-- {agents/bakery => bakery}/winnfs.py | 0 package | 13 +++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) rename {agents/bakery => bakery}/winnfs.py (100%) diff --git a/.devcontainer/symlink.sh b/.devcontainer/symlink.sh index 57727b0..a9b5e65 100755 --- a/.devcontainer/symlink.sh +++ b/.devcontainer/symlink.sh @@ -5,8 +5,11 @@ for DIR in 'agents' 'checkman' 'checks' 'doc' 'inventory' 'notifications' 'pnp-t ln -sv $WORKSPACE/$DIR $OMD_ROOT/local/share/check_mk/$DIR done; -rm -rfv $OMD_ROOT/local/lib/check_mk/base/plugins/agent_based -ln -sv $WORKSPACE/agent_based $OMD_ROOT/local/lib/check_mk/base/plugins/agent_based +rm -rfv $OMD_ROOT/local/lib/python3/cmk/base/plugins/agent_based +ln -sv $WORKSPACE/agent_based $OMD_ROOT/local/lib/python3/cmk/base/plugins/agent_based + +mkdir -p $OMD_ROOT/local/lib/python3/cmk/base/cee/plugins +ln -sv $WORKSPACE/bakery $OMD_ROOT/local/lib/python3/cmk/base/cee/plugins/bakery rm -rfv $OMD_ROOT/local/lib/nagios/plugins ln -sv $WORKSPACE/nagios_plugins $OMD_ROOT/local/lib/nagios/plugins \ No newline at end of file diff --git a/agents/bakery/winnfs.py b/bakery/winnfs.py similarity index 100% rename from agents/bakery/winnfs.py rename to bakery/winnfs.py diff --git a/package b/package index 2cf74db..455995e 100644 --- a/package +++ b/package @@ -5,15 +5,12 @@ 'files': { 'agent_based': ['winnfsshare.py', 'winnfssrv.py'], 'agents': [ - 'bakery/winnfs.py', 'windows/plugins/winnfs.ps1', ], 'checkman': ['winnfsshare', 'winnfssrv'], - 'checks': [], - 'doc': [], - 'inventory': [], - 'notifications': [], - 'pnp-templates': [], + 'lib': [ + 'python3/cmk/base/cee/plugins/bakery/winnfs.py', + ], 'web': [ 'plugins/metrics/winnfssrv.py', 'plugins/wato/agent_bakery_winnfs.py', @@ -22,8 +19,8 @@ ]}, 'name': 'winnfs', 'title': u'Check for the Windows NFS Server', - 'version': '1.1.1', - 'version.min_required': '2.0.0', + 'version': '1.1.2', + 'version.min_required': '2.2.0', 'version.packaged': '2.2.0', 'version.usable_until': '2.3.0' }