Skip to content

Rotating IP list for Ping #23531

Closed Answered by pkkrusty
miXza81 asked this question in Support request
Jun 9, 2025 · 3 comments · 9 replies
Discussion options

You must be logged in to vote

This is the solution I use. Writes to influxdb so i can create a little status visual in grafana. Probably could be cleaned up (by assigning the IPs and names to vars or mem to save space)

Rule1 
ON Time#Initialized DO backlog ruletimer2 10; var2 1 ENDON 
on rules#timer==2 do backlog add2 1; ruletimer2 8; event t1=%var2% endon 
on var2#state>=12 do var2 1 endon 
on event#t1==1 do backlog ping4 192.168.3.70; var3 MoringaRouter endon 
on event#t1==2 do backlog ping4 192.168.3.9; var3 DortoirRouter endon 
on event#t1==3 do backlog ping4 192.168.3.22; var3 ClinicRouter endon 
on event#t1==4 do backlog ping4 192.168.3.14; var3 CouvoirRouter endon 
on event#t1==5 do backlog ping4 192.168.3.33; …

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@sfromis
Comment options

@miXza81
Comment options

@miXza81
Comment options

@sfromis
Comment options

@miXza81
Comment options

Comment options

You must be logged in to vote
1 reply
@miXza81
Comment options

Answer selected by miXza81
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants