Revert "Merge branch 'ver1.0' into 'main'"
This reverts merge request !2
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
PRODUCT_NAME=exemONE
|
||||
MODULE_NAME=exem-host-agent
|
||||
VERSION=1.2.2
|
||||
|
||||
echo ${PRODUCT_NAME} ${MODULE_NAME} ver ${VERSION}
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
service exem-host-agent start
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
service exem-host-agent stop
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
SYSTEMCTL=$(which systemctl 2> /dev/null)
|
||||
SERVICE=$(which service 2> /dev/null)
|
||||
CHKCONFIG=$(which chkconfig 2> /dev/null)
|
||||
|
||||
|
||||
if [ -n "${SYSTEMCTL}" ]; then
|
||||
systemctl stop exem-host-agent
|
||||
systemctl disable exem-host-agent
|
||||
systemctl daemon-reload
|
||||
|
||||
if [ -e "/etc/systemd/system/exem-host-agent.service" ]; then
|
||||
rm -f /etc/systemd/system/exem-host-agent.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
if [ -e "/etc/systemd/system/default.target.wants/exem-host-agent.service" ]; then
|
||||
rm -f /etc/systemd/system/default.target.wants/exem-host-agent.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
echo "exem-host-agent is disabled"
|
||||
fi
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
sudo systemctl start exem-host-agent
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
PRODUCT_NAME=exemONE
|
||||
MODULE_NAME=exem-container-agent
|
||||
VERSION=1.1.2
|
||||
|
||||
echo ${PRODUCT_NAME} ${MODULE_NAME} ver ${VERSION}
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker load -i __INST__EXEM_HOME__/container/image/exem-container-agent_image_1.1.2.tar
|
||||
|
||||
docker run -d \
|
||||
--cap-add SYS_PTRACE \
|
||||
--restart=always \
|
||||
-v /:/host:ro \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock:ro \
|
||||
-v /run/containerd/containerd.sock:/run/containerd/containerd.sock:ro \
|
||||
--env EXEM_HOME="__INST__EXEM_HOME__" \
|
||||
--env EXEM_CONTAINER_HOME="__INST__EXEM_HOME__/container" \
|
||||
--env COMMON_RECEIVER_IP="__INST__RECEIVER_IP__" \
|
||||
--env COMMON_RECEIVER_PORT="__INST__RECEIVER_PORT__" \
|
||||
--env CONTAINER_LOG_LEVEL="info" \
|
||||
--name exem-container-agent exem-container-agent:1.1.2
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker stop exem-container-agent
|
||||
docker rm exem-container-agent
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
SYSTEMCTL=$(which systemctl 2> /dev/null)
|
||||
SERVICE=$(which service 2> /dev/null)
|
||||
CHKCONFIG=$(which chkconfig 2> /dev/null)
|
||||
|
||||
|
||||
if [ -n "${SYSTEMCTL}" ]; then
|
||||
systemctl stop exem-container-agent
|
||||
systemctl disable exem-container-agent
|
||||
systemctl daemon-reload
|
||||
|
||||
if [ -e "/etc/systemd/system/exem-container-agent.service" ]; then
|
||||
rm -f /etc/systemd/system/exem-container-agent.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
if [ -e "/etc/systemd/system/default.target.wants/exem-container-agent.service" ]; then
|
||||
rm -f /etc/systemd/system/default.target.wants/exem-container-agent.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
|
||||
echo "exem-container-agent is disabled"
|
||||
fi
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
SYSTEMCTL=$(which systemctl 2> /dev/null)
|
||||
SERVICE=$(which service 2> /dev/null)
|
||||
CHKCONFIG=$(which chkconfig 2> /dev/null)
|
||||
|
||||
|
||||
# root 권한 없는 경우 불가능
|
||||
if [ "$(id -u)" -ne 0 ]; then
|
||||
echo "Not a root user. Not support service registration"
|
||||
echo "Use binary mode or image mode"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "${SYSTEMCTL}" ]; then
|
||||
# SELinux setting
|
||||
SELINUX_OPTION=$(awk -F= '/^SELINUX=/{print $2}' /etc/selinux/config)
|
||||
if [ ${SELINUX_OPTION} != "disabled" ]; then
|
||||
chcon -t bin_t __INST__EXEM_HOME__/container/script/binary_mode/start.sh
|
||||
chcon -R -t var_run_t __INST__EXEM_HOME__/container/data
|
||||
fi
|
||||
|
||||
if [ ! -e "/etc/systemd/system/exem-container-agent.service" ]; then
|
||||
systemctl enable __INST__EXEM_HOME__/container/data/service/exem-container-agent.service
|
||||
fi
|
||||
systemctl daemon-reload
|
||||
|
||||
echo "exem-container-agent is enabled"
|
||||
|
||||
else
|
||||
echo "this OS version that does not support service registration"
|
||||
echo "Use binary mode or image mode"
|
||||
exit 1
|
||||
fi
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
sudo systemctl start exem-container-agent
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
sudo __INST__EXEM_HOME__/container/script/binary_mode/stop.sh
|
||||
|
||||
sudo systemctl stop exem-container-agent
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -1,53 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
INTERVAL=3
|
||||
|
||||
if [ -n "$1" ];then
|
||||
INTERVAL="$1"
|
||||
fi
|
||||
|
||||
|
||||
PROCESS_NAME="exem-ndm-agent"
|
||||
|
||||
|
||||
HEAD=`ps -eo user,pid,pcpu,pmem,rss,sz,size,vsize,cmd | sed -n '1p'`
|
||||
echo " ${HEAD}"
|
||||
|
||||
PEAK=0
|
||||
|
||||
while :
|
||||
do
|
||||
CUR_DATE=`date +%d' '%H:%M:%S`
|
||||
|
||||
PROCESS_PID=`ps -ef | grep -v grep | grep -v vi | grep -v tail | grep -v ctl | grep -v svc | grep ${PROCESS_NAME} | awk -F' ' '{print $2}'`
|
||||
if [ -n "${PROCESS_PID}" ];then
|
||||
|
||||
RESULT=`ps -p ${PROCESS_PID} -o user,pid,pcpu,pmem,rss,sz,size,vsize,cmd --no-heading`
|
||||
|
||||
RSS=`echo ${RESULT} | awk -F' ' '{print $5}'`
|
||||
if [ ${RSS} -gt ${PEAK} ];then
|
||||
OUT_PEAK=" PEAK:${PEAK}/${RSS}"
|
||||
PEAK=${RSS}
|
||||
PEAK_STAT="peak"
|
||||
else
|
||||
OUT_PEAK=" PEAK:${PEAK}"
|
||||
PEAK_STAT=""
|
||||
fi
|
||||
|
||||
echo "${CUR_DATE} ${RESULT}${OUT_PEAK}"
|
||||
|
||||
if [ -n "${PEAK_STAT}" ];then
|
||||
echo "${CUR_DATE} ${RESULT}${OUT_PEAK}" >> peak.log
|
||||
fi
|
||||
|
||||
else
|
||||
echo "${CUR_DATE} ${PROCESS_NAME} is not running."
|
||||
PEAK=0
|
||||
fi
|
||||
|
||||
sleep ${INTERVAL}
|
||||
|
||||
done
|
||||
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
[ndm-agent]
|
||||
directory = ${EXEM_NDM_HOME}/log
|
||||
filename = ndm-agent.log
|
||||
output_type = stdout,file
|
||||
#file_permission = <permission>
|
||||
#xmlogger_ip = <xmlogger ip>
|
||||
#xmlogger_port = <xmlogger port>
|
||||
level = info
|
||||
include_us_in_time = true
|
||||
header_flag = time,pid,thread_id,level
|
||||
#limit_file_size = <megabyte>
|
||||
#backup_directory = <backup directory>
|
||||
backup_file_count = 10
|
||||
|
||||
[syslog]
|
||||
directory = ${EXEM_NDM_HOME}/log
|
||||
filename = ndm-syslog.log
|
||||
output_type = file
|
||||
#file_permission = <permission>
|
||||
#xmlogger_ip = <xmlogger ip>
|
||||
#xmlogger_port = <xmlogger port>
|
||||
level = info
|
||||
include_us_in_time = true
|
||||
header_flag = time
|
||||
#limit_file_size = <megabyte>
|
||||
#backup_directory = <backup directory>
|
||||
#backup_file_count = <backup file count>
|
||||
|
||||
[syslog-dump]
|
||||
directory = ${EXEM_NDM_HOME}/log/dump
|
||||
filename = syslog.dump
|
||||
output_type = file
|
||||
#file_permission = <permission>
|
||||
#xmlogger_ip = <xmlogger ip>
|
||||
#xmlogger_port = <xmlogger port>
|
||||
level = trace
|
||||
include_us_in_time = true
|
||||
header_flag = time
|
||||
#limit_file_size = <megabyte>
|
||||
#backup_directory = <backup directory>
|
||||
#backup_file_count = <backup file count>
|
||||
|
||||
[snmp_trap]
|
||||
directory = ${EXEM_NDM_HOME}/log
|
||||
filename = ndm-snmptrap.log
|
||||
output_type = file
|
||||
#file_permission = <permission>
|
||||
#xmlogger_ip = <xmlogger ip>
|
||||
#xmlogger_port = <xmlogger port>
|
||||
level = trace
|
||||
include_us_in_time = true
|
||||
header_flag = time
|
||||
#limit_file_size = <megabyte>
|
||||
#backup_directory = <backup directory>
|
||||
#backup_file_count = <backup file count>
|
||||
|
||||
[snmp_trap-dump]
|
||||
directory = ${EXEM_NDM_HOME}/log/dump
|
||||
filename = snmptrap.dump
|
||||
output_type = file
|
||||
#file_permission = <permission>
|
||||
#xmlogger_ip = <xmlogger ip>
|
||||
#xmlogger_port = <xmlogger port>
|
||||
level = trace
|
||||
include_us_in_time = true
|
||||
#header_flag = time,pid,level
|
||||
#limit_file_size = 10
|
||||
#backup_directory = <backup directory>
|
||||
#backup_file_count = <backup file count>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# /lib64/libcrypto.so.10 -> libcrypto.so.1.0.2k
|
||||
ln -s libcrypto.so.1.0.2k libcrypto.so.10
|
||||
# /lib64/libssl.so.10 -> libssl.so.1.0.2k
|
||||
ln -s libssl.so.1.0.2k libssl.so.10
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# /lib64/libcrypto.so.10 -> libcrypto.so.1.0.2k
|
||||
ln -s libcrypto.so.1.0.2k libcrypto.so.10
|
||||
# /lib64/libssl.so.10 -> libssl.so.1.0.2k
|
||||
ln -s libssl.so.1.0.2k libssl.so.10
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user