Closed Nachtfalkeaw closed 8 months ago
[Unit] Description=Smokeping-Prober After=network-online.target [Service] User=root Group=root Restart=always ExecReload=/bin/kill -HUP $MAINPID ExecStart=/opt/prometheus/smokeping_prober/smokeping_prober \ --config.file=/opt/prometheus/smokeping_prober/smokeping.yml \ --web.listen-address="192.168.10.51:9374" \ --privileged \ --log.level=info [Install] WantedBy=multi-user.target root@ubiquiti:/opt/prometheus/smokeping_prober#
targets: - hosts: - 192.168.10.1 - 192.168.10.51 - www.google.de interval: 0.5s # Duration, Default 1s. network: ip4 # One of ip, ip4, ip6. Default: ip (automatic IPv4/IPv6) protocol: icmp # One of icmp, udp. Default: icmp (Requires privileged operation) size: 64 # Packet data size in bytes. Default 56 (Range: 24 - 65535) source: 192.168.10.51 # Souce IP address to use. Default: None (automatic selection) - hosts: - 192.168.10.50 - 192.168.10.10 - www.ard.de interval: 0.5s # Duration, Default 1s. network: ip4 # One of ip, ip4, ip6. Default: ip (automatic IPv4/IPv6) protocol: icmp # One of icmp, udp. Default: icmp (Requires privileged operation) size: 512 # Packet data size in bytes. Default 56 (Range: 24 - 65535) source: 192.168.10.51 # Souce IP address to use. Default: None (automatic selection) - hosts: - 192.168.10.70 - 192.168.10.21 - 192.168.10.6 interval: 0.5s # Duration, Default 1s. network: ip4 # One of ip, ip4, ip6. Default: ip (automatic IPv4/IPv6) protocol: udp # One of icmp, udp. Default: icmp (Requires privileged operation) size: 128 # Packet data size in bytes. Default 56 (Range: 24 - 65535) source: 192.168.10.51 # Souce IP address to use. Default: None (automatic selection)
root@xxx:/opt/prometheus/smokeping_prober# tcpdump -nnvi ens3 host 192.168.10.51 and host 192.168.10.70 tcpdump: listening on ens3, link-type EN10MB (Ethernet), snapshot length 262144 bytes 00:26:23.175564 IP (tos 0x0, ttl 64, id 46291, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 911, length 136 00:26:23.674676 IP (tos 0x0, ttl 64, id 46406, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 912, length 136 00:26:24.175418 IP (tos 0x0, ttl 64, id 46497, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 913, length 136 00:26:24.675495 IP (tos 0x0, ttl 64, id 46618, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 914, length 136 00:26:25.175441 IP (tos 0x0, ttl 64, id 46692, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 915, length 136 00:26:25.674644 IP (tos 0x0, ttl 64, id 46796, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 916, length 136 00:26:26.174764 IP (tos 0x0, ttl 64, id 46842, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 917, length 136 00:26:26.675342 IP (tos 0x0, ttl 64, id 46852, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 918, length 136 00:26:27.175188 IP (tos 0x0, ttl 64, id 46974, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 919, length 136 00:26:27.675493 IP (tos 0x0, ttl 64, id 46977, offset 0, flags [DF], proto ICMP (1), length 156) 192.168.10.51 > 192.168.10.70: ICMP echo request, id 82, seq 920, length 136 ^C 10 packets captured 10 packets received by filter 0 packets dropped by kernel root@xxx:/opt/prometheus/smokeping_prober#
from tcpdump I only see ICMP. the frequency matches the 0.5s and the "lenth" is 156 which more or less the 126 configured for UDP.
UDP is about what socket is used to make ICMP packets. Not actually sending UDP packets.
from tcpdump I only see ICMP. the frequency matches the 0.5s and the "lenth" is 156 which more or less the 126 configured for UDP.