Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - new centos7 user

#1
I have nxmc intalled along with the tomcat 7 for web gui but don't know How to access that file as I am new to netxms and centos 7
Thanks for any help!!!


[root@localhost ~]# rm netxms rm: cannot remove 'netxms': Is a directory [root@localhost ~]
# dir anaconda-ks.cfg apache-tomcat-7.0.62.tar.gz control.tar.gz Desktop Documents Downloads google-chrome-stable_current_x86_64.rpm index.html index.html.1 initial-setup-ks.cfg Music mysql-community-release-el7-5.noarch.rpm netxms netxms-2.0.8 netxms-2.0.8.tar.gz Pictures Public Templates thinclient_drives Videos
[root@localhost ~]# cd netxms
root@localhost netxms]# dir
[root@localhost netxms]# ls dir ls: cannot access dir: No such file or directory
[root@localhost netxms]#


#2
 I need some help on this error message when launching nxmc icon:
server uses incompatible verison of communication protocol .
I logged in for this 1st time fine changed the password as directed and  the rebooted centos 7 machine.

1) How do I verify the correct password is being used in the root terminal mode?

2) How do I fix this error?
Thanks
DJ
#3
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/java

Enter 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/tomcat7


    case $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 start

    I 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