1
0
Fork 0
forked from infra/ansible

Zabbix: Update IPA template to include healthcheck items/triggers

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
Greg Sutcliffe 2026-05-05 15:01:16 +01:00
commit 15a6768ad7
Signed by: gwmngilfen
SSH key fingerprint: SHA256:dNHcz65ApR68w2TkCIAXDBdt4oNL62Fyx48U7dXWuk0

View file

@ -31,6 +31,382 @@ zabbix_export:
name: 'IPA Backups out of date'
opdata: 'Last IPA backup: {ITEM.LASTVALUE}'
priority: HIGH
- uuid: a96ec3f5464447ea81acbd970c2c4317
name: 'IPA Healthcheck - certmonger status'
type: DEPENDENT
key: ipa.heathcheck.certmonger
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="certmonger"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: 7bd9b1b5c2b949feb7f02f34b3469534
expression: 'last(/IPA Monitoring/ipa.heathcheck.certmonger)=0'
name: 'IPA Healthcheck - Certmonger is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: dc2c79b597244634a0af1b69929bae04
name: 'IPA Healthcheck - chronyd status'
type: DEPENDENT
key: ipa.heathcheck.chronyd
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="chronyd"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: ecfe65f4a9d04728a959255918262ae8
expression: 'last(/IPA Monitoring/ipa.heathcheck.chronyd)=0'
name: 'IPA Healthcheck - Chronyd is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: debd42eea62d43d98ba6d40cf250ef84
name: 'IPA Healthcheck - criticals'
type: DEPENDENT
key: ipa.heathcheck.critical
delay: '0'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_healthcheck{result="CRITICAL"}'
- value
- ''
error_handler: CUSTOM_VALUE
error_handler_params: '0'
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
- uuid: d1945ad2ed56480c946feb7b06650567
name: 'IPA Healthcheck - dirsrv status'
type: DEPENDENT
key: ipa.heathcheck.dirsrv
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="dirsrv"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: b7efb68e7ee1404b966144818f432fbf
expression: 'last(/IPA Monitoring/ipa.heathcheck.dirsrv)=0'
name: 'IPA Healthcheck - Dirsrv is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: 7aba7dae57994c718eae5a91810e5de3
name: 'IPA Healthcheck - errors'
type: DEPENDENT
key: ipa.heathcheck.errors
delay: '0'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_healthcheck{result="ERROR"}'
- value
- ''
error_handler: CUSTOM_VALUE
error_handler_params: '0'
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: f48be409cff9497d85090c0d01a4b3c7
expression: 'last(/IPA Monitoring/ipa.heathcheck.errors)>0'
name: 'IPA Healthcheck - Errors reported'
priority: HIGH
- uuid: 5072ed9c95fc4dd8ab498b22c03e2d68
name: 'IPA Healthcheck - gssproxy status'
type: DEPENDENT
key: ipa.heathcheck.gssproxy
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="gssproxy"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: beeea8f684a241c4972501f9a58515f7
expression: 'last(/IPA Monitoring/ipa.heathcheck.gssproxy)=0'
name: 'IPA Healthcheck - GSSproxy is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: 38432d1a65a448e3aa0c14dbea5502a6
name: 'IPA Healthcheck - httpd status'
type: DEPENDENT
key: ipa.heathcheck.httpd
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="httpd"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: a204143b9ac94b7c9d3a71a54b8149c3
expression: 'last(/IPA Monitoring/ipa.heathcheck.httpd)=0'
name: 'IPA Healthcheck - HTTPd is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: 4211bbb549354421a3f223b5bdbb0ddc
name: 'IPA Healthcheck - ipa_otpd status'
type: DEPENDENT
key: ipa.heathcheck.ipa_otpd
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="ipa_otpd"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: f7e5b0ac99da49d6bbd6eaf5b522e20c
expression: 'last(/IPA Monitoring/ipa.heathcheck.ipa_otpd)=0'
name: 'IPA Healthcheck - IPA-OTPd is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: 5ad91fe41cc64843b414e9de89505ef6
name: 'IPA Healthcheck - kadmin status'
type: DEPENDENT
key: ipa.heathcheck.kadmin
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="kadmin"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: efa252721828486697c667a003237ef2
expression: 'last(/IPA Monitoring/ipa.heathcheck.kadmin)=0'
name: 'IPA Healthcheck - KAdmin is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: d2c1f01faa7441bdb9757725728cf3f8
expression: 'last(/IPA Monitoring/ipa.heathcheck.kadmin)=0'
name: 'IPA Healthcheck - Krb5kdc is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: 713f0ae284ee49eb9335bedd14f2c986
expression: 'last(/IPA Monitoring/ipa.heathcheck.kadmin)=0'
name: 'IPA Healthcheck - PKI-Tomcat is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: 1c787c3c0acb4c51b2c2747cf4dfbf4a
name: 'IPA Healthcheck - krb5kdc status'
type: DEPENDENT
key: ipa.heathcheck.krb5kdc
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="krb5kdc"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
- uuid: bfcf381c945e45b2b1c7bdabebc9886d
name: 'IPA Healthcheck - sssd status'
type: DEPENDENT
key: ipa.heathcheck.sssd
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="sssd"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
triggers:
- uuid: df7c3371fc904515915c50e4b3d3b0ce
expression: 'last(/IPA Monitoring/ipa.heathcheck.sssd)=0'
name: 'IPA Healthcheck - SSSd is not running'
priority: AVERAGE
tags:
- tag: scope
value: availability
- uuid: 78857b815aa344bbbdbe6e36a9005657
name: 'IPA Healthcheck - pki-tomcat status'
type: DEPENDENT
key: ipa.heathcheck.tomcat
delay: '0'
valuemap:
name: 'Service status'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_service_state{service="pki_tomcatd"}'
- value
- ''
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
- uuid: 604059d7f8ca4062aec34a7fbe8f5b62
name: 'IPA Healthcheck - warnings'
type: DEPENDENT
key: ipa.heathcheck.warning
delay: '0'
preprocessing:
- type: PROMETHEUS_PATTERN
parameters:
- 'ipa_healthcheck{result="WARNING"}'
- value
- ''
error_handler: CUSTOM_VALUE
error_handler_params: '0'
master_item:
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
- uuid: a44655ad1c974ea28ef22634afa1ca01
name: 'IPA Healthcheck raw output'
type: ZABBIX_ACTIVE
key: 'vfs.file.contents[/etc/zabbix/ipa-healthcheck.log]'
delay: 5m
history: 1h
value_type: TEXT
trends: '0'
timeout: 15s
tags:
- tag: component
value: ipa
- tag: type
value: healthcheck
- uuid: 93b94a89acdb40f6a40fe5a1bfd49b49
name: 'IPA Healthcheck logfile age'
type: ZABBIX_ACTIVE
key: 'vfs.file.time[/etc/zabbix/ipa-healthcheck.log]'
delay: 5m
history: 7d
units: unixtime
description: 'Verify the ipa-healthcheck cron is still running'
tags:
- tag: component
value: ipa
- tag: type
value: fileage
triggers:
- uuid: 2429f94bc41845a09a7f7ef5277e836c
expression: 'change(/IPA Monitoring/vfs.file.time[/etc/zabbix/ipa-healthcheck.log])>600'
name: 'IPA Healthcheck logfile is too old'
priority: AVERAGE
description: 'The healthcheck cron should run every 300s'
- uuid: b6f2575965414e9b8a50e7e2a2aec586
name: 'http-ipa-internal check'
type: ZABBIX_ACTIVE
@ -51,3 +427,11 @@ zabbix_export:
tags:
- tag: application
value: ipa
valuemaps:
- uuid: 59ebe776ee264da79ea1af894847fbe3
name: 'Service status'
mappings:
- value: '1'
newvalue: Up
- value: '0'
newvalue: Down