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

Messages - new centos7 user

#1
General Support / Re: MIB collection
July 25, 2017, 07:50:42 PM
Hello,

I am need to update mibs for mikrotik and ubiquiti products, have the files but need to know how to install them.
I am running centos 07 for os.
Thanks
#2
Thank you I will try this steps.
Thanks again
#3

Re: Steps to Install NetXMS on CentOS 6.4 with web frontend
« Reply #3 on: June 10, 2017, 10:00:26 pm »
ReplyQuoteModifyModifyRemoveRemove
Hello,

I have a question as I am new to centos 7 and netxms and following you steps.

The /etc/init.d file what is file location?
I used nano /etc/init.d but will not save.
Where do I place the file or what directory do I open to edit?

So were is the tomcat file placed in the root directory?

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 https://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

Thanks for your help
#5
Hello,

I have a question as I am new to centos 7 and netxms and following you steps.

The /etc/init.d file what is file location?
I used nano /etc/init.d but will not save.
Where do I place the file or what directory do I open to edit?

So were is the tomcat file placed in the root directory?

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 https://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

Thanks for your help
#6
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]#


#7
How do you check the version number in centos 7?
I reinstalled the management console and get into the software but when I make changes on the server config according to the netxms videos, when I restart he netxms server I can't log back into the management console.
Here status after restarting the server:

[root@localhost ~]# systemctl  status  netxmsd.service
● netxmsd.service - SYSV: netxmsd is a NetXMS server daemon process
   Loaded: loaded (/etc/rc.d/init.d/netxmsd; bad; vendor preset: disabled)
   Active: active (exited) since Sat 2017-06-10 08:18:14 CDT; 28min ago
     Docs: man:systemd-sysv-generator(8)

Jun 10 08:18:14 localhost.localdomain systemd[1]: Starting SYSV: netxmsd is a NetXMS server daemon process...
Jun 10 08:18:14 localhost.localdomain netxmsd[5087]: Starting netxmsd:
Jun 10 08:18:14 localhost.localdomain systemd[1]: Started SYSV: netxmsd is a NetXMS server daemon process

What do I do?
Thanks
#8
 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
#9
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

#10
General Support / Re: centos 7 installation
May 27, 2017, 09:30:05 PM
Hello
I am just looking to add netxms to my toolbag and loaded centos 7 on a server and need some guidance to install netxms software. I am having a problem installing the netxms to the machine. I have never done this in centos.
Thanks for any help you can give me.