Template App Zabbix processes memory usage
Overview
With help of Zabbix agent will discover and start to monitor all running Zabbix processes including server, proxy and agent processes.
Requirements
Requires the following utilities to be available on the agent host:
- pgrep
- egrep
- sed
- jq
Also requires that remote commands be enabled in agent configuration.
How it works
Watch the data in the "Latest data" section or individually each process type in the graph created from graph prototype. Memory usage is monitored by the process type. It doesn't matter how many poller processes you have running, the memory used by all of them will be monitored.
First, we discover all running process types, e. g.
- zabbix_agentd: active checks
- zabbix_agentd: collector
- ...
- zabbix_server: alerter
- zabbix_server: alert manager
- ...
Then, for each we create 2 items to monitor VmRSS and VmSwap usage. On top of that we create calculated item that sums those up. For each calculated item there will be a graph created.
If the following command works on your agent host the template should work:
pgrep -a 'zabbix_(server|agentd|agent2|proxy)' | egrep -o --color=none 'zabbix_(server|agentd|agent2|proxy): .*' | sed 's/ [#\[].*//' | sort -u | jq -Rs '{data: split("\n")[:-1]| map(split(": ") | {"{#COMPONENT}": .[0], "{#PROCESS}": .[1]})}'
Listing Details
1 version, '2020-09-28 16:44' modified