This file needs to be copied to
/opt/omd/sites/sitename/local/lib/python3/cmk/base/plugins/agent_based/
There you can make then the modifications.
This file needs to be copied to
/opt/omd/sites/sitename/local/lib/python3/cmk/base/plugins/agent_based/
There you can make then the modifications.