Linux

Xymon client 설치

techapi 2025. 3. 11. 22:40
반응형

1. xymon client rsync 복사

KT Ucloud  : rsync -avz 172.27.0.125:/www/xymon_client_0525_5.tgz /www/

AWS         : sftp -P 4022 user@10.100.0.150

 

tar xvfz xymon_client_0525_5.tgz

 

2. xymon client 서버 접속 포트 설정

vi /www/xymon/etc/xymonclient.cfg

 

XYMONDPORT="1985"

 

3. Hostname 수정

 

echo "HOSTNAME=$HOSTNAME" >> /etc/sysconfig/network

 

service network restart

 

4. init.d 등록

vi /etc/rc.d/init.d/xymonlaunch

 

####################################

# auto start xymon

####################################

#!/bin/sh

# chkconfig: 345  90  20

# description: GridCenter is Cluster Power Middleware ..

 

PIDFILE=/www/xymon/logs/clientlaunch.$HOSTNAME.pid

 

export XYMON_CLI_HOME=/www/xymon      #path

 

#

case "$1" in

start)     #start

echo -n "Starting xymont: "

$XYMON_CLI_HOME/runclient.sh start

echo

;;

stop)      #stop

echo -n "Shutting down xymont : "

$XYMON_CLI_HOME/runclient.sh stop

echo

;;

restart)     #restart

$0 stop

$0 start

;;

*)            #usage

echo "Usage : $0 {start|stop|restart}"

exit1

esac

exit 0

 

 

## 등록 ##

chmod 755 /etc/init.d/xymonlaunch

 

cd /etc/rc3.d

ln -s ../init.d/xymonlaunch S100xymonlaunch

 

chkconfig --add xymonlaunch

 

반응형

'Linux' 카테고리의 다른 글

일일백업 script  (0) 2025.03.11
Softether VPN  (0) 2025.03.11
Log rotate 설정  (0) 2025.03.11
systemctl 관련 정리  (0) 2025.03.10
tomcat pid 를 이용한 startup/shutdown  (0) 2025.03.10