Infrastructure Monitoring, Alert Engineering & MSP Automation

// case study 07 · Automation & monitoring

Infrastructure Monitoring, Alert Engineering & MSP Automation

Making monitoring tell the truth: correlating VPN and WAN alerts, cutting false positives, managing a FortiGate fleet, scripting RMM components, and designing a FortiManager automation to detect and recover devices stuck in memory conserve mode across 43 FortiGates.

StatusOperations + automation design
My roleSystem Administrator II, monitoring and automation
ContextMSP monitoring across many customer sites

01Executive summary

Monitoring is only useful if the alert that wakes someone up is real and the alert that matters is not buried. At an MSP, the same symptom (a site goes dark) can be an ISP blip, a firewall in trouble, or a power cut, and every one of them generates its own pile of alerts.

This case study covers the alert engineering and automation work around that: correlating events, refining WAN and VPN alerting, managing a FortiGate fleet, scripting RMM components, and a featured automation design for recovering FortiGates that enter memory conserve mode.

Scope noteThe FortiManager automation is presented as a design and evaluation. It is not described as deployed.

02Disciplines & technologies

Disciplines

  • Monitoring & alerting
  • Event correlation
  • Automation design
  • Fleet management
  • Scripting
  • Change risk management

Technologies

  • FortiManager
  • FortiGate
  • FortiOS automation stitches
  • Datto RMM
  • RMM components
  • PowerShell
  • Rewst
  • IT Glue
  • GitHub
  • SNMP / syslog
  • VPN & WAN monitoring

03The problem

When a site’s internet drops, monitoring sees a VPN tunnel down, devices offline, a WAN link failed and perhaps a firewall unreachable. Four alerts, one cause, and a technician who has to work that out at speed. Meanwhile real problems, like a firewall slowly running out of memory, can look quiet until they fail.

FortiGates that run short on memory enter conserve mode, where they start dropping new sessions or skipping inspection. Catching that early across a fleet, and recovering safely, is a good automation candidate, and also a risky one.

04Environment & complexity

Scale & variety

  • Many customer sites with different WAN providers
  • A FortiGate fleet of mixed models and firmware
  • Several alert sources: RMM, firewall, VPN, SOC
  • Remote maintenance windows across time-sensitive businesses

Risk factors

  • Automated actions on production firewalls
  • A reboot drops every user at that site
  • False triggers can cause outages instead of preventing them
  • Loops: an automation that keeps acting on a device that keeps failing

05My contributions

  • VPN outage monitoring and event filtering so one cause produces one actionable alert
  • WAN alert refinement and false-positive reduction
  • Remote maintenance and firmware work across the FortiGate fleet
  • RMM scripting: components and scripts for repeatable remediation and deployment
  • Design of automated remediation with guard rails
  • FortiManager automation planning for memory conserve mode across 43 FortiGates
  • Scheduled documentation sync from the documentation platform into a version-controlled repository, with credentials excluded
Verification markerFortiManager automation: thresholds, test results and deployment status are not yet documented. Firmware rollout: staged across the fleet, final completion pending confirmation.

06Featured: conserve-mode automation design

43 FortiGatesfleet in scopeEventconserve mode enteredValidatesustained? repeat?IgnoretransientGuard railswindow · counterEscalatehuman reviewRecoverplanned rebootVerifyback online · memoryLog + notifyticket · auditnoyeslimit hitfails → escalate
Design under evaluation. Thresholds, windows and reboot behaviour are deliberately not specified until tested.

Evaluation checklist before anything runs automatically

  1. Prove the triggerConfirm the event fires reliably when conserve mode is entered, and does not fire on normal memory spikes.
  2. Lab and pilotTest on a lab or low-impact device, then a small pilot group, before the fleet.
  3. Guard railsRequire the condition to persist, cap the number of automated reboots per device per window, and never act during business-critical hours without approval.
  4. Escalate, do not loopIf recovery fails or the cap is hit, stop and raise it to a human with context.
  5. Root cause stays manualA reboot treats the symptom. Repeat offenders get investigated: firmware, features, sizing.
Representative read-only checks (illustrative)
# FortiOS: memory and conserve-mode state
› get system performance status
› diagnose hardware sysinfo conserve
# top memory consumers
› diagnose sys top-mem 10

Alert correlation

Before

Tunnel down, devices offline, WAN failed and firewall unreachable arrive as separate alerts.

Correlated

One site-level incident: the WAN went down, everything else is downstream. Child alerts are grouped or suppressed.

Refined

Thresholds and delays filter brief ISP blips so only outages that last get a page.

07Challenges & decisions

Automate the safe part first

Detection and notification are low-risk. Automated reboot is high-risk, so it is the last piece and the most guarded.

Caps beat cleverness

A simple limit on actions per device per window prevents the worst outcome: a reboot loop.

One cause, one alert

Correlation reduces noise without hiding the cause. Suppressed alerts are still logged.

Staged firmware

Fleet firmware moves in waves by model, with problem models last, so one bad release does not hit everyone.

08Outcomes

  • Ongoing

    Ongoing VPN, WAN and fleet monitoring and refinement.

  • Design / evaluation

    FortiManager conserve-mode automation for 43 FortiGates: designed and under evaluation, not deployed.

  • Ongoing

    Fleet firmware: staged rollout validated and in progress by model.

  • Verified

    Documentation-to-repository sync workflow in production, excluding credentials.

  • Not documented

    No false-positive reduction percentages or uptime figures are claimed.

09Lessons & capabilities

  • An automation that can reboot a firewall needs more testing than the firewall itself
  • Guard rails and escalation paths are the design, not extras
  • Alert quality matters more than alert quantity
  • Fix the cause; automate the recovery only while you do

Capabilities demonstrated

  • Alert engineering
  • FortiManager
  • Automation design
  • RMM scripting
  • Risk analysis
  • Fleet operations