VMware Monitoring
Consider usage of our brand new full-stack infrastructure monitoring tool XorMon Next Generation as LPAR2RRD replacement.
It brings a new level of infrastructure monitoring by relying on a modern technology stack.
In particular, reporting, exporting, alerting and presentation capabilities are unique on the market.
Assign lpar2rrd@xorux.com user read-only role |
perl /home/lpar2rrd/lpar2rrd/bin/conntest.pl <vCenter-host> 443 Connection to <vCenter-host> on port "443" is ok
# su - lpar2rrd cd /home/lpar2rrd/lpar2rrd ./bin/vmware_install.sh /tmp /tmp/VMware-vSphere-Perl-SDK-7.0.0-17698549.i386.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 UI: menu ➡ VMware ➡ Configure ➡ Add credentials
cd /home/lpar2rrd/lpar2rrd . etc/lpar2rrd.cfg $PERL vmware-lib/apps/connect.pl --version vSphere SDK for Perl version: 7.0.0 Script 'connect.pl' version: 1.0 $PERL vmware-lib/apps/connect.pl --server <vCenter host> --username "lpar2rrd@your_domain" --password "XXXXX" Connection Successful Server Time : 2016-02-25T16:28:44.086369ZIf you get output like below then follow bellow Troubleshooting section
Server version unavailable at 'https://<vCenter host>:443/sdk/vimService.wsdl' at /home/lpar2rrd/lpar2rrd/vmware-lib/apps/../VMware/VICommon.pm line 704.
cd /home/lpar2rrd/lpar2rrd ./load.sh
cd /home/lpar2rrd/lpar2rrd . etc/lpar2rrd.cfg $PERL vmware-lib/apps/connect.pl --server <server name> --username "lpar2rrd" Server version unavailable at 'https://vcenter01:443/sdk/vimService.wsdl' at /lpar2rrd/lpar2rrd/vmware-lib/apps/..//VMware/VICommon.pm line 734.
more /home/lpar2rrd/lpar2rrd/logs/error.log Thu Feb 18 10:49:01 2016: vmware name: vcenter01 has not array of hosts ?!? : ...
cd /home/lpar2rrd/lpar2rrd . etc/lpar2rrd.cfg $PERL vmware-lib/apps/connect.pl --server <vCenter host> --username "lpar2rrd@your_domain" --password "XXXXX" Connection Successful Server Time : 2016-08-02T06:58:26.355767Z
$PERL vmware-lib/apps/connect.pl --server <vCenter host> --username "vCenter read only user" --credstore .vmware/credstore/vicredentials.xml
# useradd -c "LPAR2RRD agent user" -m lpar2rrd
# rpm -Uvh lpar2rrd-agent-5.00-0.noarch.rpm # rpm -qa|grep lpar2rrd-agent lpar2rrd-agent-5.00-0
# gunzip lpar2rrd-agent-5.00-0.solaris-i86pc.tar.gz # tar xf lpar2rrd-agent-5.00-0.solaris-i86pc.tar # pkgadd -d . The following packages are available: 1 lpar2rrd-agent LPAR2RRD OS agent 5.00 (i86pc) 5.00 ...Solaris upgrade under root:
# pkgrm lpar2rrd-agent # pkgadd -d .
# su - lpar2rrd crontab -e * * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <LPAR2RRD-SERVER> > /var/tmp/lpar2rrd-agent.out 2>&1Replace <LPAR2RRD-SERVER> by hostname of your LPAR2RRD server.
# echo "lpar2rrd" >> /etc/cron.allow
vi /home/lpar2rrd/lpar2rrd/etc/lpar2rrd.cfg LPAR2RRD_AGENT_DAEMON=1
./load.sh Starting LPAR2RRD daemon on port:8162 ...
ps -ef|grep lpar2rrd-daemon lpar2rrd 10617010 1 0 Mar 16 - 0:00 /usr/bin/perl -w /home/lpar2rrd/lpar2rrd/bin/lpar2rrd-daemon.pl netstat -an| grep 8162 tcp4 0 0 *.8162 *.* LISTEN
telnet <LPAR2RRD-SERVER> 8162 Connected to 192.168.1.1 . Escape character is '^]'.This is ok, exit either Ctrl-C or ^].
/usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl -d <LPAR2RRD-SERVER> ... Agent send : yes : forced by -d Agent send slp: sending wait: 4 OS/HMC agent working for server: <LPAR2RRD-SERVER> store file for sending is /var/tmp/lpar2rrd-agent-<LPAR2RRD-SERVER>-lpar2rrd.txtIt means that data has been sent to the server, all is fine
/usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl -d <LPAR2RRD-SERVER> ... Agent send : yes : forced by -d Agent send slp: sending wait: 1 OS/HMC agent working for server: <LPAR2RRD-SERVER> store file for sending is /var/tmp/lpar2rrd-agent-<LPAR2RRD-SERVER>-lpar2rrd.txt Agent timed out after : 50 seconds /opt/lpar2rrd-agent/lpar2rrd-agent.pl:265It means that the agent could not contact the server.
ps -ef|grep lpar2rrd-daemon lpar2rrd 10617010 1 0 Mar 16 - 0:00 /usr/bin/perl -w /home/lpar2rrd/lpar2rrd/bin/lpar2rrd-daemon.pl cd /home/lpar2rrd/lpar2rrd tail logs/error.log-daemon tail logs/daemon.out new server has been found and registered: Linux (lpar=linuxhost01) mkdir : /lpar2rrd/data/Linux/no_hmc/linuxhost01/It means that new OS agent has been registered from linuxhost01 (Linux stand-alone example)
cd /home/lpar2rrd/lpar2rrd ls -l data/<server name>/*/<VM name>/*mmm -rw-r--r-- 2 lpar2rrd staff 7193736 Mar 17 16:16 data/<server name>/no_hmc/<VM name>/cpu.mmm -rw-r--r-- 2 lpar2rrd staff 7193736 Mar 17 16:16 data/<server name>/no_hmc/<VM name>/lan-en1.mmm -rw-r--r-- 2 lpar2rrd staff 10790264 Mar 17 16:16 data/<server name>/no_hmc/<VM name>/mem.mmm -rw-r--r-- 2 lpar2rrd staff 7193736 Mar 17 16:16 data/<server name>/no_hmc/<VM name>/pgs.mmm -rw-r--r-- 2 lpar2rrd staff 7193736 Mar 17 16:16 data/<server name>/no_hmc/<VM name>/san-vscsi0.mmm -rw-r--r-- 2 lpar2rrd staff 3597208 Mar 17 16:16 data/<server name>/no_hmc/<VM name>/san_resp-vscsi0.mmm find data -name mem.mmm -exec ls -l {} \; ...
# su - lpar2rrd tar xvf lpar2rrd-7.XX.tar cd lpar2rrd-7.XX ./install.sh cd /home/lpar2rrd/lpar2rrd
cd /home/lpar2rrd/lpar2rrd . etc/lpar2rrd.cfg; $PERL bin/perl_modules_check.plIf there is missing "LWP::Protocol::https" then check this docu to fix it
su - lpar2rrd umask 022 cd /home/lpar2rrd/lpar2rrd cp html/.htaccess www cp html/.htaccess lpar2rrd-cgi
crontab -l | grep load.sh
crontab -e # LPAR2RRD UI 0,30 * * * * /home/lpar2rrd/lpar2rrd/load.sh > /home/lpar2rrd/lpar2rrd/load.out 2>&1Assure there is just one such entry in crontab.
# echo "lpar2rrd" >> /etc/cron.allow
cd /home/lpar2rrd/lpar2rrd ./load.sh
tail /var/log/httpd/error_log # Apache error log tail /var/log/httpd/access_log # Apache access log tail /var/tmp/lpar2rrd-realt-error.log # STOR2RRD CGI-BIN log tail /var/tmp/systemd-private*/tmp/lpar2rrd-realt-error.log # STOR2RRD CGI-BIN log when Linux has enabled private temp
umask 022 cd /home/lpar2rrd/lpar2rrd/ cp bin/test-healthcheck-cgi.sh lpar2rrd-cgi/go to the web browser: http://<your web server>/lpar2rrd/test.html