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"