Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Can someone please tell me how to start and stop the f'ing NetXMS server

Can someone please tell me how to start and stop the f'ing NetXMS server

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 34.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    tnayak
    wrote on last edited by
    #1

    I've been searching for the commands for hours -- someone please throw me a bone.

    1 Reply Last reply
    0
    • T
      T
      Tursiops
      wrote on last edited by
      #2

      Based on your other post, I'm assuming you're trying to run this on CentOS, built it from source and are a Linux novice. Feel free to torch me in a response, but that is probably not the best combination for testing NetXMS and is likely to lead to the frustration you've shown in your subject. This isn't a NetXMS server problem.

      Having said that, for older CentOS there was a startup script in the sources, as mentioned in this post: https://www.netxms.org/forum/installation/start-services-on-boot/
      That may still work in CentOS 7, though it is using systemctl. You could also write your own startup script, similar to what's mentioned here (more generic CentOS, definitely not NetXMS specific): https://unix.stackexchange.com/questions/368368/how-to-make-a-service-that-starts-on-boot-in-centos

      Otherwise, it may be simpler to just run this on Windows or install a Ubuntu/Debian Linux (where you can install from the repository and everything "just works"). We're doing the latter, so unfortunately I'm not in a position to provide step by step guides to a CentOS setup from source style install.

      1 Reply Last reply
      0
      • T
        T
        tnayak
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • P
          P
          paul
          wrote on last edited by
          #4

          Well posted tnayak.

          Should be pinned - including the initial problem - so those who hit this, which there will be others, have a clear and simple to follow solution.

          I have benefited unbelievably from the assistance of Tursiops and as per his initial response "try these options...they just work", a simple statement that certainly got you a lot closer as well.

          We went Windows as that was even easier, but even then, we hit the problem of trying a monitoring solution that relied on devices responding to snmp, but no snmp templates. Tursiops rescued us which otherwise probably would have seen us move on. The Linux and Windows SNMP based templates I ended up with have been posted for any and all to use.

          What's next for me?  I have a bunch of PowerShell tools to add -Ping, Tracert, SNMPGET, Create Help Desk ticket - non-jira etc.

          The simpler it is to enable people to use NetXMS, the wider its adoption and Development.  Your post will greatly assist that - well done and thanks.

          1 Reply Last reply
          0

          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
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups