mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-16 03:48:44 +00:00
add ntopng
This commit is contained in:
parent
d8962c2cd8
commit
29ea8f9e30
@ -92,6 +92,7 @@ A collection of delicious docker recipes.
|
||||
- [x] motion-arm :+1:
|
||||
- [x] nginx
|
||||
- [x] nifi
|
||||
- [x] ntopng
|
||||
- [x] nullmailer
|
||||
- [x] nullmailer-arm
|
||||
- [x] openhab
|
||||
|
25
ntopng/Dockerfile
Normal file
25
ntopng/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
||||
#
|
||||
# Dockerfile for ntopng
|
||||
#
|
||||
|
||||
FROM ubuntu:18.04
|
||||
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN set -xe \
|
||||
&& apt update \
|
||||
&& apt install -y wget lsb-release gnupg libjson-c3 \
|
||||
&& wget -q http://apt-stable.ntop.org/18.04/all/apt-ntop-stable.deb \
|
||||
&& dpkg -i apt-ntop-stable.deb \
|
||||
&& apt update \
|
||||
&& apt install -y ntopng \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
VOLUME /var/lib/ntopng
|
||||
|
||||
EXPOSE 3000 5556
|
||||
|
||||
CMD ntopng --http-port 0.0.0.0:3000 \
|
||||
--interface tcp://0.0.0.0:5556c \
|
||||
--redis redis \
|
||||
--data-dir /var/lib/ntopng
|
32
ntopng/README.md
Normal file
32
ntopng/README.md
Normal file
@ -0,0 +1,32 @@
|
||||
ntopng
|
||||
======
|
||||
|
||||
[ntopng][1] is the next generation version of the original ntop, a network traffic
|
||||
probe that monitors network usage. ntopng is based on libpcap and it has been
|
||||
written in a portable way in order to virtually run on every Unix platform,
|
||||
MacOSX and on Windows as well.
|
||||
|
||||
[nProbe][2] is a software NetFlow v5/v9/IPFIX probe able to collect, analyze and
|
||||
export network traffic reports using the standard Cisco NetFlow v5/v9/IPFIX
|
||||
format. It is available for most of the OSs on the market (Windows, BSD, Linux,
|
||||
MacOSX). When installed on a PC, nProbe turn it into a Network-aware monitoring
|
||||
appliance.
|
||||
|
||||
## Server (collector mode)
|
||||
|
||||
```
|
||||
$ mkdir -m 777 -p data/{ntopng,redis}
|
||||
$ docker-compose up -d
|
||||
$ curl http://localhost:3000
|
||||
```
|
||||
|
||||
## Client (probe mode)
|
||||
|
||||
```
|
||||
$ nprobe -i eth0 -n none --zmq-probe-mode --zmq tcp://ntopng-server:5556 -f 'tcp port 80'
|
||||
```
|
||||
|
||||
|
||||
|
||||
[1]: https://www.ntop.org/guides/ntopng/cli_options.html
|
||||
[2]: https://www.ntop.org/guides/nProbe/cli_options.html
|
19
ntopng/docker-compose.yml
Normal file
19
ntopng/docker-compose.yml
Normal file
@ -0,0 +1,19 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
ntopng:
|
||||
image: vimagick/ntopng
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "5556:5556"
|
||||
volumes:
|
||||
- ./data/ntop:/var/lib/ntopng
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
command: --save 900 1
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user