summaryrefslogtreecommitdiff
path: root/monit/zabbix-agentd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'monit/zabbix-agentd.conf')
-rw-r--r--monit/zabbix-agentd.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/monit/zabbix-agentd.conf b/monit/zabbix-agentd.conf
new file mode 100644
index 0000000..43d4915
--- /dev/null
+++ b/monit/zabbix-agentd.conf
@@ -0,0 +1,8 @@
+#check process zabbix-agentd with pidfile /var/run/zabbix-agent/zabbix_agentd.pid
+check process zabbix_agentd with pidfile /var/run/zabbix/zabbix_agentd.pid
+ start program = "/etc/init.d/zabbix-agent start"
+ stop program = "/etc/init.d/zabbix-agent stop"
+# if failed port 10050 for 3 times within 5 cycles then alert
+# if failed port 10050 for 10 times within 10 cycles then restart
+ if 3 restarts within 3 cycles then alert
+ if 5 restarts within 5 cycles then timeout