root@01:/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
The following NEW packages will be installed:
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.
Ввожу Y и жду когда всё установится....
NetXMS server is installed but currently stopped.
Additional steps required:
1. Edit default configuration file (/etc/netxmsd.conf) (я все раскоментил для pgsql, как в примере выше)
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) ...
root@01:/home/mon-srv# nano /etc/netxmsd.conf
root@01:/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"
root@01:/home/mon-srv# service netxmsd start
root@01:/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 ср 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)
сер 14 16:04:39 01 systemd[1]: Starting NetXMS Server...
сер 14 16:04:40 01 systemd[1]: netxmsd.service: PID file /var/run/netxmsd.pid no
сер 14 16:04:40 01 systemd[1]: Started NetXMS Server.
сер 14 16:04:40 01 systemd[1]: netxmsd.service: Main process exited, code=exited
сер 14 16:04:40 01 systemd[1]: netxmsd.service: Unit entered failed state.
сер 14 16:04:40 01 systemd[1]: netxmsd.service: Failed with result 'exit-code'.
root@01:/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"
Что я делаю не так?? Почему не происходит инициализация драйвера БД?