Como Instalar - Netxms - Install - Guide PDF
Como Instalar - Netxms - Install - Guide PDF
Installation Guide
Version 1.0.5
2
NetXMS Installation Guide
Table of Contents
1 Preface ......................................................................................................................4
1.1 Audience..............................................................................................................4
1.2 Additional Documentation......................................................................................4
2 Requirements..............................................................................................................5
2.1 Server Requirements.............................................................................................5
2.1.1 Hardware......................................................................................................5
2.1.2 Operating System..........................................................................................5
2.1.3 Database......................................................................................................5
2.2 Console Requirements...........................................................................................5
2.2.1 Hardware......................................................................................................5
2.2.2 Operating System..........................................................................................6
2.3 Agent Requirements..............................................................................................6
2.3.1 Hardware......................................................................................................6
2.3.2 Operating System..........................................................................................6
3 Server Installation and Upgrade....................................................................................7
3.1 Installing NetXMS Server on UNIX...........................................................................7
3.2 Upgrading NetXMS Server on UNIX.......................................................................10
3.3 Installing NetXMS Server on Windows....................................................................11
3.4 Upgrading NetXMS Server on Windows..................................................................17
4 Console Installation....................................................................................................18
4.1 Installing NetXMS Console....................................................................................18
4.2 Connecting to the NetXMS Server for the first time..................................................19
5 Agent Installation and Upgrade....................................................................................20
5.1 Installing NetXMS Agent on UNIX..........................................................................20
5.2 Upgrading NetXMS Agent on UNIX........................................................................21
5.3 Installing NetXMS Agent on Windows.....................................................................22
5.4 Upgrading NetXMS Agent on Windows...................................................................24
5.5 Unattended installation of NetXMS Agent on Windows..............................................24
5.6 Installing NetXMS Agent on NetWare.....................................................................25
5.7 Upgrading NetXMS Agent on NetWare....................................................................26
6 NetXMS Web Server Installation and Upgrade................................................................27
6.1 Installing NetXMS Web Server on UNIX..................................................................27
6.2 Upgrading NetXMS Web Server on UNIX................................................................28
6.3 Installing NetXMS Web Server on Windows.............................................................29
6.4 Upgrading NetXMS Web Server on Windows...........................................................31
3
NetXMS Installation Guide
1 Preface
This manual provides instructions for installing NetXMS components for UNIX, Windows, and
NetWare.
1.1 Audience
This manual is intended for network administrators, responsible for NetXMS deployment and
maintenance. The person installing NetXMS components must have a working knowledge of
the appropriate operating system (UNIX, Windows, or NetWare).
4
NetXMS Installation Guide
2 Requirements
Read this chapter and perform a thorough review of the system or systems onto which you are
planning to install NetXMS software. The system/s must meet software, hardware, and
configuration requirements listed in this chapter.
2.1.1 Hardware
Minimum requirements: Pentium III 500 MHz, 256MB RAM, 100MB of free disk space.
Recommended: Pentium IV 1 GHz, 512MB RAM, 100MB of free disk space.
If you wish to compile NetXMS server with encryption support on UNIX, you should have
OpenSSL package installed.
2.1.3 Database
The following database engines can be used as a backend:
• Microsoft SQL
• Oracle
• MySQL
• PostgreSQL
• SQLite
Database size and load is very hard to predict, because it is dependent on a number of
monitored nodes and collected parameters. If you plan to install database engine on the same
machine as NetXMS server, increase your hardware requirements accordingly.
2.2.1 Hardware
Minimum requirements: Pentium III 500, 256 MB RAM, 30 MB of free disk space.
Recommended: Pentium IV 1GHz, 512 MB RAM, 30 MB of free disk space, video adapter
capable of at least 1024x768 resolution with 32bit colors.
5
NetXMS Installation Guide
2.3.1 Hardware
NetXMS agent can run on any hardware supported by target operating system, and requires
approximately 1 MB of free disk space (depending on OS).
6
NetXMS Installation Guide
Important arguments:
• --prefix=DIRECTORY: installation prefix, all files go to the specified directory;
• --with-server: build server. Don't forget to add at least one DB Driver as well;
• --with-pgsql: build Postgres DB Driver (if you plan to use PostgreSQL as backend
database);
• --with-mysql: build MySQL DB Driver (if you plan to use MySQL as backend
database);
• --with-odbc: build ODBC DB driver (if you plan to connect to your backend database
via ODBC; you will need UNIX ODBC package to do that);
• --with-sqlite: build SQLite DB driver (if you plan to use embedded SQLite database
as backend database);
• --with-oracle: build Oracle DB driver (if you plan to use Oracle as backend
database);
• --with-agent: build monitoring agent. It is strongly recommended to install agent on
a server box;
• --with-nxhttpd: build NetXMS web server;
• --disable-encryption: Disable encryption support.
To learn more about possible configure parameters, run it with --help option.
By default, both server and agent will look for configuration files in /etc directory. If you
wish to place configuration files in a different location, don't forget to use –c command line
switch for agent and –config-file command-line switch for server to specify an alternate
location.
6. Create Database and User with access rights to this database. Below is an example for
MySQL:
$ mysql -U root -p mysql
mysql> CREATE DATABASE netxms;
7
NetXMS Installation Guide
Please note that database that user you have created should have rights to create new
tables.
7. Modify server configuration file (default is /etc/netxmsd.conf). It should look the following
way:
DBDriver = /usr/local/lib/libnxddr_mysql.so
DBServer = localhost
DBName = netxms
DBLogin = netxms
DBPassword = PaSsWd
LogFile = /var/log/netxmsd
LogFailedSQLQueries = yes
8
NetXMS Installation Guide
MySQL example:
$ /usr/local/bin/nxdbmgr init /usr/local/share/netxms/sql/dbinit_mysql.sql
9
NetXMS Installation Guide
1. Download the latest version from http://www.netxms.org/download, if you don't have it.
You will need source archive (named netxms-VERSION.tar.gz, for example netxms-
0.2.11.tar.gz). Please note that in the following steps VERSION will be used as a substitution
for an actual version number.
4. Run make:
$ make
Proceed to the next step only if database checker does not report any errors!
9. Upgrade database:
$ nxdbmgr upgrade
10
NetXMS Installation Guide
1. Download the latest version from http://www.netxms.org/download, if you don't have it.
You will need Windows installer (named netxms-VERSION.exe, for example netxms-
0.2.20.exe). Please note that in following steps VERSION will be used as a substitution for
an actual version number.
2. Run the installer package on your server machine. Installation wizard will be shown. Follow
the prompts until the Select Components window opens (Figure 1).
3. On the Select Components window, select NetXMS Server option and an appropriate
database client library. You do not have to install database client library from NetXMS
package, if it is already installed on the machine.
If you plan to use web interface, also select Web Server component, and if you plan to run
NetXMS console from the same machine, select Administrator's Console option as well.
4. Follow the prompts until Ready to Install window opens. If the Web Server option was
selected, you will be prompted for master server address. Set it to localhost (Figure 2):
11
NetXMS Installation Guide
5. On Ready to Install window, check whether everything is correct, then press the Install
button.
6. After copying files, Server Configuration Wizard will open (Figure 3).
12
NetXMS Installation Guide
13
NetXMS Installation Guide
• Select the desired database engine and driver. For most databases, you will have two
drivers available – native and ODBC. Please note that if you select ODBC, you will have
to manually configure ODBC source.
• Enter the name of database server or ODBC source.
• In DBA login name and DBA password fields, enter database administrator’s login name
and password. You have to fill these fields only if you have chosen Create new database
option.
• Enter the desired database name, database user name and password. If you are not
using ODBC, the wizard will create database and a user for you. If ODBC is used,
database and user should be created beforehand.
Oracle note:
We recommend to use native database driver (oracle.ddr).
8. On the next window, you will be prompted for various polling parameters (Figure 5):
14
NetXMS Installation Guide
9. On the next window, enter address of your SMTP server. NetXMS will use it to send
notification e-mails. If you have mobile phone attached to management server via serial
cable or USB, select mobile phone driver and COM port; otherwise, select "<none>".
10.Then next window will prompt you for logging method. Either check Event Log or select file,
and press the Next button.
15
NetXMS Installation Guide
In most situations, you can run NetXMS server under Local System account. You may need
to run it under specific account if you are using Microsoft SQL database and Windows
authentication, or for security reasons.
12.Follow the prompts until server configuration will be complete. After successful server
configuration, installation will be finished, and you will have NetXMS server up and running.
16
NetXMS Installation Guide
Proceed to the next step only if database checker does not report any errors!
4. Run NetXMS installer and follow the prompts. Normally, you will not need to change any
settings on installation wizard windows. Alternatively, you can run the installer with /SILENT
option to disable any prompts:
C:\Download> netxms-1.0.5.exe /SILENT
5. Check whether NetXMS Server service is running again. If it's not, most likely you have to
upgrade your database to newer version. To upgrade database, use nxdbmgr utility:
C:\NetXMS\bin> nxdbmgr upgrade
17
NetXMS Installation Guide
4 Console Installation
2. Run the installer package on your workstation. Installation wizard will be shown. Follow the
prompts until the Select Components window (Figure 7) opens.
Press the Next button and follow the prompts until installation finishes.
18
NetXMS Installation Guide
2. Enter the address of your NetXMS server, or leave the default address (127.0.0.1), if you
are starting console on the server machine. Use admin as login name and netxms as
password.
19
NetXMS Installation Guide
Important arguments:
• --prefix=DIRECTORY: installation prefix, all files goes to specified directory;
• --with-agent: build monitoring agent.
To learn more about possible configure parameters, run it with --help option.
By default, an agent will look for configuration file in /etc directory. If you wish to place
configuration file in different location, don't forget to use –c command line switch to specify
alternate location.
7. Run agent:
# /usr/local/bin/nxagentd –d
20
NetXMS Installation Guide
1. Download the latest version from http://www.netxms.org/download, if you don't have it.
You will need source archive (named netxms-VERSION.tar.gz, for example netxms-
1.0.5.tar.gz). Please note that in the following steps VERSION will be used as a substitution
for an actual version number.
To learn more about possible configure parameters, run it with --help option.
4. Run make:
$ make
21
NetXMS Installation Guide
2. Run the installer package on target server. Installation wizard will be shown. Follow the
prompts until the NetXMS Server window opens (Figure 9):
Enter IP address or host name of your NetXMS server. You can specify multiple management
servers, separating them by commas. Press the Next button to continue.
22
NetXMS Installation Guide
In this window, you can select which subagents you wish to load. Each subagent extends
agent's functionality, as described below:
Please note that this page only controls what subagents will be added to the generated
configuration file. It will not affect subagent installation – all subagents will be installed and
you will be able to activate them later. For more information about subagents, please refer
to NetXMS User's Manual.
23
NetXMS Installation Guide
1. Download the latest version from http://www.netxms.org/download, if you don't have it.
You will need Windows Agent installer (named nxagent-VERSION.exe, for example nxagent-
1.0.5.exe).
2. Run NetXMS agent installer and follow the prompts. Normally, you will not need to change
any settings on installation wizard dialog windows. Alternatively, you can run installer
with /SILENT option to disable any prompts:
C:\Download> nxagent-1.0.5.exe /SILENT
Valid subagent names are ECS, LOGWATCH, PING, PORTCHECK, WINPERF, WMI, and UPS. By
default WINPERF is enabled and all others are disabled.
For example, to install agent silently (without any messages or progress bars), use Windows
Performance and UPS management subagents, and set NetXMS management server address to
10.0.0.1, run the following command (it should be on one line):
24
NetXMS Installation Guide
2. Unpack arcive to the desired location on your NetWare server, for example, SYS:/NetXMS.
3. Copy sample configuration file to desired location. By default, an agent will look for
configuration file in SYS:/etc directory. If you wish to place configuration file in different
location, don't forget to use –c command line switch to specify alternate location.
If you agent's configuration file located in directory other than SYS:/etc, specify it on
command line:
LOAD install_dir/NXAGENTD.NLM –c config_file
6. Load NetXMS agent by typing command used in previous paragraph on server console to
load NetXMS agent.
25
NetXMS Installation Guide
3. Unpack arcive to the directory on your NetWare server where NetXMS agent currently
installed.
If you agent's configuration file located in directory other than SYS:/etc, specify it on the
command line:
LOAD install_dir/NXAGENTD.NLM –c config_file
26
NetXMS Installation Guide
Important arguments:
• --prefix=DIRECTORY: installation prefix, all files goes to specified directory;
• --with-nxhttpd: build NetXMS web server.
To learn more about possible configure parameters, run it with --help option.
By default, a web server will look for configuration file in /etc directory. If you wish to place
configuration file in different location, don't forget to use –c command line switch to specify
alternate location.
27
NetXMS Installation Guide
Important arguments:
• --prefix=DIRECTORY: installation prefix, all files go to a specified directory;
• --with-nxhttpd: build NetXMS web server.
To learn more about possible configure parameters, run it with --help option.
4. Run make:
$ make
28
NetXMS Installation Guide
2. Run the installer package. Installation wizard will be shown. Follow the prompts until the
Select Components window (Figure 11) opens.
Press the Next button and follow the prompts until the Select Master Server window (Figure
12) opens.
4. On the Select Master Server window, enter DNS name or IP address of your NetXMS server.
29
NetXMS Installation Guide
Press the Next button and follow the prompts until installation finishes.
30
NetXMS Installation Guide
2. Run NetXMS installer and follow the prompts. Normally, you will not need to change any
settings on installation wizard dialog windows. Alternatively, you can run installer with
/SILENT option to disable any prompts:
C:\Download> netxms-1.0.5.exe /SILENT
31