Difference between revisions of "From src"

128 bytes added ,  18:13, 13 September 2022
m
Text replacement - "^" to "{{deprecated}}"
m (small changes)
m (Text replacement - "^" to "{{deprecated}}")
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=System=
{{deprecated}}=System=
To work in /usr/local directory you need rights of group staff
To work in /usr/local directory you need rights of group staff
  sudo adduser User staff
  sudo adduser User staff
Line 7: Line 7:


=Latest snapshot=
=Latest snapshot=
Create local copy of repository
Create local copy of repository (recommended)
<pre>
<pre>
cd /usr/local/src/
cd /usr/local/src/
Line 15: Line 15:
Or you can get latest snapshot from website
Or you can get latest snapshot from website
<pre>
<pre>
wget http://git.netxms.org/netxms-snapshot.tar.gz
wget http://git.netxms.org/netxms-snapshot-develop.tar.gz
mkdir -p /usr/local/src/netxms-git
mkdir -p /usr/local/src/netxms-git
cp netxms-snapshot.tar.gz /usr/local/src/netxms-git
cp netxms-snapshot-develop.tar.gz /usr/local/src/netxms-git
cd /usr/local/src/netxms-git
cd /usr/local/src/netxms-git
tar -xf netxms-snapshot.tar.gz
tar -xf netxms-snapshot-develop.tar.gz
</pre>
</pre>


=Debian 7.4 + MySQL=
=Debian 7 + MySQL=
Prepare environment:
Prepare environment:
  sudo apt-get install build-essential flex bison libssl-dev libmysqlclient-dev mysql-server
  sudo apt-get install build-essential flex bison libssl-dev libmysqlclient-dev mysql-server


Configure & make:
===Configure & make===
  cd /usr/local/src/netxms-git
  cd /usr/local/src/netxms-git
  ./reconf
  ./reconf
Line 37: Line 37:
  sudo ldconfig
  sudo ldconfig


Copy to /etc
Edit server config file:
sudo cp contrib/netxmsd.conf-dist /etc/netxmsd.conf
sudo cp contrib/nxagentd.conf-dist /etc/nxagentd.conf


Edit server config file:
sudo cp /usr/local/src/netxms-git/contrib/netxmsd.conf-dist /etc/netxmsd.conf


/etc/netxmsd.conf
/etc/netxmsd.conf
Line 85: Line 83:
  sudo ldconfig
  sudo ldconfig


Configure & compile
===Configure & make===
  cd /usr/local/src/netxms-git
  cd /usr/local/src/netxms-git
  ./reconf
  ./reconf
Line 98: Line 96:
Edit /etc/netxmsd.conf
Edit /etc/netxmsd.conf
<pre>
<pre>
DBDriver = /usr/lib/netxms/dbdrv/oracle.ddr
DBDriver = /usr/local/lib/netxms/dbdrv/oracle.ddr
DBServer = ServerIP/'''ServerName.DomaiNname''' #Here is service (full database name), not SID
DBServer = ServerIP/'''ServerName.DomaiNname''' #Here is service (full database name), not SID
DBName = netxms
DBName = netxms
Line 114: Line 112:
ALTER USER netxms QUOTA UNLIMITED ON USERS;
ALTER USER netxms QUOTA UNLIMITED ON USERS;
-- ROLES
-- ROLES
GRANT RESOURCE TO netxms;
GRANT CREATE SESSION, CREATE TABLE, CREATE PROCEDURE TO netxms;
GRANT CONNECT TO netxms;
</pre>
</pre>
create initial shema
create initial schema
  nxdbmgr init /usr/local/share/netxms/sql/dbinit_oracle.sql
  nxdbmgr init /usr/local/share/netxms/sql/dbinit_oracle.sql


=Change agent config=  
=Change agent config=  
Copy to /etc
sudo cp /usr/local/src/netxms-git/contrib/nxagentd.conf-dist /etc/nxagentd.conf
/etc/nxagentd.conf
/etc/nxagentd.conf
  LogFile = {syslog}
  LogFile = {syslog}
Line 127: Line 127:
=Startup scripts=
=Startup scripts=
Configure startup scripts
Configure startup scripts
  cd /usr/local/src/netxms-1.2.12/contrib/startup/debian/
  cd /usr/local/src/netxms-git/contrib/startup/debian/
  sudo cp netxmsd /etc/init.d/
  sudo cp netxmsd /etc/init.d/
  sudo cp nxagentd /etc/init.d/
  sudo cp nxagentd /etc/init.d/