XenServer Monitoring
$ perl /home/lpar2rrd/lpar2rrd/bin/conntest.pl 192.168.1.1 443 Connection to "192.168.1.1" on port "443" is ok $ perl /home/lpar2rrd/lpar2rrd/bin/conntest.pl 192.168.1.1 22 Connection to "192.168.1.1" on port "22" is ok
xe …-data-source-query
lpar2rrd
and assign it the Pool Admin role.root
user has necessary privileges.# su - lpar2rrd $ ssh-copy-id xen-host1 lpar2rrd@xen-host1's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'xen-host1'" $ ssh xen-host1 xen-host1 $
$ crontab -l | grep "load_xenserver.sh" $
$ crontab -e # XenServer support 0,20,40 * * * * /home/lpar2rrd/lpar2rrd/load_xenserver.sh > /home/lpar2rrd/lpar2rrd/load_xenserver.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_xenserver.sh" $
$ crontab -e # XenServer support 0,20,40 * * * * /home/lpar2rrd/lpar2rrd/load_xenserver.sh > /home/lpar2rrd/lpar2rrd/load_xenserver.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