Le fichier 'lpar2rrd.cfg' est le fichier de configuration du service LPAR2RRD.

Il se trouve de base dans le répertoire '/home/lpar2rrd/lpar2rrd/etc'.

Attention, il peut y avoir un fichier 'lpar2rrd.cfg' également sous '/home/lpar2rrd/lpar2rrd'.

En interrogant la configuration LPAR2RRD depuis l'interface graphique, on s'aperçoit que c'est bien ces fichiers qui est utilisé.

Ne pas oublier donc de modifier ce fichier, notamment pour ajouter une console HMC.

Après modification de ce fichier, il est possible de relancer la récupération à l'aide de la commande '/home/lpar2rrd/lpar2rrd/load.sh'.

Exemple de fichier de configuration:

#
# LPAR2RRD main configuration file
# LPAR2RRD home :

version=4.60


# Update following parametrs
############################

# WWW directory where the tool places graphs, directory must exist before the first run, make sure
# that rights are correct
# Directory has to be configured in the WEB server
  WEBDIR=/tools/lpar2rrd/lpar2rrd/www

# user for download data from HMC or IVM, it must exist on HMC and must have allowed access via ssh-keys
  HMC_USER=lpar2rrd

# HMC or IVM hostname(s) (you can specify list of hostnames separated by a space, all in double comma)
  HMC_LIST="HMC1 HMC2"

# You can exclude managed systems here (you can specify list of managed systems separated by a colon ":")
#  usefull when one of managed system does not support utilization data collection
#  (i.e. due to old pSeries firmware)
  MANAGED_SYSTEMS_EXCLUDE=""

# Start LPAR2RRD daemon
# It is used for receiving memory data from LPARs
# You have to install an agent on every LPAR as RPM and schedulle it from crontab
#
# It will need additional disk space (18MB per LPAR)
  LPAR2RRD_AGENT_DAEMON=0
  LPAR2RRD_AGENT_DAEMON_PORT=8162
  LPAR2RRD_AGENT_DAEMON_IP=0.0.0.0
                                   # use 0.0.0.0 for listening on all interfaces

# Live Partition Mobility, default it is enabled
# It is a premium feature, not available in free LPAR2RRD version
  LPM=1

# Live Partition Mobility excludes
# You can specify list of HMC/IVM/SDMC, servers or lpars separated by a colon ":" excluded from LPM operations
# example LPM_LPAR_EXCLUDE = "lpar1:lpar2:lpar3"
  LPM_HMC_EXCLUDE=
  LPM_SERVER_EXCLUDE=
  LPM_LPAR_EXCLUDE=

# Perl binary
  PERL=/usr/bin/perl

# Path to RRDTool binary
  RRDTOOL=/opt/freeware/bin/rrdtool

# location of RRDp.pm (check if this file is in that directory)
# It might be also in RRDTOOL dir tree like here : /usr/local/rrdtool-1.2.15/lib/perl
# You can use more paths separated by a colon for diferent necessary Perl modules
  PERL5LIB=/opt/freeware/lib/perl/5.8.0:/opt/freeware/lib/perl/5.8.8:/usr/opt/perl5/lib/site_perl/5.8.2

# SSH client
  # in case you need to use special identity file "ssh -i $HOME/.ssh/lpar2rrd"
  SSH=ssh
# SSH identity for "real-time" refresh
  SSH_WEB_IDENT=/tools/lpar2rrd/.ssh/realt_dsa

# Default width and height of RRDTOOL pictures (only for "Historical reports")
  RRDHEIGHT=150
  RRDWIDTH=700
# Dashboard defaults
  DASHB_RRDHEIGHT=50
  DASHB_RRDWIDTH=120

# sample rate --> should correspond with Utilization data collection sample rate of managed systems
# On HMC : # lslparutil -r config -m $managed_name -F sample_rate
# Run following script to check it globally : #./sample_rate.sh
# lpar2rrd 1.x supports only 3600 (1 hour), 2.x supports on HMC 7.3.3+ 30sec, 60sec, 300sec
#   1800sec, 3600sec. Default and preferable in 2.x is 60sec.
# For old HMC (before 7.3.3) it automaticaly switches to 3600sec,
#   the following param then has no effect
  SAMPLE_RATE=60

# Show HW configuration, (1/0)
# HW info can be customized in following shell scripts:
#   hw_cfg_lpar.sh (for LPAR details)
#   hw_cfg_sys.sh  (for managed system details)
  HWINFO=1

# Show LPAR config changes and changes in state from HMC log for last 100 days (for each server)
# If == 0 then it is switched off
  SYS_CHANGE=100

# verbose level (0/1)
  DEBUG=2
  PICTURE_COLOR=F7FCF8

# Include export to CSV
# Exclude it if you do not want it and you do not have installed Perl XML support
  EXPORT_TO_CSV=1

# Capacity on Demand usage graphs
  COD=1

# HEA and FC stats [1/0], it is necessary also schedule regulary run load_hea.sh from cron
  HEA=1
# Sample rate for HEA stats in secs
  STEP_HEA=300

# set amount of lpars in Top 10 page
  TOPTEN=50

# CPU Configuration Advisor: max/entitle ratio when it warns above (yellow)
  MAX_ENT=2

# Directory where the tool is installed (self detection)
 if [ ! "$BASH_SOURCE[0]"x = "x" ];then
    cfg_file=`echo "$BASH_SOURCE[0]"|sed 's/\[.*\]//'`
    if [ ! "$cfg_file"x = "x" -a -f "$cfg_file" ]; then
      dir_etc=`dirname $cfg_file`
      INPUTDIR=`dirname $dir_etc`
    else
      INPUTDIR=`dirname $0`
    fi
  else
    INPUTDIR=`dirname $0`
  fi

# error log
  ERRLOG=$INPUTDIR/logs/error.log

# binnary dir
  BINDIR="$INPUTDIR/bin"


export HMC_LIST HMC_USER WEBDIR INPUTDIR RRDTOOL DEBUG PERL PICTURE_COLOR SAMPLE_RATE SSH HEA EXPORT_TO_CSV
export HWINFO MANAGED_SYSTEMS_EXCLUDE RRDHEIGHT RRDWIDTH PERL5LIB SYS_CHANGE ERRLOG STEP_HEA MAX_ENT COD
export SSH_WEB_IDENT version TOPTEN LPM LPM_SERVER_EXCLUDE LPM_LPAR_EXCLUDE LPM_HMC_EXCLUDE BINDIR
export LPAR2RRD_AGENT_DAEMON LPAR2RRD_AGENT_DAEMON_PORT LPAR2RRD_AGENT_DAEMON_IP
export DASHB_RRDHEIGHT DASHB_RRDWIDTH

if [ `uname -a|grep AIX|wc -l` -eq 1 ]; then
  export LDR_CNTRL=MAXDATA=0x80000000
fi

 

 

icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone