

{"id":410,"date":"2016-09-16T11:35:53","date_gmt":"2016-09-16T01:35:53","guid":{"rendered":"https:\/\/kng.tech\/blog\/?p=410"},"modified":"2016-09-16T11:52:55","modified_gmt":"2016-09-16T01:52:55","slug":"netxms-on-ubuntu-server-16-04-1","status":"publish","type":"post","link":"https:\/\/kng.tech\/blog\/netxms-on-ubuntu-server-16-04-1\/","title":{"rendered":"NetXMS on Ubuntu Server 16.04.1"},"content":{"rendered":"<p>Install Ubuntu Server as usual<br \/>\nDon't forget to install <strong>Openssh Server<\/strong> during the process<\/p>\n<p>After it finished, if you want to install lightweight desktop: (this is optional, because most of the works are done in terminal via ssh)<br \/>\nFor ex: (lxde)<\/p>\n<pre><code>#sudo apt-get install --no-install-recommends lubuntu-desktop<\/code><\/pre>\n<hr \/>\n<p><strong>Now to install NetXMS (current: 2.0.6)<\/strong><\/p>\n<pre><code>#apt-get update\r\n#apt-get install mysql-server\r\n#apt-get install tomcat7\r\n#apt-get install libmysqlclient-dev\r\n#apt-get install libssl-dev\r\n#apt-get install g++\r\n#apt-get install c++<\/code><\/pre>\n<p><strong>Create a database:<\/strong><\/p>\n<pre><code>#sudo mysql -u root\r\nmysql&gt; CREATE DATABASE netxms;\r\nmysql&gt; GRANT ALL ON netxms.* TO netxms@localhost IDENTIFIED BY 'password';\r\nmysql&gt; quit<\/code><\/pre>\n<p><strong>Download the NetXMS server package:<\/strong><\/p>\n<pre><code>#wget http:\/\/www.netxms.org\/download\/netxms-2.0.6.tar.gz\r\n#tar -xvf \u00a0netxms-2.0.6.tar.gz<\/code><\/pre>\n<p><strong>Configure the package:<\/strong><\/p>\n<pre><code>#cd netxms.x.x.x\r\n#sudo sh .\/configure --with-server --with-mysql --with-agent (it will show some results)\r\n#sudo make\r\n#sudo make install\r\n#sudo cp contrib\/netxmsd.conf-dist \/etc\/netxmsd.conf\r\n#sudo cp contrib\/nxagentd.conf-dist \/etc\/nxagentd.conf\r\n#sudo nano \/etc\/netxmsd.conf<\/code><\/pre>\n<p>sample output:<\/p>\n<pre>DBDriver = mysql.ddr\r\nDBServer = localhost\r\nDBName = netxms\r\nDBLogin = netxms\r\n<strong>DBPassword = password<\/strong>\r\nLogFile = \/var\/log\/netxmsd\r\nLogFailedSQLQueries = yes<\/pre>\n<pre><code>#sudo nano \/etc\/nxagentd.conf<\/code>\r\nMasterServers = 127.0.0.1, 192.168.1.1<\/pre>\n<p><strong>Initiaze agent and server services:<\/strong><\/p>\n<pre><code>#sudo cat \/etc\/ld.so.conf.d\/libc.conf (check it contain \/usr\/local\/lib, if not add it)\r\n#sudo ldconfig\r\n#sudo ldconfig -p|grep libnetxms (it shows some output)\r\n#\/usr\/local\/bin\/nxdbmgr init \/usr\/local\/share\/netxms\/sql\/dbinit_mysql.sql\r\n#\/usr\/local\/bin\/nxagentd -d\r\n#\/usr\/local\/bin\/netxmsd -d<\/code><\/pre>\n<p><strong>Download the web based management:<\/strong><\/p>\n<pre><code>#wget http:\/\/www.netxms.org\/download\/webui\/nxmc-2.0.6.war\r\n#sudo rename nxmc-2.0.6.war nxmc.war\r\n#sudo cp nxmc.war \/var\/lib\/tomcat7\/webapps\/<\/code><\/pre>\n<pre><code>#sudo netxmsd<\/code>  (this is to start netXMS server properly, otherwise you will get connection refused when you login)<\/pre>\n<p>Open browser:<br \/>\nhttp:\/\/ip_address:8080\/nxmc\/nxmc<br \/>\n(default username: admin, password: netxms)<\/p>\n<p>NetXMS website: <a href=\"http:\/\/www.netxms.org\/\" target=\"_blank\">http:\/\/www.netxms.org\/<\/a><br \/>\nMy installation was based on this <a href=\"http:\/\/www.unixmen.com\/install-netxms-ubuntu-15-10\/\" target=\"_blank\">reference<\/a>, though there was some hiccups along the way!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Ubuntu Server as usual Don't forget to install Openssh Server during the process After it finished, if you want to install lightweight desktop: (this is optional, because most of the works are done in terminal via ssh) For ex: (lxde) #sudo apt-get install --no-install-recommends lubuntu-desktop Now to install NetXMS (current: 2.0.6) #apt-get update #apt-get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[65,66,64,63],"class_list":["post-410","post","type-post","status-publish","format-standard","hentry","category-tech","tag-linux","tag-network-monitoring","tag-netxms","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":11,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":421,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions\/421"}],"wp:attachment":[{"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kng.tech\/blog\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}