Installing NMIS
This guide walks you through installing NMIS 9 on a supported Linux distribution.System Requirements
Supported Operating Systems
NMIS 9 supports the following Linux distributions:- RedHat Enterprise Linux (RHEL) 7, 8, 9
- CentOS 7, 8
- Rocky Linux 8, 9
- Debian 9 (Stretch), 10 (Buster), 11 (Bullseye), 12 (Bookworm)
- Ubuntu 16.04, 18.04, 20.04, 22.04, 23.04
Hardware Requirements
- CPU: 2+ cores recommended
- RAM: 4GB minimum, 8GB+ recommended
- Disk: 20GB minimum for base installation
- Network: Internet access for installation (or offline packages)
Software Prerequisites
The installer will automatically install most dependencies, but you need:- Perl 5.10 or higher
- MongoDB 4.0 or higher (installer can set this up)
- Apache web server
- Root or sudo access
Installation Process
Download NMIS
Download the latest NMIS installer from the official repository or contact FirstWave for the installation package.The installer is typically named
nmis9-<version>.run or available as a source distribution.Prepare the System
Ensure your system has Perl and core Perl modules installed:The pre-installation script (
/home/daytona/workspace/source/pre-install.sh:118-122) checks for these requirements automatically.Run the Installer
Make the installer executable and run it:For a non-interactive installation with default options:
The
-y flag accepts all defaults. For custom installations, run interactively or use a preseed file.Choose Installation Directory
By default, NMIS installs to As noted in
/usr/local/nmis9. To specify a different location:/home/daytona/workspace/source/installer:73:MongoDB Installation
The installer can automatically set up MongoDB. You’ll be prompted whether to install/configure it.To skip MongoDB installation:
If you have an existing MongoDB instance, you can configure NMIS to use it later in the configuration file.
Perl Module Dependencies
The installer checks for required Perl modules and offers to install missing ones via CPAN:From
/home/daytona/workspace/source/installer:420-433, the installer checks modules like:- MongoDB (Perl driver)
- Mojolicious (web framework)
- JSON::XS
- Time::Local
- And many more…
Configuration Files
After installation, key configuration files are located at:Main Configuration
/usr/local/nmis9/conf/Config.nmis- Main NMIS configuration/usr/local/nmis9/conf-default/Config.nmis- Default configuration template
Database Configuration
From/home/daytona/workspace/source/conf-default/Config.nmis:2-9:
Directory Structure
The installation creates the following directory structure (fromConfig.nmis:25-55):
/usr/local/nmis9/bin- Executable scripts and tools/usr/local/nmis9/conf- Configuration files/usr/local/nmis9/models-custom- Custom device models/usr/local/nmis9/models-default- Default device models/usr/local/nmis9/var- Variable data, RRD files, temporary files/usr/local/nmis9/logs- Log files/usr/local/nmis9/htdocs- Web interface files/usr/local/nmis9/cgi-bin- CGI scripts
Post-Installation Steps
Fix File Permissions
Ensure correct permissions are set:This sets the appropriate owner, group, and permissions for all NMIS files.
Configure Apache
Configure Apache to serve the NMIS web interface. Apache configuration files are provided in:Copy the appropriate configuration for your Apache version and enable it.
Installation Options
Non-Interactive Installation
For automated deployments:Using a Preseed File
Create a preseed file with your answers:Offline Installation
To install without internet access:Offline mode requires that all dependencies are already installed or available from local repositories.
Troubleshooting
Installation Fails
Check the installation log:Missing Perl Modules
If module installation fails, install manually:MongoDB Connection Issues
Verify MongoDB is running:/usr/local/nmis9/conf/Config.nmis.
Next Steps
Quick Start Guide
Learn how to add your first device and start monitoring