Friday, October 15, 2021

Reactivate Zabbix agent in TrueNAS after update

When you have installed the Zabbix agent as mentioned in my previous post, then you will notice that Zabbix gets deactivated wqhen you install TrueNAS updates.

To get the agent running again, you only need to reactivate it in rc.conf

  1. Enable daemon
    echo 'zabbix_agentd_enable="YES"' >> /etc/rc.conf
  2. Start daemon:
    /etc/rc.d/zabbix_agentd start
  3. Make config files persistent and survive reboots:
    cp /etc/rc.conf /conf/base/etc/ 
    cp /etc/rc.d/zabbix_agentd /conf/base/etc/rc.d/
    mkdir /conf/base/etc/zabbix_agentd
    cp /etc/zabbix_agentd.* /conf/base/etc/

Of course it's a good moment to install the latest zabbix agent too.

For this take the latest version matching your server version and copy the /bin and /sbin to /usr/local and restart the agent.

If someone has an idea, on how to make the "Enable daemon" step survive a minor TrueNAS upgrade, I would be glad for some hints ;)

No comments:

Post a Comment