Skip to main content
Topic: Zabbix Agent - Runit script/service (Read 174 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Zabbix Agent - Runit script/service

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!

 
Artix forum uses a single cookie to remember youOK