Xorux Virtual Appliance
grep "Virtual Appliance version" /var/www/html/index.html| sed -e 's/^.*Virtual Appliance version/Virtual Appliance version/' -e 's/is brought to you by.*//' Virtual Appliance version 7.60
head -1 /etc/os-release NAME="Rocky Linux"Important notices:
dnf --disablerepo=* -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm
dnf install -y freetds unixODBC-develPython: it is necessary only for prediction graphs, you can run XorMon NG even without that
dnf install -y python3-virtualenv python3-devel libpq-devel
cd /opt/xorux/xormon-ng/ ./xormon.sh stop
systemctl stop postgresql-14 systemctl disable postgresql-14Uninstall packages
dnf --noautoremove remove timescaledb-2-postgresql-14 timescaledb-2-loader-postgresql-14 postgresql14 postgresql14-server postgresql14-contrib postgresql14-libs timescaledb-toolsRemove PostgreSQL 14 data and leftover directories
rm -rf /var/lib/pgsql/ /usr/pgsql-14 /usr/lib64/timescaledb-loader-pg14 /usr/lib64/timescaledb-pg14
dnf install -y timescaledb-2-postgresql-16 postgresql16-contrib
vi /etc/postgresql/16/main/postgresql.conf data_directory = '/home/xormon/xormon-ng/postgresql' under xormon user: mkdir /home/xormon/xormon-ng mkdir /home/xormon/xormon-ng/postgresql
/usr/pgsql-16/bin/postgresql-16-setup initdb
timescaledb-tune -yes --pg-config=/usr/bin/pg_config sed -i 's/#synchronous_commit = on/synchronous_commit = off/' /etc/postgresql/16/main/postgresql.conf
systemctl enable --now postgresql-16
sudo -u postgres psql \password postgres \qMake note of the password. It will be needed later during XorMon NG installation.
su - lpar2rrd cd /opt/xorux/xormon-ng/ ./xormon.sh startProvide database password created during OS configuration when prompted
DB_HOST[127.0.0.1]= DB_PORT[5432]= DB_USERNAME[postgres]= DB_DATABASE[xormon]= DB_PASSWORD[]= <password>
cd /opt/xorux/xormon-ng/ ./xormon.sh upgrade /home/lpar2rrd/xormon-ng-<ver>.tar.gz
su - lpar2rrd export PATH="$PATH:/usr/pgsql-12/bin" cd /opt/xorux/xormon-ng/server-nest python3 -m venv venv venv/bin/python3 -m ensurepip --upgrade venv/bin/python3 -m pip install --upgrade pip venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txt
cd /opt/xorux/xormon-ng ./xormon.sh stop ./xormon.sh start
su - env PATH=$PATH:/usr/bin /opt/xorux/xormon-ng/server-nest/node_modules/pm2/bin/pm2 startup systemd -u lpar2rrd --hp /home/lpar2rrd
https://<IP>/xormon-ng Default login: xormon / xormon
su - lpar2rd crontab -e * * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <Host1> <Host2> <Host3>:7162 > /var/tmp/lpar2rrd-agent.out 2>&1
firewall-cmd --zone=public --add-port=7162/tcp --permanent firewall-cmd --reload
head -1 /etc/os-release NAME="CentOS Linux"
cat /etc/os-release NAME="CentOS Linux"
su - sed -i 's/^repo_gpgcheck=1/repo_gpgcheck=0/g' /etc/yum.repos.d/google-cloud-sdk.repo
su - yum -y install perl ed libxml2 sharutils wget curl gnupg net-tools sblim-wbemcli libaio strace yum -y install perl-TimeDate perl-XML-Simple perl-XML-SAX perl-XML-LibXML perl-Env perl-CGI perl-Data-Dumper yum -y install perl-LWP-Protocol-https perl-libwww-perl perl-Time-HiRes perl-IO-Tty openldap-clients yum -y install perl-JSON perl-JSON-PP perl-JSON-XS net-snmp-perl perl-DBI perl-DBD-ODBC unixODBC unixODBC-devel freetdsPython: it is necessary only for prediction graphs, you can run XorMon NG even without that
yum -y install python3-virtualenv python3-pip python3-devel
su - lpar2rrd curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash exit nvm install 16 node -v
su - yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL [timescale_timescaledb] name=timescale_timescaledb baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 EOL
yum -y install timescaledb-2-postgresql-15 postgresql15-contrib
/usr/pgsql-15/bin/postgresql-15-setup initdb
timescaledb-tune -yes --pg-config=/usr/bin/pg_config sed -i 's/#synchronous_commit = on/synchronous_commit = off/' /etc/postgresql/16/main/postgresql.conf
systemctl enable --now postgresql-15
sudo -u postgres psql \password postgres \qMake note of the password. It will be needed later during XorMon NG installation.
su - lpar2rrd cd /home/lpar2rrd mkdir xormon-ng
cd xormon-ng tar zxvf xormon-ng-<ver>.tar.gz rm xormon-ng-<ver>.tar.gz ./xormon.sh startXorMon NG is running on port 8443 by defeault.
APP_PORT[8443]= 7443Provide database password created during PostgreSQL/TimescaleDB installation when prompted
DB_HOST[127.0.0.1]= DB_PORT[5432]= DB_USERNAME[postgres]= DB_DATABASE[xormon]= DB_PASSWORD[]= <password>
su - yum -y install postgresql-devel gccConfigure virtual environment (as lpar2rrd)
su - lpar2rrd cd ~/xormon-ng/server-nest/ python3 -m venv venv venv/bin/python3 -m ensurepip --upgrade venv/bin/python3 -m pip install --upgrade pip venv/bin/python3 -m pip install -r microservices/analyzer/requirements/requirements.txtRestart XorMon NG (as lpar2rrd)
su - lpar2rrd cd ~/xormon-ng ./xormon.sh stop ./xormon.sh start
su - env PATH=$PATH:/home/lpar2rrd/.nvm/versions/node/v16.20.2/bin /home/lpar2rrd/xormon-ng/server-nest/node_modules/pm2/bin/pm2 startup systemd -u lpar2rrd --hp /home/lpar2rrd
https://<IP>:<PORT> Default login: xormon / xormon
su - lpar2rd crontab -e * * * * * /usr/bin/perl /opt/lpar2rrd-agent/lpar2rrd-agent.pl <Host1> <Host2> <Host3>:7162 > /var/tmp/lpar2rrd-agent.out 2>&1
firewall-cmd --zone=public --add-port=7162/tcp --permanent firewall-cmd --reload