X
Réduire
-
Raspberry - Installation Ntopng
1. Mise à jour de notre Raspberry
sudo apt-get update && sudo apt-get upgrade -uV
2. Installation de composant dont nous auront besoin
sudo apt-get install build-essential libtool automake autoconf libpcap-dev libgdbm-dev zlib1g-dev rrdtool librrd-dev libssl-dev python-dev libgeoip-dev graphviz libgraphviz-dev autoconf automake autogen libsqlite3-dev libhiredis-dev libtool rrdtool libpcap-dev libglib2.0 libglib2.0-dev libgeoip-dev redis-server wget libxml2-dev build-essential check install nano libtool automake autoconf make build-essential python-dev subversion libpcap-dev libgdbm-dev zlib1g-dev libgeoip-dev libgraphviz-dev graphviz rrdtool librrd-dev
3. Création d'un dossier pour y mettre nos source
Création du dossier de travail
sudo mkdir -p /opt/install
cd /opt/install
sudo wget --trust-server-names http://sourceforge.net/projects/ntop...ar.gz/download
4. Extraction du fichier
sudo tar -xf ntopng-2.0.0.tgz
5. Installation et compilation de notre application
cd ntopng-2.0.0
sudo ./autogen.sh
sudo ./configure
sudo make geoip
sudo make
sudo check install
sudo checkinstall
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
...
Answer: y
...
Should I create a default set of package docs? [y]: y
...
Preparing package documentation...OK
...
Please write a description for the package eg: ntopng and confirm it using 2x ENTER.
Please write a description for the package.
End your description with an empty line or EOF.
>> ntopng
>>
...
0 - Maintainer: [ [email protected] ]
1 - Summary: [ ntopng ]
2 - Name: [ ntopng ]
3 - Version: [ 1.2.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ ntopng-1.2.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ntopng ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Enter a number to change any of them or press ENTER to continue:
Continue by pressing ENTER.
....
Copying files to the temporary directory...OK
Stripping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list...OK
Building Debian package...OK
Installing Debian package...OK
Erasing temporary files...OK
Deleting temp dir...OK
************************************************** ********************
Done. The new package has been installed and saved to
../install/ntopng-1.2.1/ntopng_1.2.1-1_amd64.deb
You can remove it from your system anytime using:
dpkg -r ntopng
************************************************** ********************
The new package should be located in install folder e.g:
../install/ntopng-1.2.1/ntopng_1.2.1-1_amd64.deb
To remove ntopng use command below:
sudo dpkg -r ntopng
6. Configure init script ntopng
Create ntopng configfile in /etc/default folder and create new folder for logs:
sudo mkdir /var/log/ntopng
sudo touch /var/log/ntopng/startup.log
sudo wget http://terminal28.com/wp-content/upl...ipt-deb.tar.gz
sudo tar xvzf ntopng-init-script-deb.tar.gz -C /
sudo chmod +x /etc/default/ntopng
sudo chmod +x /etc/init.d/ntopng
7. Configuration du fichier par défaut
sudo nano /etc/default/ntopng
ENABLED=1
Configure network interfaces e.g:.
INTERFACES="eth0 eth1 wlan0"
Port on which ntopng will listen for the web-UI – default port 3000.
HTTP_PORT=3000
Additional command-line arguments for ntopng, more: ntopng –help.
ADD_ARGS=""
8. Redémarrer les services
sudo /etc/init.d/redis-server restart
sudo /etc/init.d/ntopng start
9. Pour accéder à l'interface de Ntopng
saisir url
http://adress_IP:3000
Vous pouvez vous identifier avec
login : admin
password: admin
10. Pour aller plus loin nous pouvons mettre le service en démarrage automatique
L'envoi de commentaires est désactivé.
Categories
Réduire
Article Tags
Réduire
- active directory (4)
- analyse (2)
- batch (2)
- commande (7)
- commandes (3)
- dns (3)
- docker (6)
- exchange (9)
- linux (11)
- message d'absence (4)
- monitoring (3)
- network (4)
- powershell (13)
- raspberry (4)
- raspberry pi (4)
- réseau (5)
- script (2)
- securite (4)
- security (3)
- serveur (3)
- shell (3)
- snmp (3)
- supervision (5)
- windows (2)
- windows server (2)
Latest Articles
Réduire
-
par hcornetLorsqu'on a l'erreur : Warningchmod(): Operation not permitted au moment de l'exportation de la configuration des colleteurs
ouCode:chown www-data:www-data /etc/centreon-engine/* chown www-data:www-data /etc/centreon-broker/*
...Code:chown apache:apache /etc/centreon-engine/* chown apache:apache /etc/centreon-broker/*
-
Canal: Centreon
21 April 2025, 16h53 -
-
par hcornet
Commencer par télécharger la source : Docker-librenms version 1.23
Décomprésser l’archive
Il faut modifier le fichier librenms.env se trouvant dans le dossier env
il y a la ligne avec :
il faut remplacer l’adresse IP par la votre
placez-vous dans le dossier et saisir
Depuis l’interface phpmyadmin
http://adresse:8081
Nous allons créer la table librenms et un utilisateur pour établir la connexion...1 photo-
Canal: Supervision
22 October 2023, 19h09 -
-
par hcornet
Pour avoir un aperçu de Librenms, voici des composants docker pour en avoir une petite idée.
Commencer par télécharger la source > docker-librenms <
Positionnez-vous à la racine du dossier
Une fois les système construit, depuis l’interface phpmyadmin http://@ip:8081
Depuis une autre interface console
Ici, vous allez créer le premier compte (si vous désirez faire une modifier c’est ici)...-
Canal: Supervision
22 October 2023, 18h49 -
-
par hcornet
Installation mrtg
Pour centos
yum install -y mrtg
Pour ubuntu
apt-get install -y mrtg
Création du script de génération d’élément
nano /etc/mrtg/mrtgadd.sh
Contenu
#!/bin/sh
# mrtgadd.sh
#
# Syntaxe: mrtgadd.sh <nom_de_la_machine> <adresse_ip_de_la_machine>
MRTGADD_DIR=/var/www/mrtg/$1
MRTGADD_HOME=/var/www/mrtg
echo "Creation du repertoire: ${MRTGADD_DIR}"
sudo mkdir...-
Canal: Supervision
21 October 2023, 19h44 -
-
par hcornet1. Mise à jour de notre Raspberry
sudo apt-get update && sudo apt-get upgrade -uV
2. Installation de composant dont nous auront besoin
sudo apt-get install build-essential libtool automake autoconf libpcap-dev libgdbm-dev zlib1g-dev rrdtool librrd-dev libssl-dev python-dev libgeoip-dev graphviz libgraphviz-dev autoconf automake autogen libsqlite3-dev libhiredis-dev libtool rrdtool libpcap-dev libglib2.0 libglib2.0-dev libgeoip-dev redis-server wget...-
Canal: Supervision
08 September 2023, 07h49 -
