summaryrefslogtreecommitdiff
path: root/data/templates/zabbix-agent/10-override.conf.j2
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-08-08 19:31:00 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-08-09 14:28:21 +0000
commitf9acf743cc27727d38dcbff6fb59534b5a1b443f (patch)
tree12656781942f5b4448ae3b97fc00c1f343ff52e9 /data/templates/zabbix-agent/10-override.conf.j2
parent0e92ee262d8ec6ee88d7331f2cbffe8b6b689437 (diff)
downloadvyos-1x-f9acf743cc27727d38dcbff6fb59534b5a1b443f.tar.gz
vyos-1x-f9acf743cc27727d38dcbff6fb59534b5a1b443f.zip
T5448: Add service zabbix-agent version 2
Add service zabbix-agent set service zabbix-agent directory '/config/zabbix/' set service zabbix-agent limits buffer-flush-interval '8' set service zabbix-agent limits buffer-size '120' set service zabbix-agent log debug-level 'warning' set service zabbix-agent log size '1' set service zabbix-agent server '192.0.2.5' set service zabbix-agent server-active 192.0.2.5 port '10051' set service zabbix-agent server-active 2001:db8::123
Diffstat (limited to 'data/templates/zabbix-agent/10-override.conf.j2')
-rw-r--r--data/templates/zabbix-agent/10-override.conf.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/data/templates/zabbix-agent/10-override.conf.j2 b/data/templates/zabbix-agent/10-override.conf.j2
new file mode 100644
index 000000000..7c296e8fd
--- /dev/null
+++ b/data/templates/zabbix-agent/10-override.conf.j2
@@ -0,0 +1,14 @@
+[Unit]
+After=
+After=vyos-router.service
+ConditionPathExists=
+ConditionPathExists=/run/zabbix/zabbix-agent2.conf
+
+[Service]
+EnvironmentFile=
+ExecStart=
+ExecStart=/usr/sbin/zabbix_agent2 --config /run/zabbix/zabbix-agent2.conf --foreground
+WorkingDirectory=
+WorkingDirectory=/run/zabbix
+Restart=always
+RestartSec=10