Quest Foglight 常用停止启动维护命令

这里列出Linux 下 维护 Foglight 的常用命令。以下操作如未特殊说明,都是指在非root用户下操作。Foglight 安装建议在非root用户下安装配置。

1. 启动Foglight Server

登录到Foglight Server 服务器,并进入到安装目录,例如:

cd /foglight/Foglight/bin

启动:

./fmsStartup.sh

参考输出如下:

2018-04-11 12:17:12.000 INFO  [native] Attempting to start Foglight as a daemon. The startup may take some time to complete. Please check the log file for more information. Use the '--stop' command line option to shut down a running daemon.
2018-04-11 12:17:12.000 INFO  [native] Daemon process for 'Foglight' started.

如果再此执行,该命令,将有如下提示:

2018-04-11 12:08:08.000 FATAL [native] A copy of the Foglight is already running from the installation in /home/test/Quest/FoglightVE875. Only one copy of the Foglight can be run from this installation directory at any one time.
2018-04-11 12:08:08.000 INFO  [native] Storing 1 cached startup log messages into a log file in /home/test/Quest/FoglightVE875/state

 

然后使用浏览器访问确认是否启动成功。

该启动是后台进程,用户可直接退出当前登录即可。

2. 停止Foglight Server

登录到Foglight Server 服务器,并进入到安装目录,例如:

cd /foglight/Foglight/bin

./fmsShutdown.sh

类似如下输出:

2018-04-11 12:11:32.000 INFO  [native] Sending stop request to 'Foglight'process running in /home/test/Quest/FoglightVE875/state (pid 3057).
2018-04-11 12:11:32.000 INFO  [native] Shutdown request transmitted.

如果再次执行,可能会出现:

2018-04-11 12:14:04.000 WARN  [native] Foglight process does not seem to be running in /home/test/Quest/FoglightVE875/state. Will not try to stop it.

表示已经停止。

停止数据库:

 ./shutdownDb.sh

参考输出如下:

2018-04-11 12:15:06.804 WARN  The following entries in configuration "EmbeddedDatabase" are not recognized: Target.ACCESS.directory, Target.ACCESS.maxFileSize, Target.ACCESS.maxRolloverCount, Target.ACCESS.maxSetCount
2018-04-11 12:15:06.809 ERROR Could not find log target: ACCESS
2018-04-11 12:15:12.221 INFO  Checking if the embedded database still running...
2018-04-11 12:15:13.103 INFO  Successfully shutdown the embedded database

 

执行结束后,可查看是否有残留进程存在,判断是否成功。

 

ps –ef|grep –i Foglight

3. 启动 Foglight Agent Manager

Foglight Server自带本机的Agent Manager,一般会随Foglight Server启动/停止而启动/停止。

Foglight通讯进程全称为“Foglight Agent Manager”,安装在被管理主机和应用服务器所在主机上,用于代理与Foglight Server建立通讯通道。

在Foglight Server上的目录是  fglam/bin

在Unix机器上,通讯进程以进程形式存在。启动通讯进程命令为:

进入到Agent Manager 的目录,例如

cd /foglight/Foglight/fglam/bin

以daemon方式启动:

./fglam  -d

4. 停止 Foglight Agent Manager

停止:

./fglam -q

5,故障解决

查看Foglight server的日志,目录 logs下 名称类似 ManagementServer_2018-03-29_140708_001.log的文件;

查看Agent Manager的日志,目录 fglam/state/default/logs下,名称类似 FglAM_2018-03-08_162121_001.log 的文件。