How to install Netdisco on Rocky Linux 9.4

How to install Netdisco on Rocky Linux 9.4


what is Netdisco?

Netdisco is an open source web-based network management tool designed for network discovery ,management and monitoring.

Main features of Netdisco are : Network discovery ,Device and host tracking, Inventory management ,Network monitoring and on top of all it has a web interface.

to know more about netdisco follow this link: https://netdisco.org/

because Netdisco is based on Perl ,Python, and PostgresSQL we will need to install those

Packages first by:

sudo yum install perl-core perl-DBD-Pg net-snmp-perl net-snmp-devel openssl-devel python3 curl postgresql-server postgresql-contrib make automake gcc        

after that we will need to setup and enable postgresSQL by:

sudo postgresql-setup initdb
sudo systemctl start postgresql
sudo systemctl enable postgresql        

the next step is to create a netdisco user

useradd -m -p x -s /bin/bash netdisco        

configuring the postgres :

su - postgres
createuser -DRSP netdisco
        

create database (here we will choose netdisco)

createdb -O netdisco netdisco        

Now we will change to the netdisco user and curl netdisco :

su - netdisco
curl -L https://cpanmin.us/ | perl - --notest --local-lib ~/perl5 App::Netdisco        

after the newly installed , put it in a handy location:

mkdir ~/bin
ln -s ~/perl5/bin/{localenv,netdisco-*} ~/bin/        

In order to test run the command :

~/bin/netdisco-backend status        

now we will need to make a directory and copy the configuration from the distro:

mkdir ~/environments
cp ~/perl5/lib/perl5/auto/share/dist/App-Netdisco/environments/deployment.yml ~/environments
chmod 600 ~/environments/deployment.yml        

go to environments to change the values of name ,username,pass

nano ~/environments/deployment.yml        

now it is time to install Netdisco and create admin account :

~/bin/netdisco-deploy        

starting netdisco:

~/bin/netdisco-web start

OR

~/bin/netdisco-backend start        

for first run use

~/bin/netdisco-do discover -d {name or IP address of a switch or router}        

netdisco listens on port 5000 , open your browser and put :

https://localhost:5000/        

you may need to open port 5000 by checking and opening the port :

sudo firewall-cmd --list-ports
sudo firewall-cmd --zone=public --add-port=5000/tcp --permanent
sudo firewall-cmd --reload        

Check your browser again to see if you can reach the login page:



要查看或添加评论,请登录

Luke Yosipovitch的更多文章

  • How to install Jenkins using Portainer

    How to install Jenkins using Portainer

    In the last article I have mentioned the steps on how to install Portainer on Rocky Linux that will manage your…

  • Install & Configure Docker & Portainer on Rocky Linux

    Install & Configure Docker & Portainer on Rocky Linux

    What is Portainer ? Portainer is An open-source program that offers a management interface for Kubernetes, Azure ACI…

  • How to install Rancher on Rocky Linux

    How to install Rancher on Rocky Linux

    What is Rancher? Rancher is a free and open-source container management platform that simplifies the deployment and…

    2 条评论
  • How To Create A Website Less Than a Pound

    How To Create A Website Less Than a Pound

    These days it is easy to build a website yourself from using various online tools that are offered , some are more…

社区洞察

其他会员也浏览了