Answer the question
In order to leave comments, you need to log in
Ubuntu, NetXMS how to install?
What was done according to Talmut: https://www.netxms.org/documentation/netxms-admin.pdf
wget https://packages.netxms.org/netxms-release_1.2_all.deb
sudo dpkg -i netxms-release_1.2_all.deb
sudo apt-get update
sudo apt-get install netxms-server
apt-get install netxms-dbdrv-pgsql
nxdbmgr init /usr/share/netxms/sql/dbinit_pgsql.sql
NetXMS Database Manager Version 2.2.16 Build 9524 (2.2.16) (UNICODE)
Unable to load and initialize database driver ""
Answer the question
In order to leave comments, you need to log in
Judging by the error message, the database driver is not specified for the config (/etc/netxmsd.conf).
Minimum config for working with postgres:
LogFile=/var/log/netxmsd
DBDriver=pgsql.ddr
DBServer=127.0.0.1
DBName=netxms
DBLogin=netxms
DBPassword=password1
Everything is written there, in this manual.
First question. Have you prepared the database?
>> 6. Create database user and adjust configuration file (netxmsd.conf) accordingly:
About your second question. It also says:
NetXMS web interface is java based and should be deployed into servlet container to run. Tested containers:
Tomcat7, Jetty7.
Install and run e.g. Tomcat. It is taken in the same place as everything else
apt-cache search tomcat and go ahead, see what is there in your distribution.
[email protected]:/home/mon-srv# sudo apt-get install netxms-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libjansson4 libsodium18 libzmq5 netxms-agent netxms-base
netxms-dbdrv-sqlite3
Suggested packages:
netxms-dbdrv-pgsql netmxs-dbdrv-mysql libjansson4
libsodium18
libzmq5 netxms-agent netxms-base
netxms-dbdrv-sqlite3 netxms-server
0 upgraded, 7 newly installed, 0 to remove and 241 not upgraded.
Need to get 12.6 MB of archives.
I enter Y and wait for everything to be installed ....
NetXMS server is installed but currently stopped.
Additional steps required:
1. Edit default configuration file (/etc/netxmsd.conf) (I uncommented everything for pgsql as above)
2. Load database schema (replace DBTYPE with proper name):
nxdbmgr init /usr/share/ netxms/sql/dbinit_DBTYPE.sql
Example:
SQLite:
nxdbmgr init /usr/share/netxms/sql/dbinit_sqlite.sql
PostgreSQL:
nxdbmgr init /usr/share/netxms/sql/dbinit_pgsql.sql
MySQL:
nxdbmgr init /usr/share/ netxms/sql/dbinit_mysql.sql
Oracle:
nxdbmgr init /usr/share/netxms/sql/dbinit_oracle.sql
then start daemon with command:
service netxmsd start
Processing triggers for libc-bin (2.23-0ubuntu11) ...
Processing triggers for systemd (229-4ubuntu21.16) ...
Processing triggers for ureadahead (0.100.0-19) ...
[email protected]:/home/mon -srv# nano /etc/netxmsd.conf
[email protected]:/home/mon-srv# nxdbmgr init /usr/share/netxms/sql/dbinit_pgsql.sql
NetXMS Database Manager Version 2.2.16 Build 9524 (2.2.16) ( UNICODE)
Unable to load and initialize database driver "pgsql.ddr"
[email protected]:/home/mon-srv# service netxmsd start
[email protected]:/home/mon-srv# service netxmsd status
● netxmsd.service - NetXMS Server
Loaded : loaded (/lib/systemd/system/netxmsd.service; disabled; vendor preset:
Active: failed (Result: exit-code) since Wed 2019-08-14 16:04:40 EEST; 12s ago
Process: 3758 ExecStart=/usr/bin/netxmsd -d (code=exited, status=0/SUCCESS)
Main PID: 3759 (code=exited, status=3)
ser 14 16:04:39 01 systemd[1]: Starting NetXMS Server...
Ser 14 16:04:40 01 systemd[1]: netxmsd.service: PID file /var/run/netxmsd.pid no
Ser 14 16:04:40 01 systemd[1]: Started NetXMS Server .
ser 14 16:04:40 01 systemd[1]: netxmsd.service: Main process exited, code=exited
ser 14 16:04:40 01 systemd[1]: netxmsd.service: Unit entered failed state.
Ser 14 16:04:40 01 systemd[1]: netxmsd.service: Failed with result 'exit-code'.
[email protected]:/home/mon-srv# nxdbmgr init /usr/share/netxms/sql/dbinit_pgsql.sql
NetXMS Database Manager Version 2.2.16 Build 9524 (2.2.16) (UNICODE)
Unable to load and initialize database driver "pgsql.ddr"
What am I doing wrong?? Why is the database driver not being initialized?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question