Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: a492652 on 31 December 2024, 10:53:24

Title: Zabbix Agent - Runit script/service
Post by: a492652 on 31 December 2024, 10:53:24
Hi,

Fairly new Artix user, coming from Arch.
I am running run it and am trying to get the zabbix agent2 working as a service, but I am having trouble doing so.

I installed zabbix-agent2 and created a user 'zabbix'.
I created /etc/runit/sv/zabbix_agent2 and /etc/runit/zabbix/run

Code: [Select]
#!/bin/sh
exec 2>&1; set -e

export USER="zabbix"
export GROUP="zabbix"

exec chpst -u "$USER:$GROUP" /usr/bin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf

After enabling the service, it stays 'down'.

I am lacking some kind of logging and don't really know how to troubleshoot.

Thanks for any help!