some checkmk installation adjustment
This commit is contained in:
@@ -26,8 +26,8 @@ install_mkagent()
|
||||
tag_file /etc/xinetd.d/check_mk
|
||||
sed -i -e "s/@MK_SERVER_IP@/$MK_SERVER_IP/" /etc/xinetd.d/check_mk
|
||||
|
||||
mkdir -pv /usr/lib/check_mk_agent/plugins/28800
|
||||
install_file cmk/mk_apt /usr/lib/check_mk_agent/plugins/28800/mk_apt
|
||||
mkdir -pv /usr/lib/check_mk_agent/plugins/7200
|
||||
install_file cmk/mk_apt /usr/lib/check_mk_agent/plugins/7200/mk_apt
|
||||
|
||||
# Cmk > 2.1, configure agent
|
||||
if [[ -e /var/lib/cmk-agent/cmk-agent-ctl.gz ]]; then
|
||||
@@ -36,9 +36,8 @@ install_mkagent()
|
||||
scp -O $MK_SERVER_IP:/etc/check_mk/agentpwd /tmp/mk-pwd
|
||||
/var/lib/cmk-agent/cmk-agent-ctl register --hostname $HOSTNAME \
|
||||
--server $MK_SERVER_IP --site check_mk --user check_mk --password \
|
||||
"$(read /etc/mk-pwd)"
|
||||
"$(read /tmp/mk-pwd)"
|
||||
fi
|
||||
|
||||
svc_restart xinetd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user