歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 在Fedora Linux系統上安裝BixServer

在Fedora Linux系統上安裝BixServer

日期:2017/2/28 17:57:32   编辑:Linux教程
BixServer 是 BixData 的核心組件, 主要用於從服務器收集數據. BixData是一個用於系統, 應用程序和網絡的監視工具.
本文介紹如何在FC4(Fedora Core 4 Linux, 也適用於最新的FC版本)上安裝bixserver, 編寫BixServer啟動腳本和以非root方式運行bixserver.
在FC4上安裝BixServer
下載和解壓bixserver軟件包(或BixAgent, 用於遠程服務器監視, 我把程序放在/usr/bin/bixdata目錄), 你可以從這裡下載: http://www.bixdata.com/downloads
BixServer和BixAgent需要Mysql庫支持, 如果你沒有安裝, 可以使用yum安裝mysqlclient*
啟動腳本
下面腳本通過使用/sbin/service命令來啟動bixserver(或bixagent, 用bixagent替換腳本中的bixserver), 和使用chkconfig命令把此腳本添加到啟動過程.
腳本放在/etc/init.d/目錄, 權限為可運行(chmod 755).
腳本非常基礎, 僅啟動或停止biserver(或 agent)
(使用runserver.sh來啟動bixserver, Bixserver 2.3版本後啟動路徑有所修改)
—————————-開始—————————-
#!/bin/sh
#
# Bixserver script: start bixserver deamon
#
# chkconfig: - 95 5
# description: Bixserver is the bixdata server which is used to collect
# data from agents about local/remote systems
#
# Source function library.
. /etc/rc.d/init.d/functions
start() {
echo -n $”BixServer: “
cd /usr/bin/bixdata;
nohup ./runserver.sh >out &
sleep 1
PID=`pidof -s -x -o $$ -o $PPID -o %PPID bixserver`
if [ $PID ]; then
echo_success
else
echo_failure
fi
echo
# RETVAL=$?;
}
stop() {
# /bin/true
echo -n “Stopping BixServer daemon: “
killproc bixserver && echo_success || echo_failure
echo
}
# See how we were called.
case “$1″ in
start)
start
;;
stop)
stop
;;
status)
;;
restart)
stop
start
;;
condrestart)
;;
reload)
;;
*)
echo $”Usage: $0 {start|stop|status|restart|condrestart|reload}”
;;
esac
exit $RETVAL
—————————-結束—————————-
Copyright © Linux教程網 All Rights Reserved