Python Zabbix API for Linux Process Monitoring

1.1k Views Asked by At

I have installed Zabbix 4.0 for remote monitoring of Linux server. I want to monitor different processes running on Zabbix-agent in the Zabbix-server. I want to know if it is possible to retrieve different data (CPU utilization, Memory utilization, or any other related metrics) related to processes running on Zabbix-agent using any of the Python Zabbix API.

1

There are 1 best solutions below

2
Simone Zabberoni On

You should start with the basic items described in the documentation, the ones you'll find useful are proc.num, proc.cpu.util and proc.mem.

If you need something different or more specific you'll have to create your own wrapper, for example system.run[yourScript.sh].

The API has other uses as well: please open a specific question for each argument, providing both the question details and the work you've done.