This is helpful to avoid getting alerts when downstream device like a router or switch fails so you don’t get alerts on the other devices connected to it. It does a simple ping test on a device and if it is outside the threshold, it uses the LogicMonitor API to set an SDT on all devices in the same group where the applied device is located and all devices in subgroups (if any). The duration can be adjusted if needed.



  1. If you don’t already have a user account for API usage, please create one with just the minimum role that has permissions that are needed which is ‘modify’ for devices (to set the SDT).
  2. Download this DataSource file and add it into your LogicMonitor account (Settings > DataSources > Add > From file)
  3. Edit the script with settings for API usage (company (aka account name), api username, API password)
  4. Apply the datasource to the desired devices (usually router or a switch) by some clever method (perhaps name or property)
  5. Add these properties to the device that you apply it to so the script can use them
    ping_loss_threshold = 9   (note: this is in percent)
    SDT_duration = 8   (note: this is minutes)
  6. Please test. You may need to modify the default ping datasource (or create/use a different one) with settings that won’t trigger an alert too soon (ie increase the “consecutive” setting by a few so it doesn’t trigger before the SDT).