11 years ago
VPN monitoring
We monitor Watchguard and Cisco firewalls. One of the things that we need to know is if a VPN drops. There are lots of graphs for VPN tunnel traffic etc, however there is no out of the box, easy wa...
Suggestions: If the 'tunnels' DataSource doesn't meet your needs, here's an option. I call it 'mesh ping' It works by using a property called 'ping.targets' on a group of your collectors. It has a comma delimited list of displaynames and IP addresses. Basically each collector pings a device on the other end of the VPN.
Below is the short script that builds the list of ping targets (known as 'Active Discovery'.
ip_a = hostProps.get("ping.targets");
//ip_a = "google@8.8.8.8,gateway@10.36.17.1,self@10.36.17.250"
ip_b = ip_a.split(',');
for ( i = 0; i < ip_b.length; i++) {
def (name,ip) = ip_b.split('@');
println ip+"##"+name+"@"+ip;
}