diff --git a/zabbix-agent-scripts/get_fts_indexing_status.py b/zabbix-agent-scripts/get_fts_indexing_status.py index 0b682bc..52d1906 100644 --- a/zabbix-agent-scripts/get_fts_indexing_status.py +++ b/zabbix-agent-scripts/get_fts_indexing_status.py @@ -79,7 +79,7 @@ nc_app_pwd = params["nc_app_pwd"] -nc_url = f"http://{nc_usr}:{nc_app_pwd}@127.0.0.1:80/remote.php/dav/files/admin/{file_test_fts_check}" +nc_url = f"http://{nc_usr}:{nc_app_pwd}@127.0.0.1:80/remote.php/dav/files/{nc_usr}/{file_test_fts_check}" upload_cmd = f"curl --location --request PUT {nc_url} --header OCS-APIRequest: true --header Destination: {nc_url} --form file=@/tmp/{file_test_fts_check}" @@ -90,7 +90,7 @@ time.sleep(10) # search test_string: only the, document testfile.pdf should be returned -search_cmd = f"occ fulltextsearch:search --output json admin {test_string}" +search_cmd = f"occ fulltextsearch:search --output json {nc_usr} {test_string}" search_file = subprocess.check_output(search_cmd.split() , stderr=subprocess.STDOUT)