Open source
Zabbix · Module

zabbix-reportpack

Turns what Zabbix knows into a report you can hand over.

A frontend module for Zabbix 7.0 LTS. It measures availability per host against an SLA target and lists the most frequent problems; it produces a branded PDF, an Excel workbook or CSV and e-mails them every day, week or month.

TypeZabbix · Module
CompatibilityZabbix 7.0
LanguagePHP
LicenceAGPL-3.0
Latest releasev0.5.0
Tested onZabbix 7.0.32
Extra componentsNone; cron for e-mail
Screenshots 1 / 4

Report pagePick the period, host group and SLA target; the report opens on screen

Why

Zabbix shows the state of a network very well, but a monthly availability report for a manager or a customer usually means screenshots and spreadsheets put together by hand. The built-in SLA report needs services defined first; scheduled reports give a PDF picture of a dashboard.

Report Pack works on host groups and their triggers with no extra setup. It is for managed service providers that send each customer a monthly report under their own brand, IT departments that report service levels to management, and teams that need regular evidence for NIS2, ISO 27001 or internal audits.

Features

Availability by host

Availability percentage per host, whether the SLA target was met, downtime, number of outages, longest outage, number of problems and time in maintenance; summary tiles and a daily availability chart.

Most frequent problems

Host, problem name, severity, how many times it started, total duration and when it last started.

Periods and filters

This month, last month, last 7 days, last 30 days or two dates of your choice. Host group (subgroups included), minimum severity, SLA target; maintenance excluded or counted.

PDF

A4 and multi-page; table headers repeat on every page and your branding is on every page. The font is embedded, so names with accented Latin, Cyrillic or Greek letters print correctly.

Excel and CSV

The workbook has real numbers and durations that add up beyond 24 hours, a frozen header, filters switched on and a summary sheet with all report settings. CSV comes with a UTF-8 byte order mark so Excel opens it correctly.

Branding and schedules

Company name, accent colour, footer and logo apply to every PDF. Scheduled reports are e-mailed by a sender script that runs from cron.

How it works

Nothing is sampled or estimated; the figures are calculated from the trigger events Zabbix stores.

  1. Source

    The problem and recovery events Zabbix stores are read. Only enabled triggers of the minimum severity or higher count.

  2. Problem time

    Each problem is clipped to the period: one already open at the start counts from the start, one still open at the end counts until the end.

  3. Downtime

    A host's downtime is the time in which at least one of its triggers was in problem state. Overlapping problems are merged, so time with two problems at once counts once.

  4. Maintenance

    When maintenance is excluded, its time is removed from both the downtime and the period; problems that started inside maintenance are not counted.

What is in the PDF

PartWhat it shows
HeaderAccent bar, logo, company name, report title, who it was prepared for, exact period, host group, minimum severity, time of creation
Summary tilesAverage availability, hosts meeting the SLA, total downtime, allowed downtime per host
Daily chartAverage availability per day; the SLA target as a dashed line, days below the target in red
TableOne row per host or problem; long names wrap and the header repeats on further pages
NoteHow the figures were calculated and whether maintenance was excluded
FooterYour footer text and the page number

Requirements

What is needed
Zabbix7.0 LTS
RightsSuper admin to enable the module and to change branding and schedules; any user can create reports
FontDejaVu Sans, which Zabbix already uses for its graphs
Scheduled reportsPHP 8.0 or newer on the command line (mbstring), an API token of a super-admin user and a mail server

Permissions and security

  • Reports use the Zabbix API with the rights of the signed-in user, so everyone sees only the hosts they may read.
  • Only super admins can change branding and schedules.
  • Scheduled reports run with the rights of the token's user.
  • The sender script refuses to run from the web server; opening its URL returns 404.
  • The settings file that holds the token and possibly a mail password must be readable only by the cron user.

Installation

Copy the module
git clone https://github.com/CodeByPinar/zabbix-reportpack.git
cp -r zabbix-reportpack/ReportPack /usr/share/zabbix/modules/
chmod -R u=rwX,go=rX /usr/share/zabbix/modules/ReportPack

Then, in Zabbix, open Administration › General › Modules, press "Scan directory" and enable the module. Reports open under Reports › Report Pack. To upgrade, replace the folder with the new one; branding and schedules live in the database.

Known limitations

  • Reports and spreadsheets are in English.
  • There is one brand for all reports; per-customer logos are not supported yet.
  • Maintenance applies to whole hosts; tag conditions inside a maintenance are ignored.
  • A host without triggers of the minimum severity always shows 100%.
  • Tested on a 36-host lab network; performance on installations with 1,000 or more hosts has not been measured yet.
  • Zabbix 7.2 and 7.4 have not been tested.
Source code, releases and full documentationgithub.com/CodeByPinar/zabbix-reportpack
Open on GitHub
open to new projectsLet's work together