Mon blog-notes à moi que j'ai

Blog personnel d'un sysadmin, tendance hacker

Zabbix foreground feature ZBXNEXT-611 backported to 2.4.x

Using Zabbix in container is quite easy. You just need a way to make it run in foreground. There’s a feature request for that, and patches are available.

Theses patches are great but somewhat incomplete: they mainly lack standard & error outputs redirection. Basically, it means you still have to use LogFile configuration option.

With Zabbix 3.0 comes a new feature: foreground option with standard output redirection on console.
Now you have a new option LogType you can set to console so that Zabbix daemon could log on console. Great !

But, this feature is only available from Zabbix 3.0 which has been recently released.
Since I won’t be able to upgrade quickly, I needed a suitable solution to run Zabbix 2.4.7 in container while still getting logs on console.
If you’re in this situation, you have 2 solutions:

  • Wait for the migration
  • Backport the feature from 3.0 to 2.4.x.

I’ve choosen the backport.

Therefore, I’m proud to announce that you can now use foreground feature, including standard redirection on console with Zabbix 2.4.x

The patch has been running for days at work, without any issue.
It’s now publically available on github.

If you use Debian, you might consider using my Zabbix github repository to build your own packages. ZBXNEXT-611 patch has been added in debian/patches serie.

Enjoy :)