I gave up trying to install NetXMS on CentOS and switched to Ubuntu 18.04 and wanted to share my install process in hopes it helps someone else. It is combination of the NetXMS Installation Guide and the articles linked below.
Install Ubuntu
Create Ubuntu Virtual Machine with a static IP address and OpenSSH installed
1) Copy ssh public key to server
2) Open ssh connection to server
3) Disable password authentication: # sudo nano /etc/ssh/sshd_config
4) Change line: PasswordAuthentication yes to PasswordAuthentication no
5) Restart ssh: # sudo systemctl restart ssh
Install Prerequisites
1) # sudo apt-get update
2) # sudo apt-get install mysql-server
3) # sudo apt-get install libmysqlclient-dev - found this requirement in this article
4) # sudo apt-get install libssl-dev - found this requirement in this article
5) # sudo apt-get install ntp - optional
Install Prerequisites
I followed this guide: Easy Guide to Install Apache Tomcat 9 on Ubuntu 18.04 / 16.04 LTS Server, with a few exceptions:
1) I had to set the environment variables manually:
Find the java path: # sudo update-java-alternatives -l
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
Set JAVA_HOME: # export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
Set CATALINA_HOME: # export CATALINA_HOME=/opt/tomcat
Set CATALINA_BASE: # export CATALINA_BASE=/opt/tomcat
2) I could not edit enter the /opt/tomcat/conf directory to edit the tomcat-users.xml file using sudo. I had to switch to the root user (sudo su) to enter the directory. Remember to exit root.
Configure MySQL
Get MySQL default password: # sudo cat /etc/mysql/debian.cnf
Login to MySQL: # sudo mysql -u root -p mysql
mysql>
Create netxms database: mysql> CREATE DATABASE netxms;
Create netxms user and grant all permissions: mysql> GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY '<password>';
Exit MySql: mysql> \q
Install NetXMS
Download the deb server package: # wget http://packages.netxms.org/netxms-release_1.2_all.deb
Install the package: # sudo dpkg -i netxms-release_1.2_all.deb
Update APT cache: # sudo apt-get update
Install NetXMS: # apt-get install netxms-server
Load NetXMS database schema: # sudo apt-get install netxms-dbdrv-mysql
Enable the database connection: # sudo nano /etc/netxmsd.conf
## Option #3 - MySQL:
DBDriver=mysql.ddr
DBServer=127.0.0.1
DBName=netxms
DBLogin=netxms
DBPassword=enter-database-password
Load database schema: # sudo nxdbmgr init /usr/share/netxms/sql/dbinit_mysql.sql
NetXMS Database Manager Version 2.2.16 Build 9524 (2.2.16) (UNICODE)
Initializing database...
Database initialized successfully
Install Management Console
Download Web Interface: wget https://www.netxms.org/download/releases/2.2/2.2.16/nxmc-2.2.16.war
Rename the nxmc.war file: # cp nxmc-2.2.16.war ROOT.war
Become root: # sudo su
Change to conf directory: # cd /opt/tomcat/webapps
Delete ROOT directory: # rm -rf ROOT
Copy ROOT.war file to webapps: # cp /home/ares/ROOT.war /opt/tomcat/webapps
Restart tomcat: # systemctl restart tomcat
Start Server: # netxmsd
Exit Root: # exit
Open web console: http://server_ip-address:8080/nxmc
Follow prompts to change the default password
Install Ubuntu
Create Ubuntu Virtual Machine with a static IP address and OpenSSH installed
1) Copy ssh public key to server
2) Open ssh connection to server
3) Disable password authentication: # sudo nano /etc/ssh/sshd_config
4) Change line: PasswordAuthentication yes to PasswordAuthentication no
5) Restart ssh: # sudo systemctl restart ssh
Install Prerequisites
1) # sudo apt-get update
2) # sudo apt-get install mysql-server
3) # sudo apt-get install libmysqlclient-dev - found this requirement in this article
4) # sudo apt-get install libssl-dev - found this requirement in this article
5) # sudo apt-get install ntp - optional
Install Prerequisites
I followed this guide: Easy Guide to Install Apache Tomcat 9 on Ubuntu 18.04 / 16.04 LTS Server, with a few exceptions:
1) I had to set the environment variables manually:
Find the java path: # sudo update-java-alternatives -l
java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
Set JAVA_HOME: # export JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64
Set CATALINA_HOME: # export CATALINA_HOME=/opt/tomcat
Set CATALINA_BASE: # export CATALINA_BASE=/opt/tomcat
2) I could not edit enter the /opt/tomcat/conf directory to edit the tomcat-users.xml file using sudo. I had to switch to the root user (sudo su) to enter the directory. Remember to exit root.
Configure MySQL
Get MySQL default password: # sudo cat /etc/mysql/debian.cnf
Login to MySQL: # sudo mysql -u root -p mysql
mysql>
Create netxms database: mysql> CREATE DATABASE netxms;
Create netxms user and grant all permissions: mysql> GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY '<password>';
Exit MySql: mysql> \q
Install NetXMS
Download the deb server package: # wget http://packages.netxms.org/netxms-release_1.2_all.deb
Install the package: # sudo dpkg -i netxms-release_1.2_all.deb
Update APT cache: # sudo apt-get update
Install NetXMS: # apt-get install netxms-server
Load NetXMS database schema: # sudo apt-get install netxms-dbdrv-mysql
Enable the database connection: # sudo nano /etc/netxmsd.conf
## Option #3 - MySQL:
DBDriver=mysql.ddr
DBServer=127.0.0.1
DBName=netxms
DBLogin=netxms
DBPassword=enter-database-password
Load database schema: # sudo nxdbmgr init /usr/share/netxms/sql/dbinit_mysql.sql
NetXMS Database Manager Version 2.2.16 Build 9524 (2.2.16) (UNICODE)
Initializing database...
Database initialized successfully
Install Management Console
Download Web Interface: wget https://www.netxms.org/download/releases/2.2/2.2.16/nxmc-2.2.16.war
Rename the nxmc.war file: # cp nxmc-2.2.16.war ROOT.war
Become root: # sudo su
Change to conf directory: # cd /opt/tomcat/webapps
Delete ROOT directory: # rm -rf ROOT
Copy ROOT.war file to webapps: # cp /home/ares/ROOT.war /opt/tomcat/webapps
Restart tomcat: # systemctl restart tomcat
Start Server: # netxmsd
Exit Root: # exit
Open web console: http://server_ip-address:8080/nxmc
Follow prompts to change the default password