MS SQL Server 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.
yum install unixODBC unixODBC-devel freetdsNote: Make sure the driver path is present in "/etc/odbcinst.ini" (Most installations will do this automatically)
$ cat /etc/odbcinst.ini # Driver from the freetds-libs package # Setup from the unixODBC package [FreeTDS] Description = Free Sybase & MS SQL Driver Driver = /usr/lib/libtdsodbc.so Setup = /usr/lib/libtdsS.so
# rpm -q perl-DBI perl-DBD-ODBC perl-DBI-1.627-4.el7.x86_64 perl-DBD-ODBC-1.50-3.el7.x86_64Install them if they are missing under root user:
# yum install perl-DBD-ODBC
$ perl /home/lpar2rrd/lpar2rrd/bin/conntest.pl 192.168.1.1 1433 Connection to "192.168.1.1" on port "1433" is ok
CREATE LOGIN lpar2rrd WITH PASSWORD = 'your_passw0rd'; CREATE USER lpar2rrd FOR LOGIN lpar2rrd; GRANT CONNECT ANY DATABASE TO lpar2rrd; USE master; GRANT VIEW SERVER STATE TO lpar2rrd;
$ crontab -l | grep "load_sqlserver.sh" $
$ crontab -e # Microsoft SQL Server support 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/lpar2rrd/lpar2rrd/load_sqlserver.sh > /home/lpar2rrd/lpar2rrd/load_sqlserver.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
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
$ crontab -l | grep "load_postgres.sh" $
$ crontab -e # Microsoft SQL Server support 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/lpar2rrd/lpar2rrd/load_sqlserver.sh > /home/lpar2rrd/lpar2rrd/load_sqlserver.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