Editing pre built plugins in CheckMK

CMK version: 2.1
OS version: RHEL8

Hi,
I want to make a change to the following python script
/omd/sites/global/lib/python3/cmk/base/plugins/agent_based/kube_node_count.py

How do I get the changes effective? I have restarted the omd site (omd restart) but it doesn’t produce the output I require.

Thanks

Put a copy of that file in $OMD_ROOT/local/lib/python3/cmk/base/plugins/agent_based/kube_node_count.py and edit it there.

This way your changes survive an update. To activate the changes run cmk -R.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.