Files
ProxmoxVE/install/ntopng-install.sh
T
push-app-to-main[bot] a06ca3cf59 ntopng (#16387)
2026-08-15 23:33:58 +02:00

36 lines
821 B
Bash

#!/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
fetch_and_deploy_from_url "https://packages.ntop.org/apt-stable/$(get_os_info codename)/all/apt-ntop-stable.deb" ""
msg_info "Installing ntopng"
$STD apt update
$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