Netxms new install and can't access web interface
-
Hello,
I am a newbie to Centos 7 and netxms. I Followed from previous post.
Intall NetXMS on CentOS 6.4 with web frontend
These install instructions go through the steps of installing the NetXMS 2 beta with web frontend.
Install CentOS 6.4 minimal
Set IP and IP info
Yum install sshd
Chkconfig iptables off
Service iptables stop
Connect with SSH:
Install updates and prerequisites:
Yum update
yum groupinstall 'Development Tools'
yum install wget
yum install mysql
yum install mysql-server
yum install openssl-devel
yum install mysql-devel
Install NETXMS:
wget http://www.netxms.org/download/netxms-2.0-M4.tar.gz
tar zxvf netxms*
cd netxms*
sh ./configure --with-server --with-mysql --with-agent
make
make install
Copy sample config files:
cp contrib/netxmsd.conf-dist /etc/netxmsd.conf
cp contrib/nxagentd.conf-dist /etc/nxagentd.conf
Configure MySQL:
Chkconfig mysqld on
Mysql – u root –p k3yst0n3!
CREATE USER 'netxms'@'localhost' IDENTIFIED BY 'k3yst0n3!';
CREATE DATABASE netxms;
GRANT ALL ON netxms.* TO netxms IDENTIFIED BY 'k3yst0n3!';
\q
Edit Netxmsd config file:
nano /etc/netxmsd.conf
DBDriver = /usr/local/lib/libnxddr_mysql.so
DBServer = localhost
DBName = netxms
DBLogin = netxms
DBPassword = k3yst0n3!
LogFile = /var/log/netxmsd
LogFailedSQLQueries = yes
Edit NXAgentd config file
nano /etc/nxagentd.conf
MasterServers = 127.0.0.1, your_server_IP_address
Nano /etc/ld.so.conf
ADD LINE: include /usr/local/lib
Ldconfig
Create NetXMS database:
/usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql
Cause NEtXMS to Start NetXMS daemon on Boot:
cp contrib/startup/redhat/netxmsd /etc/init.d
chmod +x /etc/init.d/netxmsd
cp contrib/startup/redhat/nxagentd /etc/init.d
chmod +x /etc/init.d/nxagentd
chkconfig --add nxagentd
chkconfig --add netxmsd
Start services:
service netxmsd start
service nxagentd start
Install Java 8 – 64 bit
cd /opt/
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz"
tar xzf jdk-8u45-linux-x64.tar.gz
cd jdk*
alternatives --install /usr/bin/java java /opt/jdk1.8.0_45/bin/java 2
alternatives --config java
There are 3 programs which provide 'java'.Selection Command
-----------------------------------------------
* 1 /opt/jdk1.7.0_71/bin/java
+ 2 /opt/jdk1.8.0_25/bin/java
3 /opt/jdk1.8.0_45/bin/javaEnter to keep the current selection[+], or type selection number: 3
Install Tomcat7
https://archive.apache.org/dist/tomcat/tomcat-7/v7.0.62/bin/apache-tomcat-7.0.62.tar.gz
tar xzf apache-tomcat-7.0.62.tar.gz
mv apache-tomcat-7.0.62 /usr/local/tomcat7
Create tomcat startup script in /etc/init.d
#!/bin/bash
# description: Tomcat Start Stop Restart
# processname: tomcat
# chkconfig: 234 20 80
JAVA_HOME=/opt/jdk1.8.0_45
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
CATALINA_HOME=/usr/local/tomcat7case $1 in
start)
sh $CATALINA_HOME/bin/startup.sh
;;
stop)
sh $CATALINA_HOME/bin/shutdown.sh
;;
restart)
sh $CATALINA_HOME/bin/shutdown.sh
sh $CATALINA_HOME/bin/startup.sh
;;
esac
exit 0
Make script execuitable: chmod 755 tomcat
Chkconfig –add tomcat
Install NetXMS Web Frontend:
wget http://www.netxms.org/download/webui/nxmc-2.0-M4.war
cp nxmc-2.0-M4.war nxmc.war
cp nxmc.war /usr/local/tomcat7/webapps
service tomcat startI followed everything but can't get web interface 127.0.0.0:8080/nxmc/ to open at all.
I have no idea were to troubleshoot other than to check firewall does pass traffic. I looked at firewall and opened port 8080 but still no luck.
Please looking for any help.
Thanks Centos user
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login