librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
116 stars 187 forks source link

Add HTTPS with CA file and Authorization header from file for opensearch script #517

Closed Marco-Valle closed 2 months ago

Marco-Valle commented 2 months ago

Features:

Options added:

Example: ./opensearch -h 127.0.0.1 -p 9200 -S -c /etc/wazuh-indexer/certs/root-ca.pem -a creds

File creds with Authorization header Basic: Basic

Example creds: Basic YWRtaW46cGFzc3dvcmQ=

Tested with wazuh-indexer 4.7.3-1 on Debian 12.5

VVelox commented 2 months ago

Thanks! <3