zabbix_export: version: '6.0' date: '2021-11-21T21:55:43Z' groups: - uuid: 730ef0b168104e01bc69354413763243 name: Templates/Linux templates: - uuid: 5d145f1a24784a36a527c4cc11c1adf0 template: 'Monitor one Linux Services' name: 'Monitor one Linux Services' description: | ## Overview **This template will allow you to monitor one Linux Services using systemctl, and fire the alarm on zabbix Dashboard.** it's very simple template without using User Parameter or Scripts Just item and trigger , if you want to monitor more than one services then you should create another item. **Steps:** 1. Download the template 2. Import the template into zabbix 3. Assign the template to the host. **Template Group --> Template/Linux** **Tested on :** * Ubuntu 18 * CentOS 6 * Redhat 7 **Zabbix version 4.4.2** ## Author Osama Mustafa groups: - name: Templates/Linux items: - uuid: 9627361c45a8414ab555d273d80a7903 name: 'Check ufw' key: 'system.run["systemctl status ufw | grep -q running;echo $?"]' delay: 10s description: | 1= not found 0 = found tags: - tag: Application value: 'Services is up' triggers: - uuid: 3f90c257066143e1bcd668b648127baf expression: 'last(/Monitor one Linux Services/system.run["systemctl status ufw | grep -q running;echo $?"])=1' name: 'Firewall is not up' priority: HIGH