Why to pay tens of thousands $$$ for your network management software?
Get visibility into your networks and complex processes inside with NG-NetMS now!
NG-NetMS is a new end-to-end network management platform for your Linux servers, Cisco, Juniper, HP and Extreme routers, switches and firewalls.
NG-NetMS is precise, quick and efficient. It collects most complete information about the network inventory, topology, map of IPv4 addresses quickly and with minimum hassle. Most important you will be able to collect, process and analyse Syslog events and SNMP alarms both in near-real-time and from the historical archives in a new way.
We successfully used NG-NetMS for delivery of network assessment services for our customers worldwide for many years. And now we want to share this unique and fully functional tool with community. It is not capped in terms of performance or number of nodes. The only limit is the hardware you deploy it on.
http://www.opt-net.eu/products
License Apache License V2.0, GNU General Public License version 3.0 (GPLv3), GNU Library or Lesser General Public License version 3.0 (LGPLv3)
IMPORTANT: Before proceeding, ensure that you have root permissions and administrative rights for the network about to be discovered or managed. If in doubt, consult with your network administrator or company management. Do not try to discover and manage networks for which you do not have administrative rights. This may result in your IP address being banned or even serious legal consequences.
[ngnms@localhost build]$ sudo yum install epel-release deltarpm
[ngnms@localhost build]$ sudo yum install cmake make gcc-c++ perl cpanminus nmap pcre-devel libpqxx-devel flex flex-devel net-snmp-devel cryptopp-devel boost-devel postgresql-devel telnet libmcrypt
[ngnms@localhost build]$ sudo cpanm install --no-man-pages --notest Dist::Zilla::Plugin::PodWeaver Pod::Weaver::Section::GenerateSection
[ngnms@localhost build]$ git clone https://github.com/opt-oss/NG-NetMS.git
[ngnms@localhost build]$ cp settings.cmake.dist settings.cmake
[ngnms@localhost build]$ vi settings.cmake
[ngnms@localhost build]$ cmake .
[ngnms@localhost build]$ make
[ngnms@localhost build]$ sudo mkdir -p /opt/ngnms
[ngnms@localhost build]$ sudo chown ngnms /opt/ngnms
[ngnms@localhost build]$ make install
[ngnms@localhost build]$ sudo apt-get update
[ngnms@localhost build]$ sudo apt-get install cmake make gcc g++
[ngnms@localhost build]$ sudo apt-get install perl cpanminus nmap
[ngnms@localhost build]$ sudo apt-get install pcre-devel libpqxx-devel
[ngnms@localhost build]$ sudo apt-get install flex flex-devel net-snmp-devel
[ngnms@localhost build]$ sudo apt-get install cryptopp-devel boost-devel postgresql-devel telnet libmcrypt
[ngnms@localhost build]$ sudo cpanm install --no-man-pages --notest Dist::Zilla::Plugin::PodWeaver Pod::Weaver::Section::GenerateSection
[ngnms@localhost build]$ git clone https://github.com/opt-oss/NG-NetMS.git
[ngnms@localhost build]$ cp settings.cmake.dist settings.cmake
[ngnms@localhost build]$ vi settings.cmake
[ngnms@localhost build]$ cmake .
[ngnms@localhost build]$ make
[ngnms@localhost build]$ sudo mkdir -p /opt/ngnms
[ngnms@localhost build]$ sudo chown ngnms /opt/ngnms
[ngnms@localhost build]$ make install
either
[ngnms@localhost build]$ sudo make perl-install-deps
or
ngnms@localhost ngnms]$ pwd
/opt/ngnms
[ngnms@localhost ngnms]$ sudo cpanm --no-man-pages --notest --installdeps .
[sudo] password for ngnms:
--> Working on .
Configuring /opt/ngnms ... OK
perform usual steps to setup postgres and start service
sudo systemctl start postgresql-9.5
[ngnms@localhost build]$ sudo su -l postgres
Last login: Tue Jun 27 12:00:28 CEST 2017 on pts/1
-bash-4.2$ createuser -d --pwprompt ngnms
Enter password for new role:
Enter it again:
-bash-4.2$
sudo su
[root@localhost database]# cat /opt/ngnms/env.list >> /etc/environment
logout and login
[ngnms@localhost build]$ cd /opt/ngnms/database/
[ngnms@localhost database]$ ./db_init.sh -r init-db.sql
[ngnms@localhost database]$ ./migrate.pl --upgrade=latest
!!!WARNING!!! Excersise caution if your web server already hosts your other websites. Do not copy-paste blindly, because this will render your existing website inoperable. instructions that follow assume that you do not have web service configured yet.
use su
account for operations below
####SELinux
setting up of selinux
permission is out iof this document scope
dangerous Disable SELinux
setenforce 0
remove /var/www/html if exists
this will remove all previously installed default server content
##Centos
[ngnms@localhost build]$ sudo yum install httpd php php-pdo_pgsql php-pgsql php-pear php-mcrypt
[ngnms@localhost build]$ sudo pear install Net_IPv4
[ngnms@localhost build]$ sudo systemctl enable httpd.service
[ngnms@localhost build]$ sudo ln -s /opt/ngnms/www/html /var/www/html
[ngnms@localhost build]$ cp /opt/ngnms/www/custom_config/main.php.example /opt/ngnms/www/custom_config/main.php
[ngnms@localhost build]$ sudo chown -R ngnms:apache /opt/ngnms/www
Edit your ngnms_vhost.conf file accordingly to your local configuration and copy into apache2 sites-available folder
sudo cp ngnms_vhost.conf /etc/apache2/sites-available/ngnms_vhost.conf
sudo a2ensite ngnms_vhost.conf
service apache2 reload
short_open_tag should be ennabled.
This can be done by enabling short_open_tag in php.ini:
short_open_tag = on
If you do not have access to the php.ini you can try to enable short_open_tag trough the .htaccess file.
php_value short_open_tag 1
NOTE: it's possible that host admin disabled the second option. Verify your permissions with your system administrators.
as user ngnms
[ngnms@localhost ~]$ crontab /opt/ngnms/crontab.init
wait 5 minutes for scheduled tasks added and script created
[ngnms@localhost build]$ sudo cp /opt/ngnms/ngnms-audit.service /etc/systemd/system/ngnms-audit.service
# Centos
[ngnms@localhost build]$ sudo systemctl enable ngnms-audit
[ngnms@localhost build]$ sudo systemctl start ngnms-audit
[ngnms@localhost build]$ sudo systemctl status ngnms-audit
sudo cp jm-worker-initd.sh /etc/init.d/jm-workerd-init sudo chmod ug+x /etc/init.d/jm-workerd-init sudo chown root:root /etc/init.d/jm-workerd-init
[ngnms@localhost ~]$ sudo cp /opt/ngnms/nmap.sudo /etc/sudoers.d/nmap
###collector
[ngnms@localhost bin]$ cd /opt/ngnms/bin
[ngnms@localhost bin]$ ./ngnetms_db
[ngnms@localhost bin]$ sudo -E ${NGNMS_HOME}/bin/ngnetms_collector -s syslog-udp -p 514 -c ${NGNMS_HOME}/bin/db.cfg -r ${NGNMS_HOME}/rules/rules.txt -l ${NGNMS_LOGS}/syslog_collector.log -v &
Default login details: ngnms:optoss
obtain terminal connection via SSH and change your directory to $NGNMS_HOME
cd $NGNMS_HOME cd bin service_manager ngnetms status
Start collector, observer and optprf services if not runninng.
Usage: service_manager.sh <collector|observer|optprf> <start|stop|restart|initdb|status> ["options"] <anomaly|ngnetms> <start|stop|restart|initdb|status>