few modules improved

This commit is contained in:
fatalerrors
2021-07-23 12:24:11 +02:00
parent cbacea764f
commit 3696a720da
4 changed files with 32 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
# ------------------------------------------------------------------------------
# Install check_mk agent using xinetd superserver
# ------------------------------------------------------------------------------
# Variable:
# * MK_SERVER: Server IP address
# * MK_PORT: Port check_mk agent will use to communicate with server
# ------------------------------------------------------------------------------
export VER_install_mkagent="0.0.1"
@@ -6,12 +13,16 @@ install_mkagent()
pkginst $MYPATH/repo/mk_agents/check-mk-agent_${MKVERSION}_all.deb
backupdist /etc/xinetd.d/check_mk
installfile check_mk /etc/xinetd.d/check_mk
sed -i -e "s/@MK_SERVER@/$MK_SERVER/" /etc/xinetd.d/check_mk
svc_restart xinetd
}
precheck_install_mkagent()
{
: # rien à vérifier
[[ -n $MK_SERVER ]] && (
prnt E "Serveur check_mk non déclaré."
die 162
)
}
export -f install_mkagent