Integrate Spike with WhatsUp Gold
Send WhatsUp Gold alerts to Spike with a PowerShell action so a down device or monitor alerts your on-call team, and resolves when it comes back up.
Overview
WhatsUp Gold is a network and infrastructure monitoring tool. It watches devices with active monitors (Ping, HTTPS, CPU and so on) and passive monitors (SNMP traps, syslog, Windows events), and runs Actions when a monitor or a device changes state.
WhatsUp Gold has no built-in webhook for Spike. Instead you add a PowerShell Script Action that posts a small JSON body to your Spike integration URL. You create two actions, one bound to the Down state change and one bound to the Up state change. The word you type into each script (down or up) is what tells Spike whether to open or resolve an incident.
Set up instructions
Step 1: Create a WhatsUp Gold integration in the Spike dashboard and copy the webhook URL.
Create integration and service on our dashboardStep 2: Create the actions in WhatsUp Gold
Log in to WhatsUp Gold with an administrator account.
Open the action library: from the main menu, go to SETTINGS → Actions & Alerts → Actions and Policies.
Create the Down action:
On the Actions tab, click the Add icon.
In Select Action Type, choose PowerShell Script and click Select.
Name:
Spike - Down.Script: paste the script below, replacing
YOUR_SPIKE_WEBHOOK_URLwith the URL from Step 1.Save the action.
$body = @" { "status": "down", "device_id": "%Device.DatabaseID", "device_name": "%Device.DisplayName", "host_name": "%Device.HostName", "address": "%Device.Address", "monitor": "%ActiveMonitor.Name", "monitor_state": "%ActiveMonitor.State", "device_state": "%Device.State", "down_monitors": "%Device.ActiveMonitorDownNamesCSV" } "@ Invoke-RestMethod -Uri "YOUR_SPIKE_WEBHOOK_URL" -Method Post -ContentType "application/json" -Body $bodyCreate the Up action: repeat step 3 with Name
Spike - Upand the same script, changing only the first line of the body to"status": "up",.Test the actions: on the Actions tab, click Test, pick
Spike - Downand click Test. A test run has no device behind it, so the variables may arrive unexpanded. If they do, Spike opens an incident titledWhatsUp Gold alert with no details; resolve it by hand.Create the action policy:
On the Action Policy tab, click the Add icon to open the Action Policy Builder, and name the policy, for example
Spike.Click Add to add a rule: Action
Spike - Down, and under Execute the action on the following state change pick the Down state.Click Add again for a second rule: Action
Spike - Up, triggered on the Up state.Click Save.
Apply the policy:
For a whole device, open its Device Properties → Actions, click Apply the following Action Policy, select
Spikeand click Save. Spike treats these as device-level alerts.For a single active monitor, assign the policy to that monitor on the device instead. Spike then tracks each monitor on its own.
Check it end to end: bring a test monitor down and up again, and confirm an incident opens and then resolves in Spike.
Field reference
Send exactly these fields. All of them are plain strings. A variable WhatsUp Gold leaves unexpanded (for example %ActiveMonitor.Name in a device-level action) is treated as empty.
status
typed by you: down or up
Yes
down opens or joins an incident, up resolves it. resolved, closed, ok, cleared and recovered also count as up; anything else is treated as down.
device_id
%Device.DatabaseID
Yes
Identifies the device. Repeats join, recoveries resolve.
monitor
%ActiveMonitor.Name
Yes for monitor alerts
Second part of the identity. Empty for device-level actions.
device_name
%Device.DisplayName
Recommended
Names the device in the incident title.
host_name
%Device.HostName
Optional
Used when device_name is empty.
address
%Device.Address
Optional
Last-resort device name.
monitor_state
%ActiveMonitor.State
Optional
Shown in the title, for example Down at least 5 min.
device_state
%Device.State
Optional
Shown in the title for device-level alerts.
down_monitors
%Device.ActiveMonitorDownNamesCSV
Optional
Names the down monitors in device-level alert titles.
text
%PassiveMonitor.LoggedText
Passive monitors only
The trap, syslog or event-log line. Becomes the title, and is part of the identity.
Example of what the Down action sends:
And the Up action:
That body produces the incident title HTTPS is Down at least 5 min on web-prod-01, and the Up produces HTTPS recovered on web-prod-01.
Passive monitors (SNMP traps, syslog, Windows events)
Passive monitors have no Up state, so they need only a Down-style action. Create a third action, Spike - Passive, with the same script as Spike - Down plus one more line in the body, after down_monitors (add a comma at the end of the down_monitors line):
Put it in its own action policy and assign that policy to the passive monitors you want Spike to page on.
When text is filled in, it becomes the incident title as WhatsUp Gold logged it, for example Link down on interface GigabitEthernet1/0/24. Spike keeps each different text on a device as its own incident, and keeps them apart from that device's Down alerts, so an open trap incident never hides the device itself going down. Because passive monitors never report Up, resolve these incidents by hand once you have dealt with them.
FAQs
Last updated

