Script location

93 views
Skip to first unread message

Fawwas Hamdi

unread,
Nov 14, 2022, 4:54:26 AM11/14/22
to Wazuh mailing list
hello guys please somebody help me with this issue. Does anybody know where is this script location within the wazuh server?  as im trying to change the default user and password for it. needed to connect Kubernetes agent directly to wazuh.

Capture.PNG

Openime Oniagbi

unread,
Nov 14, 2022, 6:58:02 AM11/14/22
to Wazuh mailing list
Hi,

Thank you for using Wazuh.


If so, please note that you can just copy the script from the documentation directly and make the necessary changes to it before you save and execute it on the server. The script is not part of the server but it is provided as a sample script that users can use.

I hope this helps.

Regards.

Fawwas Hamdi

unread,
Nov 14, 2022, 8:32:47 PM11/14/22
to Wazuh mailing list
if I were to copy the script to the server under what folder should I put it? as we are trying to install an agent on Kubernetes following this tutorial https://github.com/anjuls/wazuh-agent-kubernetes and we need the API connection as we see the default username and password is not very secure within the script that why we wanted to change it. as you can see below from we are trying to connect from the machine to Wazuh Capture.PNG
and we managed to connect to Wazuh it means that the script is executed. I still don't understand if the script does not exist within the server then how our Kubernetes agent can connect to the Wazuh server and read the default username and password provided within the script?

Openime Oniagbi

unread,
Nov 15, 2022, 4:02:24 AM11/15/22
to Wazuh mailing list
Hi,

Please copy the script and save it to a file as login_script.py. The file can be saved anywhere in the directory of the Wazuh server. Edit the file to change the credentials before you run it. You can then run the script as seen below:

Screenshot 2022-11-15 105950.png
To further clarify, you must save the script to a directory in your Wazuh server.

I hope this helps.

Regards.
Reply all
Reply to author
Forward
0 new messages