mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-11 07:09:17 +02:00
Add ntopng (ct)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://www.ntop.org/products/traffic-analysis/ntop/
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Adding ntop Repository"
|
||||
curl -fsSL "https://packages.ntop.org/apt-stable/$(get_os_info codename)/all/apt-ntop-stable.deb" -o /tmp/apt-ntop-stable.deb
|
||||
$STD apt install -y /tmp/apt-ntop-stable.deb
|
||||
rm -f /tmp/apt-ntop-stable.deb
|
||||
$STD apt update
|
||||
msg_ok "Added ntop Repository"
|
||||
|
||||
msg_info "Installing ntopng"
|
||||
$STD apt install -y ntopng
|
||||
msg_ok "Installed ntopng"
|
||||
|
||||
msg_info "Configuring ntopng"
|
||||
cat <<EOF >/etc/ntopng/ntopng.conf
|
||||
-i=$(ip -4 route | awk '/default/ {print $5; exit}')
|
||||
-w=3000
|
||||
-d=/var/lib/ntopng
|
||||
--community
|
||||
EOF
|
||||
systemctl restart ntopng
|
||||
msg_ok "Configured ntopng"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in New Issue
Block a user