IBM Db2 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.
# under root user umask 022 cd /tmp tar xvfz /tmp/ibm_data_server_driver_package_linuxx64_v11.5.tar.gz cd /tmp/dsdriver ./installDSDriver . ./db2profile export DB2_HOME=/tmp/dsdriver export DB2LIB=/tmp/dsdriver/lib cpan DBD::DB2 rm -rf dsdriver ibm_data_server_driver_package_linuxx64_v11.5.tar.gz exit # of the root shell
# under lpar2rrd user su - lpar2rrd umask 022 cd /home/lpar2rrd mkdir db2_cli_odbc_driver cd db2_cli_odbc_driver tar xvfz /tmp/ibm_data_server_driver_for_odbc_cli_linuxx64_v11.5.tar.gz rm /tmp/ibm_data_server_driver_for_odbc_cli_linuxx64_v11.5.tar.gz
cd /home/lpar2rrd/lpar2rrd vi etc/lpar2rrd.cfg # IBM Db2 settings, put the path to the odbc driver DB2_CLI_DRIVER_INSTALL_PATH=/home/lpar2rrd/db2_cli_odbc_driver/odbc_cli/clidriver/
$ perl /home/lpar2rrd/lpar2rrd/bin/conntest.pl 192.168.1.1 25010 Connection to "192.168.1.1" on port "25010" is ok
GRANT createtab,bindadd,connect ON DATABASE TO USER lpar2rrd; GRANT EXECUTE ON FUNCTION SYSPROC.* TO USER lpar2rrd; GRANT EXECUTE ON PROCEDURE SYSPROC.* TO USER lpar2rrd; GRANT SELECT ON TABLE SYSIBMADM.DB2_MEMBER TO USER lpar2rrd; CREATE SCHEMA lpar2rrd;
$ crontab -l | grep "load_db2.sh" $
$ crontab -e # IBM Db2 support 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/lpar2rrd/lpar2rrd/load_db2.sh > /home/lpar2rrd/lpar2rrd/load_db2.out 2>&1
# 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
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
$ crontab -l | grep "load_db2.sh" $
$ crontab -e # IBM Db2 support 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/lpar2rrd/lpar2rrd/load_db2.sh > /home/lpar2rrd/lpar2rrd/load_db2.out 2>&1
$ 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