Integrate Spike with Pandora FMS
Send Pandora FMS alerts to Spike so a failing module alerts your on-call team by phone, SMS, Slack or Teams, and resolves when the alert recovers.
Pandora FMS is a monitoring platform for servers, networks, applications and cloud services. Agents report modules (checks such as CPU Load or Disk Free), and an alert fires when a module crosses a threshold.
Point a Pandora FMS alert action at a Spike integration URL and a critical or warning module pages your on-call rotation. Repeat firings of the same alert land on the incident already open, and the incident resolves when Pandora FMS reports the alert recovered.
How Spike reads the alert
Spike identifies the incident by alert_id, the value of Pandora FMS's _id_alert_ macro. One alert (an agent, module and template assignment) keeps the same ID across firing, re-firing and recovery, so they all belong to one Spike incident. A message with no alert_id, an empty one, or the macro text _id_alert_ left unexpanded is matched to an open incident by its title instead.
The event field decides what Spike does with a message:
event
Meaning
fired
Opens an incident, or joins the one already open for this alert_id. A missing event, or any other value, is also treated as firing.
recovered
Resolves the open incident for this alert_id. Never opens an incident: a recovery with nothing open is dropped. Compared case-insensitively; resolved, recovery, closed, cleared and ok are read the same way.
You type fired and recovered yourself in the action, so these two literals are the only part of the body that is not a Pandora FMS macro.
The incident title is built from the body:
Firing, with alert_id
{module} {status} at {data}{unit} (threshold {threshold}{unit}) on {agent}
CPU Load critical at 97% (threshold 90%) on web-prod-03
Firing, no alert_id
{module} {severity} on {agent}, with no readings
CPU Load critical on web-prod-03
Recovery
{module} recovered on {agent}
CPU Load recovered on web-prod-03
{module} falls back to alert_name and {agent} to address. A message with none of the four is titled Pandora FMS alert with no details.
Set up instructions
Step 1: Create a Pandora FMS integration in the Spike dashboard and copy the webhook URL.
Create integration and service on our dashboardStep 2: Create the alert action in Pandora FMS.
Log in to the Pandora FMS console as an administrator.
Open Alerts → Actions and click Create. The menu location differs a little between Pandora FMS versions.
Fill in the form:
Name:
SpikeGroup: the group that should be able to use this action, or
All.Command:
API request(called Pandora FMS API request in some versions). This command is not available in older versions; there, create a custom command that runscurlwith the same URL and body.
Set the request fields. URL, Method and the Triggering and Recovery data fields are all required.
URL: paste the webhook URL from Spike.
Method:
POST.Content type:
application/json, if the form asks for it.
In the Triggering data (Field) box, paste this body:
In the Recovery data (Field) box, paste the same body with one change:
"event": "recovered".Click Create to save the action.
Step 3: Use the action in an alert template.
Open Alerts → Templates and edit the template you want to send to Spike, or create one.
Turn on Alert recovery in the template. Without it, Pandora FMS never sends the recovery body and the incident stays open until you resolve it in Spike.
Open Alerts → List of alerts (or the agent's Alerts tab) and click Add alert. Pick the agent, the module, the template, and the Spike action.
Save the alert.
Step 4: Test it.
Force the module past its threshold, or use the alert's Force option in the alert list. A new incident should appear in Spike with a title like CPU Load critical at 97% (threshold 90%) on web-prod-03. When the module returns to normal, the incident resolves.
Fields Spike reads
event
typed by you
fired or recovered
alert_id
_id_alert_
Identity of the alert across firing and recovery
alert_name
_alert_name_
Template name; the "what" in the title when module is empty, as in Critical condition critical on web-prod-03
severity
_alert_text_severity_
Status word when module_status is empty or Normal, and always the status word in the plain title
agent
_agent_
The "where" in the title (agent alias, or name when there is no alias)
address
_address_
The "where" when agent is empty
agent_group
_agentgroup_
Context only; never in the title
module
_module_
The "what" in the title
module_status
_modulestatus_
Status word: critical, warning, unknown
data
_data_
The reading, when it is a number
unit
_dataunit_
Unit for the reading and threshold
critical_threshold_min, critical_threshold_max
_critical_threshold_min_, _critical_threshold_max_
Threshold cited when the module is critical
warning_threshold_min, warning_threshold_max
_warning_threshold_min_, _warning_threshold_max_
Threshold cited when the module is warning
timestamp
_timestamp_
Context only
The threshold shown is the one matching the status (critical_* for critical, warning_* for warning), and only when its minimum is a non-zero number and its maximum is 0 or empty. The reading is shown only when data is a number and there is a unit or a threshold beside it. Anything else is left out of the title rather than guessed.
FAQs
Last updated

