Update : check ok GLPI and Wazuh

This commit is contained in:
Hubert Cornet 2025-04-25 17:04:05 +02:00
parent dcbae79b06
commit f16651450a
4 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,4 @@
# variables # variables
GLPI_SERVER="glpi.tips-of-mine.fr" GLPI_SERVER="glpi.tips-of-mine.fr"
GLPI_TAG="SecuredServer" GLPI_TAG="SecuredServer"

View File

@ -1 +1,3 @@
# # variables
WAZUH_MANAGER="YOUR_WAZUH_MANAGER_IP"

View File

@ -105,7 +105,7 @@ install_glpi_agent() {
# Generated by security hardening script # Generated by security hardening script
# Server URL - Replace with your actual GLPI server URL # Server URL - Replace with your actual GLPI server URL
server = https://"$GLPI_SERVER"/marketplace/glpiinventory/ server = https://$GLPI_SERVER/marketplace/glpiinventory/
# Disable SSL certificate validation for testing (set to 1 for production) # Disable SSL certificate validation for testing (set to 1 for production)
no-ssl-check = 0 no-ssl-check = 0
# Run as daemon (0 = no, 1 = yes) # Run as daemon (0 = no, 1 = yes)
@ -119,7 +119,7 @@ scan-profiles = 1
# Inventory frequency (in hours) # Inventory frequency (in hours)
delaytime = 24 delaytime = 24
# Tag for the agent # Tag for the agent
tag = "$GLPI_TAG" tag = $GLPI_TAG
# Color for terminal # Color for terminal
color = 1 color = 1
EOF EOF

View File

@ -8,6 +8,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Source common functions and variables # Source common functions and variables
source "./common.sh" source "./common.sh"
source "./custom/custom_wazuh"
# Function to install Wazuh agent # Function to install Wazuh agent
install_wazuh_agent() { install_wazuh_agent() {
@ -53,10 +54,6 @@ install_wazuh_agent() {
backup_file "$wazuh_conf" backup_file "$wazuh_conf"
fi fi
# Modify the configuration to point to your Wazuh server
# Replace with your actual Wazuh server IP address
local WAZUH_MANAGER="YOUR_WAZUH_MANAGER_IP"
# Configure Wazuh agent to connect to the manager # Configure Wazuh agent to connect to the manager
/var/ossec/bin/agent-auth -m "$WAZUH_MANAGER" /var/ossec/bin/agent-auth -m "$WAZUH_MANAGER"