Home      
  
   Discussion Forum      
  
   *Blog      
  
   www.quest.com      
  
Welcome Register | Login
Jul 1

Written by: Quest Field Team
7/1/2009 9:21 AM

By Brian Wheeldon, Solution Architect

Once you have a few prerequisites in place, you can automate the process of installing Foglight Agent Manager (FglAM):

  1. Foglight 5.2.4 or higher
  2. FglAM 5.2.4 or higher deployed on the Foglight Management Server (FMS)
  3. 'wget' installed on the host to be monitored and on the path of the user designated to run the Foglight agents

Wget is a utility for downloading content from web servers. It's standard on most Linux and some Solaris distributions and is available for installation on AIX and HP. See http://www.gnu.org/software/wget for more information. The following example scripts use wget, but you could replace it with any file-retrieval tool that downloads content using HTTP, such as cURL or a Perl script that uses the LWP::Simple interface.

The following example Unix shell scripts automatically download, install and start Foglight clients.
 

For each site and platform, modify the INSTALLER, FMS, and INSTALL_DIR lines of the script.
 

Run this script on the host to be monitored to automatically execute the following actions:

  1. Download the target INSTALLER from the Foglight Management Server (FMS)
  2. Make the INSTALLER executable
  3. Run the INSTALLER in silent mode, using the FMS and INSTALL_DIR specified
  4. Start the installed client in daemon mode
  5. Remove the INSTALLER
  6. echo the log file location to validate the startup

The scripts should be run as the user designated to run Foglight agents on the target host.

install_fglam.sh
#!/bin/sh
# Copyright 2009 Quest Software, Inc.
# ALL RIGHTS RESERVED.
# Change Log
# 20090820 updated for Foglight 5.5

# Script to Download, Install and Run Foglight Agent Manager (5.2.4 and higher)

# Modify these values according to your environment
# 5.2 installers: fglam-linux-ia32.bin, fglam-linux-x86_64.bin, fglam-solaris-sparc.bin, 
# fglam-solaris-ia32.bin, fglam-aix-powerpc.bin, fglam-hpux-parisc.bin, or fglam-hpux-ia64.bin
# 5.5 installers: prepend "fglam-5_5_x-" to architecture, e.g. fglam-5_5_5-solaris-sparc.bin
INSTALLER=fglam-5_5_5-linux-ia32.bin
# Foglight Management Server location
FMS=http://10.4.118.112:8080
# Installation directory should be writable by the FlgAM user INSTALL_DIR=/opt/Quest_Software/Foglight_Agent_Manager # Foglight Management Server version (specified as 524, 525,..., 555). FMS_VER=555 # The following lines usually do not require configuration # URL for downloading installers (requires FMS 5.2.4+). FMS_INSTALLERS=/console/installer/download-installer.action?downloadId= if [ $FMS_VER -lt 550 ]; then FMS_INSTALLERS=/catalyst-glue-service/installers/ fi # Download the installer wget --tries=10 ${FMS}${FMS_INSTALLERS}${INSTALLER} -O ${INSTALLER} # Make the installer executable chmod a+x ./${INSTALLER} # Run the installer, specifying the install location and FMS address ./${INSTALLER} --silent --fms url=${FMS} --installdir ${INSTALL_DIR} # Start Foglight Agent Manager ${INSTALL_DIR}/bin/fglam --daemon # To automatically migrate agents from a previous SPID installation, add # -Dquest.spid.migration=PATH_TO_SPID to the flgam startup (first time only) # Remove the installer rm $INSTALLER # Validate echo Installation complete. echo Use tail -f ${INSTALL_DIR}/state/default/logs/FglAM*.log to validate the install. # This software is the confidential and proprietary information of # Quest Software Inc. ("Confidential Information"). You shall not # disclose such Confidential Information and shall use it only in # accordance with the terms of the license agreement you entered # into with Quest Software Inc. # # QUEST SOFTWARE INC. MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT # THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, # INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR # NON-INFRINGEMENT. QUEST SOFTWARE SHALL NOT BE LIABLE FOR ANY # DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING # OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. # -----------

This script implements a 'pull' install from a given client host.

The Foglight Installation Guide includes a chapter called "Performing Large-Scale Deployments of the Foglight Agent Manager" that outlines the procedure to script deployment to multiple hosts at once using ssh 'push'.

Please remember that this script is not supported by Quest Technical Support, but if you post your feedback and questions to foglight.org, you are likely to get a response.

Happy deployments from the Foglight Field Team!

 

Tags:

Re: Quick and easy scripts to download, install and start Foglight clients

Nicely scripted Brian.

By organicIT on   3/6/2010 10:33 AM
 News

 

Gartner Positions Quest
as a Leader
in Magic Quadrant for
Application Performance
Monitoring

Get your copy of the report 

 

 Blogs
 Latest Release

 

Foglight v5.5.5
Download Product

 

  

 Related Communities
 Related Quest Tools

 

Home | Discussion Forum | Blog | www.quest.com

@ 2008 Quest Software, Inc. All rights reserved. | Terms of Use | Trademarks | Privacy | Contact Us