Install A2enmod Redhat
. LPAR2RRD can be hosted on any Unix or Linux Operating system.
3 Installing Apache. To be able to access the web server from outside, we have to open the HTTP (80) and HTTPS (443) ports in the firewall. The default firewall on CentOS is firewalld which can be configured with the firewalld-cmd command. Firewall-cmd -permanent -zone=public -add-service=http firewall-cmd -permanent -zone=public. OwnCloud 9 Released – Create Personal/Private Cloud Storage in Linux. This article aims at – Building your personal cloud storage using ownCloud application. But what is the need of building personal cloud when there are third party hosting. Well all the third party hosting limits you to work with the given configuration and storage limit.
Rough disk space requirements:. IBM Power edition: 6GB for 100 LPARs with OS agents. IBM i OS agent: 170MB per each IBM i OS agent. VMware edition: 3GB for 100 VMs, 20 datastores, 10 ESXis.
Install A2enmod Redhat
Perl: arbitrary version coming with the OS with some additional modules, more below. Apache or any other Web server.
RRDTool: use RRDTool v1.3.5+ to allow graph feature User creation. create lpar2rrd user on a server which owns the tool and will have access to HMC/IVM or vCenter/ESXi. add a user on Unix under root account. # vi /etc/security/limits.conf @lpar2rrd hard stack -1 @lpar2rrd soft stack -1 @lpar2rrd hard data -1 @lpar2rrd soft data -1 @apache hard stack -1 @apache soft stack -1 @apache hard data -1 @apache soft data -1 If you have already running on the same host then skip to Web server configuration. Software prerequisites.
Apache. RRDTool with Perl support (rrdtool & rrdtool-perl). Perl TimeDate module. Perl XML::Simple module. Perl for PDF reporting Linux Install RRDTool, Apache and Perl on Linux like below (under root):. Linux RedHat, CentOS.
$ ssh -l padmin ivm1 padmin@ivm1: mkuser -attr pgrp=view lpar2rrd padmin@ivm1: passwd lpar2rrd Changing password for 'lpar2rrd' lpar2rrd's New password: Enter the new password again: padmin@ivm1: su - lpar2rrd # it must be done under the user identification! $ ssh -l lpar2rrd hmc1 The authenticity of host 'hmc1 (9.138.236.97)' can′t be established. RSA key fingerprint is 97:e1:a5:c2:58:3c:c6:0c:d1:6f:4d:6e:62:9c:68:4b.
Are you sure you want to continue connecting (yes/no)? Yes lpar2rrd@hmc1:. if you use a commercial SSH distribution (like F-Secure ssh) which supports only SSH2 format (above example was for OpenSSH format), then you need to convert public keys onto OpenSSH format before uploading the keys into HMC. Convert SSH2 to OpenSSH format and after that use it in mkauthkeys. # vi /etc/httpd/conf/httpd.conf AddHandler cgi-script.sh # DocumentRoot '/home/lpar2rrd/lpar2rrd/www/' Alias /lpar2rrd '/home/lpar2rrd/lpar2rrd/www/' AllowOverride AuthConfig Options Indexes FollowSymLinks Includes MultiViews Require all granted # CGI-BIN ScriptAlias /lpar2rrd-cgi/ '/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/' AllowOverride AuthConfig SetHandler cgi-script Options ExecCGI Includes FollowSymLinks Require all granted.
Linux Debian, Ubuntu: Apache2 (2.4+) Enable CGI-BIN. AddHandler cgi-script.sh Alias /lpar2rrd '/home/lpar2rrd/lpar2rrd/www/' Options Indexes FollowSymLinks Includes MultiViews Require all granted # CGI-BIN ScriptAlias /lpar2rrd-cgi/ '/home/lpar2rrd/lpar2rrd/lpar2rrd-cgi/' AllowOverride None SetHandler cgi-script Options ExecCGI Includes FollowSymLinks Require all granted Sometimes appears necessary to remove 'Require all granted' lines in both directives. Apache 1.3 - 2.3 Configure httpd.conf, it might be in different locations (depends of distribution). /etc/httpd/httpd.conf. /etc/httpd/conf/httpd.conf. /etc/opt/freeware/apache/httpd.conf (AIX). /opt/freeware/etc/httpd/httpd.conf (AIX).
# echo 'lpar2rrd' /var/adm/cron/cron.allow. If you have any problems with the GUI then check: (note that the path to Apache logs might be different, search them in /var). /var/opt/freeware/apache/logs/errorlog # Apache error log.
/var/opt/freeware/apache/logs/accesslog # Apache access log. /home/lpar2rrd/lpar2rrd/logs/error-cgi.log # LPAR2RRD CGI-BIN log. check if web configuration is ok, it should list environment Configuration of additional features You migt follow with them once you assure that LPAR2RRD is running fine. Skip it in case of VMware installation. The tools does not support OS agent on VMware VMs as it is not necessary (vCenter provides enough of information about VMs) OS agent is add-on feature for monitoring of OS memory utilization and paging (LAN & SAN traffic since 3.64). It requires the OS agent deployment to every monitored LPAR. The agent is written in Perl and calls basic OS commands to obtain required statistics like vmstat, lparstat and svmon.
CPU monitoring is still done agent-less based on HMC utilization data. Additional information about the OS agent:. supported by the OS agent. Support via the OS agent via the OS agent OS agent OS agent 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.
Connections are initiated from LPARs. Additional disk space on LPAR2RRD server (about 40MB per each monitored LPAR). Create preferable dedicated user lpar2rrd on each host with minimum rights # 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 (like above useradd). OS agent installation (client). Get the latest OS agent from.
AIX & Linux installation under root # rpm -Uvh lpar2rrd-agent-5.00-0.aix5.1.ppc.rpm # rpm -qa grep lpar2rrd-agent lpar2rrd-agent-5.00-0 AIX 7.1+ note: you might need to specify option '-ignoreos' if you get an error: 'package lpar2rrd-agent-5.00-0 is for a different operating system' # rpm -Uvh -ignoreos lpar2rrd-agent-5.00-0.aix5.1.ppc.rpm. Solaris installation under root: # gunzip lpar2rrd-agent-4.95-0.solaris-i86pc.tar.gz # tar xf lpar2rrd-agent-4.95-0.solaris-i86pc.tar # pkgadd -d. The following packages are available: 1 lpar2rrd-agent LPAR2RRD OS agent 4.95 (i86pc) 4.95. Solaris upgrade under root: # pkgrm lpar2rrd-agent # pkgadd -d. Schedule its run every minute from the crontab on every LPAR.
This line must be placed into lpar2rrd crontab: # su - lpar2rrd $ crontab -e. /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl /var/tmp/lpar2rrd-agent.out 2&1 Replace by hostname of your LPAR2RRD server.
You might need to add lpar2rrd user into /var/adm/cron/cron.allow under root user if above 'crontab -e' fails. Create lpar2rrd user on each vCenter (or ESXi not managed by vCenter) with read-only role.
Do not use local vCenter account, it must be global one!. Download Linux VMware Perl SDK in tar.gz format from VMware site.
It requires free registration at VMware. Does not matter if you are on AIX or Linux or if 32bit or 64bit package Any of that will work. We need just a few Perl scripts from that package.
Open https (443) port on your infrastructure for incoming communication from LPAR2RRD server to each monitored vCenter (or ESXi which are not managed by vCenter). $ perl /home/lpar2rrd/lpar2rrd/bin/conntest.pl 192.168.1.1 443 Connection to '192.168.1.1' on port '443' is ok Installation of VMware SDK from the GUI You can use this method only on the Virtual Appliance. Select previously downloaded Linux VMware Perl SDK, and upload it. Installation of VMware SDK manually. Install script, download VMware-vSphere-Perl-SDK-6.0.0-2503617.x8664.tar.gz into /tmp # su - lpar2rrd $ cd /home/lpar2rrd/lpar2rrd $./bin/vmwareinstall.sh /tmp /tmp/VMware-vSphere-Perl-SDK-6.0.0-2503617.x8664.tar.gz found Extracting selected package to /home/lpar2rrd/lpar2rrd/vmware-vsphere-cli-distrib. Installing selected libraries and apps to /home/lpar2rrd/lpar2rrd/vmware-lib. Continue by define VMware hosts and their credentials GUI: menu - VMware - Configure - Add credentials.
Test of vCenter (ESXi) connection (the last cmd must print vCenter time): Use double quotes around username and password only in this test $. /home/lpar2rrd/lpar2rrd/etc/lpar2rrd.cfg $ $PERL /home/lpar2rrd/lpar2rrd/vmware-lib/apps/connect.pl -version vSphere SDK for Perl version: 6.0.0 Script 'connect.pl' version: 1.0 $ $PERL /home/lpar2rrd/lpar2rrd/vmware-lib/apps/connect.pl -server -username 'lpar2rrd@yourdomain' -password 'XXXXX' Connection Successful Server Time: 2016-02-25T16:69Z. Potential issue If connect.pl is reporting a problem with Crypt::SSLeay then install it. AIX: download it from or AIX: # rpm -Uvh perl-Crypt-SSLeay-0.57-2.aix6.1.ppc.rpm Linux: # yum install perl-Crypt-SSLeay For any SSL (https) error follow.
Configuration. Continue by define VMware hosts (vCenter/ESXi) in the GUI: Add credentials for every vCenter or ESXi if it is not managed by the vCenter menu ➡ VMware ➡ Configure ➡ Add credentials (username in format: lpar2rrd@yourdomain) Test vCenter connection via 'Test' button. When you use Virtual Appliance then use 'run data load' button and wait a bit. Your vcenter appears in a few minutes after Ctrl-F5 (browser refresh). When you do not use Virtual Appliance then run./load.sh which starts collecting of VMware data.
# echo 'lpar2rrd' /var/adm/cron/cron.allow. If you have any problems with the GUI then check: (note that the path to Apache logs might be different, search them in /var). /var/opt/freeware/apache/logs/errorlog # Apache error log. /var/opt/freeware/apache/logs/accesslog # Apache access log.
/home/lpar2rrd/lpar2rrd/logs/error-cgi.log # LPAR2RRD CGI-BIN log Troubleshooting. You are on AIX and you get this error when manualy checking vCenter connection: cd /home/lpar2rrd/lpar2rrd. Etc/lpar2rrd.cfg $PERL vmware-lib/apps/connect.pl -server -username 'lpar2rrd' Server version unavailable at 'at /lpar2rrd/lpar2rrd/vmware-lib/apps/.//VMware/VICommon.pm line 734. Download song kuch is tarah teri palke meri palko se mila leibo.
Assure you are runnning LPAR2RRD 5.05+. Place /home/lpar2rrd/lpar2rrd/lib at the start of PERL5LIB in etc/lpar2rrd.cfg. Use /opt/freeware/bin/perl as PERL in the same file. Data is not being collected with this error in error.log. $ $PERL /home/lpar2rrd/lpar2rrd/vmware-lib/apps/connect.pl -server -username 'vCenter read only user' -credstore /home/lpar2rrd/lpar2rrd/.vmware/credstore/vicredentials.xml You should get the same answer with no password request.
Use the same hostname and username as defined in LPAR2RRD VMware Configuration. Below might affect only LPAR2RRD v4.x. In case you miss some performance data then (only for LPAR2RRD 4.x). Set up.
Adjust. VMware vSphere 6 API Limitation when querying performance Data: VMs graphs of MEM, DISK, NET, SWAP and COMP are all blank in the GUI You can see in LPAR2RRD error log logs/error.log. $ tail /home/lpar2rrd/lpar2rrd/logs/counter-info.txt Wed Dec 2 10:: (F1) no real counter for Disk:read:KBps: HostSystem: Wed Dec 2 10:: (F1) no real counter for Memory:active:KB: Wed Dec 2 10:: (F1) no real counter for Memory:granted:KB: $ tail /home/lpar2rrd/lpar2rrd/logs/error.logs Tue Feb 02 11:: (F10) not defined realsamplingperiod timestamps= no timestamps for XIV01./bin/vmw2rrd.pl:2491: Tue Feb 02 11:: (F13) not defined realsamplingperiod timestamps= no timestamps for XIV02./bin/vmw2rrd.pl:2491.
Adjust VMware performance counter settings to fix it, follow this document:. In case of a problem check our or contact us via.