icon how to white

How to set up
dependencies in PRTG:
VPN connection – a scenario

 

Question

How can I use dependencies in PRTG to effectively monitor a VPN connection
so that I receive as few notifications as possible when something does not work?

 

 

Description

 

Scenario VPN connection

You want to monitor your VPN connection and get notified when there is an outage. Your VPN connection is established between two firewalls, so you have to set up two separate devices in PRTG that represent the firewalls. You have also configured a standard notification trigger in the Root group that sends notifications for all Down states after 60 seconds.

 

Two dependencies in parallel

In this scenario, you can use two kinds of dependencies in parallel, that are based on the status of other sensors. This way, you can pause the monitoring and avoid false alarms, incorrect downtime recording, and notification floods.

You will see how you can use one sensor on a device as a dependency for the device itself (in most cases, the Ping sensor). Additionally, you can use a sensor on an entirely different device as a dependency for a second sensor on the same device.

 

 

Setup of dependency 1

 
 

In PRTG, open the settings of the Ping sensor on the device
that represents the first firewall, for example Firewall 1.

In section Schedules, Dependencies,
and Maintenance Window
,
select Master sensor for parent and save your changes.

 

The Ping sensor is now the master dependency object for this device. This means that whenever the Ping sensor is in a Down status (meaning that the device Firewall 1 is no longer reachable), Firewall 1 and all of its sensors will be paused by dependency.

 

Setup of dependency 2

 

But that is not enough for your needs because you also need to be able to check if the other firewall is available or not.

If the corresponding device is down because of connection problems, then you want to stop monitoring the connection during the period of unavailability. Otherwise, you will receive two notifications or have two sensors in a Down status for the same root cause.

For this purpose, you need to set a further dependency that represents the second firewall.

 

In PRTG, open the settings of the
SNMP Cisco ASA VPN Connections
on the device Firewall 1.

In section Schedules, Dependencies, and Maintenance Window, select Select a sensor.

Under Dependency, open the Object Selector to select a sensor that will be the master dependency of this sensor.

 

Select the Ping sensor of the device that represents the second firewall.

Save your changes.

 
device-dependencies.svg
 


The Ping sensor is now the master dependency object for the SNMP Cisco ASA VPN Connections sensor. If the Ping sensor is in a Down status (meaning that the second firewall is no longer reachable), the SNMP Cisco ASA VPN Connections sensor will be paused by dependency.

With this setup, you can now monitor your VPN connection easily using dependencies – and without unnecessary notifications and monitoring.

Change scanning intervals

To finalize the ping dependency setup, you also need to change the two Ping sensors’ scanning intervals to 30 seconds each, so they are checked more often than the other sensors. Pausing by dependency then works flawlessly. There is a how-to guide about How to set up scanning intervals.