NetMap4Nagios

Nagios Front-End and Network Configuration Tool

Install


The template system is a file library intended for automatic configuration of interfaces and services.
Installation can be done manually by copying and modifying files.
Installation can be done manually by copying and modifying files. Install Pre-Requisites --------------------------------------------------------------------- Install http server Install php compiled with mysql,xml,snmp,gd,json support (tested with 5.6 to 7.4) Install and run Nagios system for visualization state of host and services Install and run Nagios database interface (ndo2db) Install and run SNMPTT system for SNMP Traps Install Plugin for Nagios: interfacetable_v3t Install pnp4nagios plugin for Nagios Install other Nagios subsytstems Installation --------------------------------------------------------------------- Create directory "NetMap4Nagios" and set permission for user *apache*. User "apache" can write and read it: mkdir <path to>/NetMap4Nagios chown apache <path to>/NetMap4Nagios chmod 755 <path to>/NetMap4Nagios - Extract netmap4nagios.tar into created directory: cd <path to>/netmap4nagios tar xvfz netmap4nagios.tgz Directory sql include database files: netmap4nagios.sql - database file need by application. File include example data. nagios_example.sql - Nagios example database. Install if you no Nagios system. snmptt_example.sql - SNMPTT example database. - Install database: - Create database "netmap4nagios": mysql -uroot -p < sql/netmap4nagios.sql and (if you need): mysql -u[user] -p[password] < sql/nagios_example.sql mysql -u[user] -p[password] < sql/snmptt_example.sql - Edit config/config.php file and: Set configuration. Set $root_dir = [install application directory]; (default $root_dir="/raid0/apps/NetMap4Nagios";) Set permition to databse in config/config.php file: Set access to netmap4nagios database. Set access to Nagios database. Set access to SNMPTT database. - Setup httpd configuration. For example: Alias /netmap4nagios "/raid0/apps/netmap4nagios" <Directory /raid0/apps/netmap4nagios/> &AddDefaultCharset UTF-8 &Require all granted &AllowOverride All </Directory> Alias /interfacetable_v3t/tables "/usr/local/interfacetable_v3t/share/tables" <Directory /usr/local/interfacetable_v3t/share/tables/> AddDefaultCharset UTF-8 Require all granted AllowOverride All </Directory> <VirtualHost *:80> DocumentRoot /raid0/apps/netmap4nagios ServerName [Domain Name. For example: netmap4nagios.eu] <Directory "/raid0/apps/netmap4nagios"> Options FollowSymLinks MultiViews AddDefaultCharset UTF-8 Require all granted #SSLRequireSSL #Options ExecCGI FollowSymLinks Indexes AllowOverride All #Order allow,deny #Allow from all AddOutputFilterByType DEFLATE text/html textain text/xml text/css text/javascript application/javascript </Directory> ServerAdmin email@domain.eu CustomLog logs/netmap4nagios.pl.log combined ErrorLog logs/netmap4nagios.pl.error </VirtualHost> <VirtualHost *:443> DocumentRoot /raid0/apps/netmap4nagios ServerName [Domain Name. For example: netmap4nagios.eu] <Directory "/raid0/apps/netmap4nagios"> Options FollowSymLinks MultiViews AddDefaultCharset UTF-8 Require all granted #SSLRequireSSL #Options ExecCGI FollowSymLinks Indexes AllowOverride All #Order allow,deny #Allow from all AddOutputFilterByType DEFLATE text/html textain text/xml text/css text/javascript application/javascript </Directory> ServerAdmin email@domain.eu CustomLog logs/netmap4nagios.pl.log combined ErrorLog logs/netmap4nagios.pl.error </VirtualHost> - Verify that netmap4nagios is working by running (for example): http[s]://<your web site>/netmap4nagios/ Admin login: admin Admin pass: !admin