Integrate with Zabbix
Support level: Community
What is Zabbix?
Zabbix is an enterprise-class open source observability solution.
Preparation
The following placeholders are used in this guide:
zabbix.companyis the FQDN of the Zabbix installation.authentik.companyis the FQDN of the authentik installation.
This guide assumes that the Zabbix frontend is available at https://zabbix.company/zabbix. If your Zabbix frontend uses a different path, adjust every Zabbix URL in this guide to match your public frontend URL.
Zabbix requires php-openssl for SAML authentication. You also need access to the Zabbix frontend conf/certs directory to add the authentik signing certificate.
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
authentik configuration
To support the integration of Zabbix with authentik, you need to create an application/provider pair in authentik.
If you want Zabbix to create users during their first SAML login (JIT provisioning), you also need to create SAML property mappings for users' given names and surnames.
Create JIT property mappings in authentik (optional)
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Customization > Property Mappings, click Create, select SAML Provider Property Mappings, and click Next.
-
Configure the first mapping for the user's given name:
- Name:
givenname - SAML Attribute Name:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname - Friendly Name: Leave blank
- Expression:
return request.user.name.split(" ", 1)[0] - Name:
-
Click Finish to save the mapping.
-
Repeat the process to create a mapping for the user's surname:
- Name:
surname - SAML Attribute Name:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname - Friendly Name: Leave blank
- Expression:
return request.user.name.rsplit(" ", 1)[-1] - Name:
-
Click Finish.
Create an application and provider
authentik 2026.5 introduces changes to how the SAML provider behaves. Specifically, the provider now automatically sets the Issuer value to: https://authentik.company/application/saml/<application_slug>/metadata/
Older versions of authentik set this value to authentik by default. If you're running an older version, please set Issuer to https://authentik.company/application/saml/<application_slug>/metadata/, where <application_slug> is the slug that you selected for the application.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Note the Slug value because you will use it when configuring Zabbix.
- Choose a Provider type: select SAML Provider as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- ACS URL:
https://zabbix.company/zabbix/index_sso.php?acs - Audience:
https://zabbix.company/zabbix - SLS URL:
https://zabbix.company/zabbix/index_sso.php?sls - SLS Binding:
Redirect - Logout Method:
Front-channel (Iframe) - Under Advanced protocol settings:
- Select an available Signing Certificate.
- If you want to use Zabbix JIT provisioning, under Property mappings, add the
givennameandsurnamemappings that you created in the previous section.
- ACS URL:
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
-
Click Submit to save the new application and provider.
Download the signing certificate
- Navigate to Applications > Providers and open the provider that you created.
- Under Related objects > Download signing certificate, click Download.
- Save the downloaded certificate as
idp.crtin the Zabbix frontendconf/certsdirectory, for example/usr/share/zabbix/conf/certs/idp.crt.
Zabbix configuration
- Log in to Zabbix as an administrator.
- Navigate to Users > Authentication, then select the SAML settings tab.
- Enable SAML authentication.
- Configure the following fields:
- IdP entity ID:
https://authentik.company/application/saml/<application_slug>/metadata/ - SSO service URL:
https://authentik.company/application/saml/<application_slug>/ - SLO service URL:
https://authentik.company/application/saml/<application_slug>/ - Username attribute:
http://schemas.goauthentik.io/2021/02/saml/username - SP entity ID:
https://zabbix.company/zabbix - SP name ID format:
urn:oasis:names:tc:SAML:2.0:nameid-format:transient
- IdP entity ID:
- Click Update to save the configuration.
Enable JIT provisioning (optional)
To provision Zabbix users during their first SAML login, create the required Zabbix user groups and user roles before enabling JIT provisioning. Create one or more Zabbix user groups and user roles whose combinations match the authentik groups that should have access to Zabbix.
If you do not want to use the Zabbix disabled group for deprovisioned users, create a dedicated disabled Zabbix user group before continuing.
- Navigate to Users > Authentication, then select the Authentication tab.
- Set Deprovisioned users group to
disabled, or to the disabled Zabbix user group that you created for deprovisioned users. - Select the SAML settings tab.
- Enable Enable JIT provisioning and Configure JIT provisioning.
- Configure the following JIT fields:
- Group name attribute:
http://schemas.xmlsoap.org/claims/Group - User name attribute:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname - User last name attribute:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname
- Group name attribute:
- Under User group mapping, click Add and configure a mapping:
- SAML group pattern: enter the name of the authentik group to map.
- User groups: select the Zabbix user groups that members of the authentik group should receive.
- User role: select the Zabbix user role that members of the authentik group should receive.
- Click Add to save the mapping, then repeat the previous step for each authentik group that you want to map to Zabbix user groups and roles.
- Under Media type mapping, click Add and configure the email mapping:
- Name:
Email - Media type: select
EmailorEmail (HTML). - Attribute:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
- Name:
- Click Add to save the media type mapping.
- Click Update to save the SAML settings.
Sign Zabbix authentication requests
To have Zabbix sign SAML AuthN requests, generate a certificate and private key for Zabbix:
openssl req -new -x509 -days 3650 -nodes \
-subj "/CN=zabbix.company" \
-keyout sp.key -out sp.crt
Copy sp.key and sp.crt to the Zabbix frontend conf/certs directory, then enable Sign > AuthN requests in the Zabbix SAML settings.
To make authentik require this signature, upload sp.crt in authentik under System > Certificates, then edit the Zabbix SAML provider and select that certificate as the Verification Certificate.
Configure reverse proxy deployments
If Zabbix is behind an HTTPS-terminating reverse proxy and SAML requests are generated with an internal HTTP URL, configure the Zabbix frontend with the public base URL:
$SSO['SETTINGS'] = [
'strict' => false,
'baseurl' => 'https://zabbix.company/zabbix/',
'use_proxy_headers' => true
];
Configuration verification
To confirm that authentik is properly configured with Zabbix, log out of Zabbix and click Sign in with Single Sign-On (SAML). You should be redirected to authentik to log in, then redirected back to Zabbix.