View Full Version : monitoring mem + cpu of single process?
Dear all,
is it possible to monitor the Ram- and CPU Usage of an single process?
THX Globes
The functionality is not supported natively by ZABBIX agents running on UNIX yet.
However, if you're interested in this information on W32 platforms, you may use ZABBIX W32 agent, which provides this information. See description of proc_info[] on http://www.zabbix.com/manual_config_items.php.
is it possible to monitor the Ram- and CPU Usage of an single process?
The functionality is not supported natively by ZABBIX agents running on UNIX yet.Hi,
but you can use zabbix_agent user parameters to monitor specific CPU usage.
(This is not accurate - but you can try it :) and monitor Mem usage the same way):UserParameter=httpd[cpu],ps auxw|grep httpd|grep -v grep| awk '{s+=$3} END {print s}'Place this string into zabbix_agentd.conf file and restart zabbix_agentd.
Then on zabbix server use httpd[cpu] parameter to get current CPU usage of all httpd processes.
Hi,
but you can use zabbix_agent user parameters to monitor specific CPU usage.
(This is not accurate - but you can try it :) and monitor Mem usage the same way):UserParameter=httpd[cpu],ps auxw|grep httpd|grep -v grep| awk '{s+=$3} END {print s}'Place this string into zabbix_agentd.conf file and restart zabbix_agentd.
Then on zabbix server use httpd[cpu] parameter to get current CPU usage of all httpd processes.
Works fine, THX :D
is there a way to hand over a parameter to the script block, so that I can specify the process I'd like to mintor in the zabbix configuration?
like replacing "mysql" with some variable?