zabbix_export: version: '6.4' template_groups: - uuid: 57b7ae836ca64446ba2c296389c009b7 name: Templates/Modules templates: - uuid: 63866eba9a5e4dfe802dab3ace8161e0 template: 'Linux Services by Zabbix Agent' name: 'Linux Services by Zabbix Agent' groups: - name: Templates/Modules discovery_rules: - uuid: 7010684eb27e4a7286c3ab73e8d0e4d3 name: 'Service Discovery' key: service.discovery delay: 1h filter: conditions: - macro: '{#SERVICE.NAME}' value: '{$SERVICE.NAME.MATCHES}' formulaid: A item_prototypes: - uuid: 983b8e6d41244c1a80826f99705091cc name: 'Service Activated Time : {#SERVICE.NAME}' key: 'service.activatedtime["{#SERVICE.NAME}"]' units: uptime tags: - tag: Application value: Services trigger_prototypes: - uuid: b52bf26c37fb4cd1a512a3e321fd7957 expression: 'last(/Linux Services by Zabbix Agent/service.activatedtime["{#SERVICE.NAME}"])<600' name: 'Service Restarted : {#SERVICE.NAME}' priority: WARNING - uuid: ee610d3025a84e3abd46e61b067e87dd name: 'Service Active : {#SERVICE.NAME}' key: 'service.isactive["{#SERVICE.NAME}"]' valuemap: name: 'Linux service state' tags: - tag: Application value: Services trigger_prototypes: - uuid: 16a130aadfc84cc1820204af40c2b585 expression: 'last(/Linux Services by Zabbix Agent/service.isactive["{#SERVICE.NAME}"])=0' name: 'Service Not Active : {#SERVICE.NAME}' priority: DISASTER macros: - macro: '{$SERVICE.NAME.MATCHES}' value: ssh|zabbix-agent2 description: 'This macro is used in Service discovery. Can be overridden on the host or linked template level.' valuemaps: - uuid: 224ce38d47be4c9a8998522fe7380e8a name: 'Linux service state' mappings: - value: '0' newvalue: Stopped - value: '1' newvalue: Running