LPAR2RRD Agent Installation

0
1960

Prerequisites

  • Perl interpreter (AIX usually contains it) and preferably a user account on each LPAR.
  • Opened TCP communication between each LPAR and LPAR2RRD server on port 8162.
    Connections are initiated from LPARs.
  • Additional disk space on LPAR2RRD server (about 40MB per each monitored LPAR)

Agent – client installation

Agent RPM builds can be found here /home/lpar2rrd/lpar2rrd/agent:

  • AIX : lpar2rrd-agent-4.00-0.aix5.1.ppc.rpm (for every AIX version)
  • Linux on Power: lpar2rrd-agent-4.00-0.Linux.ppc.rpm

Installation under root on every LPAR:

# rpm -i lpar2rrd-agent-4.00-0.aix5.1.ppc.rpm
# rpm -qa|grep lpar2rrd     # check if it is installed
  lpar2rrd-agent-4.00-0

Upgrade under root:

# rpm -Uvh lpar2rrd-agent-4.00-0.aix5.1.ppc.rpm

Create a dedicated user lpar2rrd on each host with minimum rights or use any other account

# useradd -s /usr/bin/ksh  -c "LPAR2RRD agent user" -m lpar2rrd

In case of VIO server do not use padmin account and mkuser cmd, that would not work!
Create the account under root in the same way as on usual AIX.

Then is necessary to schedule its run every minute from the crontab on every LPAR.
Assure the new user can use crontab in /var/adm/cron/cron.allow and allow it if does not:

# echo "lpar2rrd" >> /var/adm/cron/cron.allow

This line should be placed into lpar2rrd user crontab:

crontab -e lpar2rrd
* * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl __LPAR2RRD-SERVER__ > /var/tmp/lpar2rrd-agent.out 2>&1

Replace __LPAR2RRD-SERVER__ by hostname of your LPAR2RRD server.

LPAR2RRD server configuration

The server part (daemon) is started automatically during the next LPAR2RRD run (from load.sh) when is set parameter LPAR2RRD_AGENT_DAEMON=1 in etc/lpar2rrd.cfg.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.