5.02021-11-21T21:59:12ZTemplates/ModulesModule Linux systemd by Zabbix agent 2Module Linux systemd by Zabbix agent 2## Overview
This is template for native monitoring systemd services via Zabbix Agent 2. Zabbix agent 2 is a new generation of Zabbix agent and may be used in place of Zabbix agent. Template is for Zabbix 4.4+
New version for zabbix 5.0.6 and 5.2.2 has ben uploaded + fixed regular expression in preprocessing.
## Author
Tomas Hermanek
Templates/ModulesSystemdSystemd services discoverysystemd.unit.discovery1hAND{#UNIT.LOADSTATE}loadedA{#UNIT.NAME}systemd-timesyncd.service|systemd-fsck-root.service|rsync.serviceNOT_MATCHES_REGEXB{#UNIT.UNITFILESTATE}enabled|generatedCState of service: {#UNIT.NAME}systemd.unit.info["{#UNIT.NAME}"]0CHARDescription: {#UNIT.DESCRIPTION}
Path: {#UNIT.PATH}SystemdService stateREGEX^active$
1CUSTOM_VALUE0{last()}<>1Service {#UNIT.NAME} is not running!Service current state: {ITEM.LASTVALUE}WARNINGDescription: {#UNIT.DESCRIPTION}
Path: {#UNIT.PATH}Service state0Down1Up