Zabbix Integration with SPOG.AI

Overview

SPOG.AI integrates with Zabbix to centralize visibility of monitored hosts, performance metrics,
availability data, triggers, alerts, and service health indicators. The integration ingests
monitoring telemetry into the SPOG.AI CMDB and Observability platform, enabling correlation of
infrastructure risks, incidents, and performance insights across your environment. SPOG.AI
retrieves the data through the Zabbix API using a dedicated read-only user, and can optionally
receive real-time alerts through Zabbix webhooks.

Key Features

CapabilityDescription
Host & CMDB InventoryIngests hosts, host groups, templates, and host metadata into the SPOG.AI CMDB.
Performance MetricsRetrieves CPU, memory, disk, network throughput, and application or service metrics.
Trigger & Alert IngestionCollects trigger states, severity, problem events, and event history.
Availability & SLATracks uptime, downtime, SLA reports, and outage history.
Real-Time Alerts (Optional)Receives alerts pushed from Zabbix webhooks or media types for immediate ingestion.
Observability & Risk ScoringCorrelates data with CMDB assets to power observability dashboards, risk scoring, and trend analysis.
Incident EnrichmentEnriches incidents with Zabbix alert and performance context.

How the Integration Works


Zabbix exposes monitoring data through its JSON-RPC API, including hosts and inventory,
items and metrics, triggers, problems (alerts), event history, and availability. SPOG.AI connects
to the Zabbix API and periodically retrieves host CMDB metadata, performance metrics, trigger
states, alert and problem events, and SLA and availability history.
Optionally, Zabbix webhooks or media types can push real-time alerts to SPOG.AI for
immediate ingestion. SPOG.AI correlates the incoming data with CMDB assets to power
observability dashboards, risk scoring, trend analysis, and incident enrichment.

Data Collected

CategoryData CollectedDescription
CMDB & Asset InventoryHostnames / IP addresses, OS information, hardware metadata, host groups, templates assignedHost and asset details used to enrich the CMDB.
Monitoring MetricsCPU, memory, and disk metrics; network throughput; agent status; application and service metricsPerformance and health metrics for monitored hosts.
Alerts & Trigger DataActive triggers, trigger severity, event history, problem states, recovery notificationsAlert and problem records from Zabbix.
Availability & SLAUptime / downtime, SLA reports, outage historyAvailability and service level history.
Behavioral & Trend AnalysisRepeated alerts, anomaly detection patterns, resource utilization baselinesTrend and behavior insights that SPOG.AI builds from the collected data.

Prerequisites

Before configuring the integration, ensure the following prerequisites are met:

  • Zabbix Server v5.0 or later (v6.x recommended), with the API enabled and reachable.
  • A dedicated API user in Zabbix with read permissions, assigned to the required host groups.
  • Outbound network access from SPOG.AI to http(s)://<zabbix-server>/api_jsonrpc.php (port 80/443 or your custom Zabbix port).
  • Integration, CMDB, and Observability permissions in SPOG.AI.
  • Optional, for real-time alerts: a webhook or media type configured in Zabbix, using SNMP, email, or script-based forwarding.

Configuration

1. Create an API user in Zabbix

  • Log in to the Zabbix Web UI.
  • Navigate to Administration → Users.
  • Create an API user (recommended) with the following settings:

Username: spogai_api
Role: API Read-Only or a custom role
Permissions: read hosts, items, triggers, and events

  • Set a secure password.
  • Confirm the API endpoint: http(s)://<zabbix-server>/api_jsonrpc.php

Note: User roles are available from Zabbix 5.2. On earlier versions, use a standard user type instead. In both cases, read access to hosts, items, triggers, and events is granted through read permissions on the required host groups, assigned to the user through a user group.

2. Configure Zabbix in SPOG.AI

Log in to SPOG.AI.

  • Go to Settings → Integrations → Add Integration.
  • Select Zabbix.
  • Provide the following details:
FieldDescription
API URLThe Zabbix API endpoint.
UsernameThe API user created in step 1.
PasswordThe password of the API user.
Sync IntervalDefault: 10–30 minutes.
  • Click Save & Sync. SPOG.AI begins ingesting hosts, host groups, templates, triggers, alerts (problems), and SLA/availability data.

3. Validate the integration

  • Validate API login using curl or Postman.
  • In SPOG.AI, check the integration status, the last sync timestamp, and a sample of ingested hosts and alerts.
  • Trigger a test alert in Zabbix by temporarily creating a trigger with a guaranteed firing condition, and confirm the alert appears in SPOG.AI dashboards.
  • Validate the event lifecycle (Firing → Resolved).
  • Check the SPOG.AI logs for API responses and errors (401, 403, or timeouts).
  • If webhooks are configured, validate webhook-based alerts.
  • Ensure host groups and permissions align with the coverage you want.
Frequently Asked Questions

Grafana Alerting Integration with SPOG.AI

Overview

SPOG.AI integrates with Grafana Alerting to centralize incident visibility, receive alert notifications, and enrich alert workflows across your monitoring ecosystem. Once configured, SPOG.AI automatically ingests alert events generated by Grafana for unified incident response and correlation.

Key Features

CapabilityDescription
Alert Notification IngestionReceive real-time alert events from Grafana.
Alert CorrelationMap alerts to services & CMDB assets.
Incident Auto-CreationCreate incidents in SPOG based on Grafana alert triggers.
EnrichmentAdd metadata such as labels, tags, severity, and rule details.
Webhook-Based PushGrafana sends alert notifications directly to the SPOG Webhook endpoint whenever an alert rule is triggered, resolved, or updated.
No Polling RequiredPush-based delivery in real time, with no polling or API-based pull required.

How the Integration Works

SPOG.AI connects to Grafana by using a Webhook-based push integration. Grafana sends alert notifications directly to the SPOG Webhook endpoint whenever an alert rule is triggered, resolved, or updated.

The integration supports alert notification ingestion, alert correlation, incident auto-creation, and enrichment, as described under Key Features.

Data Collected

Once integrated, SPOG.AI can capture:

CategoryData CollectedDescription
Alert MetadataRule Name, Alert State (firing, resolved, no data), Severity, Labels & Tags, Evaluation TimeCore details of each alert event sent by Grafana.
Payload & ContextTrigger conditions, Thresholds, Datasource details, Dashboard or panel metadataContext describing why and where the alert was raised.
Automation CapabilitiesAuto-creation of incidents; mapping alerts to services in CMDB; alert correlation with logs, metrics, and other eventsActions SPOG.AI can take on the captured alerts.
Sync BehaviorPush-based — alerts are sent in real time; no polling or API-based pull requiredHow alert data reaches SPOG.AI.

Prerequisites

Before configuring the integration, ensure the following prerequisites are met:

Access Requirements

  • Organization Admin or Tenant Admin access in SPOG.AI.
  • Admin access to the Grafana Alerting Console.

Platform Requirements

  • Grafana 8+ with the Unified Alerting framework.
  • Outbound internet access from Grafana to SPOG Webhook endpoint.
  • TLS 1.2 or higher enabled on all outgoing integrations.

Configuration

  1. Generate Connection Details

Navigate to: Settings → Integrations → Add Integration.

  • Select Grafana Integration.
  • Click Configure.
  • A Webhook Endpoint URL will be generated.
  • Copy and securely save this Webhook endpoint — it will be required in Grafana.

The Webhook endpoint format is similar to:

https://<spog-appliance>/api/v1/webhook/grafana/<unique-token>

2. Configure Grafana in SPOG

  • Go to Alerts & IRM → Alerting → Contact points.
  • Click + Add contact point.
  • Enter a meaningful contact point name (e.g., SPOG Webhook).
  • From Integration, select Webhook.
  • In the URL field, paste the Webhook URL generated from SPOG.
  • Click Test to verify connectivity.
  • Click Save contact point.

3. Attach Contact Point to Alert Rules

  • Navigate to Alerting → Alert rules.
  • Edit an existing alert rule or create a new one.
  • Scroll to Configure labels and notifications.
  • Under Notifications, click Select contact point.
  • Choose the Webhook contact point created earlier.
  • Click Save rule and exit.

4. Security & Access Control

  • Ensure the Webhook URL is stored securely, as it contains a unique integration token.
  • Only Grafana Alerting services should have permission to use the Webhook.
  • Follow least-privilege access within Grafana.
  • Rotate alerting secrets periodically (recommended every 90 days).
  • If Grafana is self-hosted, ensure no unauthorized outbound integrations are allowed.

5. Network & Connectivity

Required Connectivity

  • Grafana must be able to access the SPOG Webhook URL over HTTPS (port 443).
  • If a corporate firewall or proxy is present, whitelist:
  • 1. The SPOG Webhook endpoint domain/IP
  • 2. Grafana server outbound IPs for monitoring

TLS Requirements

  • TLS 1.2+ must be enabled on Grafana and SPOG.
  • SSL inspection should not modify or block Webhook requests.

Proxy Note

If Grafana uses a proxy, ensure POST JSON payloads are allowed.

6. Validation & Testing

From Grafana

  • Use the Test button in the contact point.
  • A successful test indicates:
  • 1. Network routes are functional
  • 2. Webhook endpoint is accessible
  • 3. Grafana is able to deliver alert payloads to SPOG

In SPOG.AI

  • Navigate to Events / Incoming Alerts.
  • Confirm receipt of:
  • 1. Test notification
  • 2. Active alert events
  • 3. Resolved alert events

Uninstalling the Integration

From SPOG.AI

  • Go to Settings → Integrations.
  • Locate Grafana Integration.
  • Click Delete to remove the integration and disable the Webhook.

From Grafana

  • Navigate to Alerting → Contact Points.
  • Locate the Webhook contact point.
  • Delete or disable the contact point.
Frequently Asked Questions

Prometheus Alertmanager Integration with SPOG.AI

Overview

SPOG.AI integrates with Prometheus Alertmanager to enable centralized alert ingestion and monitoring under a specific tenant. The integration connects SPOG.AI with Prometheus via a webhook endpoint. Once configured, SPOG.AI receives alerts from Prometheus in real time, enriching incident visibility and supporting tenant-level monitoring.

Key Features

CapabilityDescription
Real-Time Alert IngestionReceives alerts from Prometheus Alertmanager in real time, as they fire.
Webhook-Based ConnectivityConnects SPOG.AI with Prometheus through a webhook endpoint generated by SPOG.AI.
Tenant-Level MonitoringIngests alerts into the tenant’s dashboard for centralized monitoring under a specific tenant.
Asset CorrelationCorrelates incoming alerts with internal assets.
Incident & Notification WorkflowsCan generate incidents, dashboards, or notifications from ingested alerts.
Grouping & Routing SupportUses Alertmanager’s grouping, routing, and inhibition logic so SPOG.AI receives a coherent stream of alerts.
Resolution TrackingCaptures resolution events when alerts move from firing to resolved.
Secure Webhook TrafficSupports TLS and Basic Auth on webhook HTTP traffic, with options for custom authorization headers.

How the Integration Works

SPOG.AI acts as a webhook receiver for Prometheus Alertmanager. When Alertmanager fires alerts, it sends HTTP POSTs to the configured SPOG webhook endpoint. SPOG.AI ingests those alerts in real time into the tenant’s dashboard, correlates them with internal assets, and can generate incidents, dashboards, or notifications. Alertmanager’s grouping, routing, and inhibition logic ensures SPOG receives a coherent stream of alerts.

Data Collected

SPOG.AI will ingest the following from Prometheus alerts:

CategoryData CollectedDescription
Alert Fieldslabels, annotations, status (firing / resolved), startsAt, endsAt, generatorURL, fingerprintCore attributes of each alert sent by Alertmanager.
ReceiverReceiver name (the SPOG receiver)Name of the Alertmanager receiver that delivered the alert.
Grouping LabelsCommon labels / groupLabels as defined in routingLabels determined by your Alertmanager routing configuration.
MetadataWhere the alert came from, grouping, timestampsSource and context information for each alert.
Resolution EventsAlerts that go from firing → resolvedStatus changes showing when an alert has been resolved.
Grouped AlertsGrouped alerts as per your routing configAlerts arrive grouped according to your Alertmanager routing.
Real-Time IngestionAlerts pushed as they fireAlerts are pushed to SPOG.AI as they fire.

Prerequisites

Before configuring the integration, ensure the following prerequisites are met:

  • You must have Organization or Tenant Admin privileges in SPOG.AI.
  • You must be able to modify the Prometheus alertmanager.yml configuration and restart Alertmanager.
  • Your SPOG webhook endpoint must be publicly reachable (or network reachable) by Alertmanager.
  • If TLS or authentication is required on the webhook endpoint, you’ll need certificate and credential support.
  • Alertmanager version should support webhook receivers, which is part of standard Alertmanager.
  • For security, Alertmanager supports TLS and Basic Auth on webhook HTTP traffic.

Configuration

1. Generate Connection Details

  • Log in to your SPOG.AI instance.
  • Navigate to Settings → Integrations → Add Integration.
  • Choose Prometheus / Alertmanager Integration and click Configure.
  • SPOG will generate a Webhook Endpoint URL (e.g.https://spog.example.com/webhook/prometheus/…).
  • Copy and securely store this WEBHOOK_URL.
  • Copy and securely store this WEBHOOK_URL.

2. Configure Prometheus in SPOG

  • Edit your alertmanager.yml (or whichever config file Alertmanager uses).
  • Add a receiver for SPOG:
receivers:
- name: 'SPOG'
webhook_configs:
- url: '<WEBHOOK_URL>'
  • Reference that receiver in your route block (or child route) so alerts are sent to it:
    route:
    group_by: ['alertname']
    group_wait: 30s
    group_interval: 5m
    repeat_interval: 1h
    receiver: 'SPOG'
    • (Optionally) define inhibition rules or default/global settings as needed.
    • Save the configuration and restart Alertmanager to apply.

    A minimal end-to-end example:

    route:
    group_by: ['alertname']
    group_wait: 30s
    group_interval: 5m
    repeat_interval: 1h
    receiver: 'SPOG'
    receivers:
    - name: 'SPOG'
    webhook_configs:
    - url: '<WEBHOOK_URL>'
    • 6. Validate the alertmanager.yml using amtool check-config or equivalent to catch syntax or routing errors.

    3. Security & Access Control

    Security & Access Control

    • Use HTTPS / TLS for webhook traffic to encrypt the alert payloads in transit.
    • Alertmanager supports TLS + Basic Auth on webhook HTTP traffic (though that is experimental).
    • Protect the webhook URL as a secret; do not expose it publicly beyond required access.
    • Limit write access to alertmanager.yml to trusted operators only.
    • If using Basic Auth or custom headers in webhook_configs.http_config.authorization, you can embed credentials (Base64, Bearer) for authentication.
    • In webhooks, adopt security best practices such as signing the payload (HMAC), timestamping, and rejecting replayed requests.
    • Log all webhook requests in SPOG, including headers, status codes, timestamps, IP source.
    • Use rate limits or firewall rules to accept only from known Alertmanager IP or network segments.

    4. Network & Connectivity

    • Alertmanager must be able to send an HTTP(S) POST to the SPOG webhook endpoint (port 443 or as configured).
    • If your SPOG webhook is behind a firewall or NAT, ensure the public DNS / IP is reachable from the Prometheus server(s).
    • Use TLS (TLS 1.2 or 1.3) for webhooks.
    • If using Basic Auth or headers, ensure proxies or load balancers do not strip those headers.
    • Configure timeouts (on webhook side) to respond promptly to avoid Alertmanager marking webhook failures.
    • If Alertmanager clusters or HA are used, ensure all nodes can reach the SPOG endpoint.
    • Monitor for network latency or issues in delivery — if webhooks fail repeatedly, SPOG should alert or log errors.

    5. Validation & Testing

    • Trigger a test alert in Prometheus (for example using a --test or alert rule that always fires).
    • Check that the alert appears in SPOG.AI’s dashboard / integration view.
    • Confirm SPOG logs capture the webhook POST and payload.
    • Inspect the headers and payload JSON to make sure important labels / annotations are forwarded.
    • Validate error handling:
    • If the webhook URL is unreachable, Alertmanager will retry per its retry logic.
    • If SPOG returns a non-2xx HTTP response, Alertmanager treats it as failure.
    • Confirm grouped alerts adhere to your grouping / routing logic.
    • Use amtool check-config on your Alertmanager config to catch syntax or routing misconfigurations.
    • Monitor for edge cases (e.g. alerts with resolve status, duplicate alerts) and how SPOG handles them.

    Uninstalling the Integration

    1. In SPOG.AI, go to Settings → Integrations, find the Prometheus integration, and Remove / Uninstall it.

    2. In Prometheus / Alertmanager:

    • Remove the SPOG receiver from alertmanager.yml.
    • Remove references to it in your route configuration.
    • Restart Alertmanager.

    3. Optionally, clean up firewall or DNS rules associated with the webhook endpoint.

    4. Confirm no further webhook hits from Alertmanager to SPOG and that SPOG no longer shows new alerts from Prometheus.

    Frequently Asked Questions