|
||||||||||||
|
FTP Data Collect Setup
|
||||||||||||
# ls LQWq-Status.pkg # pkgadd -d LQWq-Status.pkg The following packages are available: 1 LQWq-Status q-Status server client collection sub module (sparc,i386) release 2.00 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: all Processing package instance <LQWq-Status> from ...... q-Status server client collection sub module (sparc,i386) release 5.00 LogiQwest Using </var> as the package base directory. ## Processing package information. ## Processing system information. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. Installing q-Status server client collection sub module as <LQWq-Status> ## Installing part 1 of 1. /var/q-Status/bin/.DS_Store /var/q-Status/bin/CFGDIR /var/q-Status/bin/FTPxfr /var/q-Status/bin/NFSxfr /var/q-Status/bin/README /var/q-Status/bin/SSHget /var/q-Status/bin/SSHget_paraphase /var/q-Status/bin/SSHreceiveXREF /var/q-Status/bin/SSHxfr /var/q-Status/bin/Telnet.pm /var/q-Status/bin/current_configs /var/q-Status/bin/list.E10KStatus /var/q-Status/bin/list.bpClasses /var/q-Status/bin/list.bpMediaAvailable /var/q-Status/bin/list.bpStatus /var/q-Status/bin/list.disks /var/q-Status/bin/list.etcSystem /var/q-Status/bin/list.ifconfig /var/q-Status/bin/list.instantImage /var/q-Status/bin/list.mdstat /var/q-Status/bin/list.os /var/q-Status/bin/list.patchadd /var/q-Status/bin/list.patches /var/q-Status/bin/list.pkginfo /var/q-Status/bin/list.prtconf /var/q-Status/bin/list.prtdiag /var/q-Status/bin/list.prtdiagv /var/q-Status/bin/list.scluster /var/q-Status/bin/list.scmdstat /var/q-Status/bin/list.starcat /var/q-Status/bin/list.vcluster /var/q-Status/bin/list.vxprint /var/q-Status/bin/list.vxprintht /var/q-Status/bin/list.vxprintrht /var/q-Status/bin/listSunfire.pl /var/q-Status/bin/listT3.pl /var/q-Status/bin/list_configs /var/q-Status/bin/list_netbackup /var/q-Status/bin/sunfire_params /var/q-Status/bin/t3_params [ verifying class <none> ] Installation of <LQWq-Status> was successful. # |
This will install these submodules in a directory called /var/q-Status. Data will be collected in /var/q-Status/data. You will need to configure the transfer script as discussed below. You will also need to create an q-Status user on both the <server> where data is to be collected and on the <web server> where data will be transferred.
Note: If the package was previously installed, you must remove the package with pkgrm prior to installing the new version. Prior to deleting the package, remove all entries from the /var/q-Status/data directory.
To use the FTP transfer script called FTPxfr it requires that a ftp user login and password be established and a script file placed on a system being monitored. The FTPxfr is located in the /var/q-Status/bin/ directory for this purpose. It must be edited on all servers and the following parameters assigned:
|
HOST |
name of q-Status web server. |
|
FTPUSER |
valid loging for FTP file transfer. |
|
FTPPASSWD |
password of FTPUSER. |
|
SERVERDIR |
Directory on q-Status web server were files are to be sent |
After assigning the parameter, uncomment the line in list_configs script located in /var/q-Status/bin/ that contains the call to the FTPxfr script.
#!/bin/sh
# Copyright LogiQwest 2006
# Name: CFGDIR/bin/list_configs
# Version 1.00:21 Dec 2006 Created by Michael Barto
# Purpose: Master programs to call all listing scripts to generate
# an q-Status database.
DIR=`/usr/bin/dirname $0`
CFGDIR=`/bin/cat $DIR/CFGDIR`
${CFGDIR}/bin/list.os
${CFGDIR}/bin/list.patches
: : : :
: : : :
: : : :
# These item are collected for cluster
${CFGDIR}/bin/list.scluster
${CFGDIR}/bin/list.vcluster
# The following scripts are used for either FTP or SSH file transfer
# to the q-Status data directory from a system. Note these scripts
# must be edited prior to using. Comment out the appropriate
# script to use. See "FTPsetup.html" or "SSHsetup.html"
# for more information.
${CFGDIR}/bin/FTPxfr >/dev/null
# ${CFGDIR}/bin/SSHxfr >/dev/null
|
Data will then be automatically transferred each time the daemon is run to collect data.
Note: The CFGDIR parameters have already been assigned in the pkgadd program for the /var/q-Status/ directory.
Data collected by root on the servers in the list_configs program must be run as root to work properly:
0 4,6,8,10,12,14,16,18 * * 1-5 /net/<web server>/var/apache/htdocs/q-Status/bin/list_configs >/dev/null 2>&1
|