Update : GLPI file config
This commit is contained in:
parent
6ad0fbd0b0
commit
dcbae79b06
@ -1,2 +1,3 @@
|
||||
# variables
|
||||
GLPI_SERVER="glpi.tips-of-mine.fr"
|
||||
GLPI_SERVER="glpi.tips-of-mine.fr"
|
||||
GLPI_TAG="SecuredServer"
|
@ -92,7 +92,7 @@ install_glpi_agent() {
|
||||
# Configure GLPI agent
|
||||
log_message "INFO" "Configuring GLPI agent"
|
||||
|
||||
local glpi_conf="/etc/glpi-agent/agent.cfg"
|
||||
local glpi_conf="/etc/glpi-agent/conf.d/00-install.cfg"
|
||||
|
||||
# Backup existing configuration if it exists
|
||||
if [ -f "$glpi_conf" ]; then
|
||||
@ -105,7 +105,7 @@ install_glpi_agent() {
|
||||
# Generated by security hardening script
|
||||
|
||||
# Server URL - Replace with your actual GLPI server URL
|
||||
server = https://"$GLPI_SERVER"/glpi/api/inventory
|
||||
server = https://"$GLPI_SERVER"/marketplace/glpiinventory/
|
||||
# Disable SSL certificate validation for testing (set to 1 for production)
|
||||
no-ssl-check = 0
|
||||
# Run as daemon (0 = no, 1 = yes)
|
||||
@ -119,7 +119,9 @@ scan-profiles = 1
|
||||
# Inventory frequency (in hours)
|
||||
delaytime = 24
|
||||
# Tag for the agent
|
||||
tag = SecuredServer
|
||||
tag = "$GLPI_TAG"
|
||||
# Color for terminal
|
||||
color = 1
|
||||
EOF
|
||||
|
||||
log_message "SUCCESS" "GLPI agent configuration created at $glpi_conf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user