Update checkmk.sh

This commit is contained in:
2024-07-10 14:11:30 +00:00
parent f6e7bd027f
commit 6554e823b9

View File

@@ -27,7 +27,7 @@ set -e
CHECK_MK_SERVER="gauntcheckmk.home.johnhgaunt.com"
SITE_NAME="Gaunt"
API_URL="http://${CHECK_MK_SERVER}/${SITE_NAME}/check_mk/api/1.0"
USERNMAE="automation"
USERNMAE="agent_registration"
PASSWORD="$1"
AUTHORIZATION_HEADER="Authorization: Bearer ${USERNMAE} ${PASSWORD}"
read -e -p "Enter Hostname: " -i "$(cat /etc/hostname)" HOSTNAME