mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# Copyright (c) 2021-2025 tteck
 | 
						|
# Author: tteck (tteckster)
 | 
						|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
 | 
						|
# Source: https://oss.oetiker.ch/smokeping/
 | 
						|
 | 
						|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
 | 
						|
color
 | 
						|
verb_ip6
 | 
						|
catch_errors
 | 
						|
setting_up_container
 | 
						|
network_check
 | 
						|
update_os
 | 
						|
 | 
						|
msg_info "Installing SmokePing"
 | 
						|
$STD apt install -y smokeping
 | 
						|
cat <<EOF >/etc/smokeping/config.d/Targets
 | 
						|
*** Targets ***
 | 
						|
probe = FPing
 | 
						|
menu = Top
 | 
						|
title = Network Latency Grapher
 | 
						|
remark = Welcome to SmokePing.
 | 
						|
+ Local
 | 
						|
menu = Local
 | 
						|
title = Local Network (ICMP)
 | 
						|
++ LocalMachine
 | 
						|
menu = Local Machine
 | 
						|
title = This host
 | 
						|
host = localhost
 | 
						|
+ DNS
 | 
						|
menu = DNS latency
 | 
						|
title = DNS latency (ICMP)
 | 
						|
++ Google
 | 
						|
title = Google
 | 
						|
host = 8.8.8.8
 | 
						|
++ Cloudflare
 | 
						|
title = Cloudflare
 | 
						|
host = 1.1.1.1
 | 
						|
++ Quad9  
 | 
						|
title = Quad9 
 | 
						|
host = 9.9.9.9
 | 
						|
++ OpenDNS
 | 
						|
title = OpenDNS
 | 
						|
host = 208.67.222.222
 | 
						|
+ HTTP
 | 
						|
menu = HTTP latency
 | 
						|
title = HTTP latency (ICMP)
 | 
						|
++ Github
 | 
						|
host = github.com
 | 
						|
++ Discord
 | 
						|
host = discord.com
 | 
						|
++ Google
 | 
						|
host = google.com
 | 
						|
++ Cloudflare
 | 
						|
host = cloudflare.com
 | 
						|
++ Amazon
 | 
						|
host = amazon.com
 | 
						|
++ Netflix
 | 
						|
host = netflix.com
 | 
						|
EOF
 | 
						|
systemctl restart smokeping
 | 
						|
msg_ok "Installed SmokePing"
 | 
						|
 | 
						|
motd_ssh
 | 
						|
customize
 | 
						|
 | 
						|
msg_info "Cleaning up"
 | 
						|
$STD apt -y autoremove
 | 
						|
$STD apt -y autoclean
 | 
						|
$STD apt -y clean
 | 
						|
msg_ok "Cleaned"
 |