HestiaCP Per User Monitoring Template for Zabbix

Zabbix template for per-user monitoring of HestiaCP servers

Discovers Hestia users (except admin and system) and tracks CPU, memory, processes, PHP-FPM, disk, bandwidth, package quotas, and account state for each user separately.

Most of data collecting using HestiaCP CLI.

You can install if from GitHub

I’m using it for several months and it seems to work pretty good, so I decided to let everyone use it too.

It use HestiaCP cli to retrieve some data and the rest is taken from system itself.

Right now trigger limits for cpu / memory are common for all users, I still not decided what is the best way to add per user limits for cpu/memory - it looks promising to activate HestiaCP cgroups limits (it still not working with php-fpm processes, but for monitoring purposes it should be ok) and retrieve limits from HestiaCP for each user depending on it’s plan. The second way is more complicated and less convenient - try to add limits from Zabbix side, but it will be not very convenient, coz for each server it will be required manually add macroses for all available plans.

But overall, if someone will find it usefull, it will be great.

Will zabbix 7.4.13 work?

have not tested it, co using only LTS releases, but probably it should, there were no any specific features used in this template. possibly even 6.0+ may also work