PDA

View Full Version : Trigger for processes that use too much CPU


pstirpe
06-10-2006, 01:54
Hello,
I am new to Zabbix. I have it installed (server and agent) for testing and am getting used to the interface. I would like to setup a trigger to monitor processes on the agent. When they use more than a threshold of CPU, I would like to run a script on the server. Can anyone point me to how to do this. I am looking at triggers, and actions. Also, I need to pass back the name of the process to the server and pass that to the script I execute. Thanks,
Paul

Villain
06-10-2006, 18:46
Try this link:

http://www.zabbix.com/manual/v1.1/config_items.php

At the bottom is a command called proc_info that might do what you're looking for. You can then create a trigger based on that item, followed by an action that will run your command as necessary.

pstirpe
27-10-2006, 01:43
Can you tell me where to find it - on which screen? I don't seem to have it in Zabbix 1.1.1

Also, I tried a basic test to wire up a trigger to restart the httpd service when it is stopped on the agent machine. The event shows up in the History of events, but no action is taken on the agent machine to restart:

Configuration of Action is:

Trigger = "WEB (HTTP) server is down on zabbixAgent01"

Remote Command is: zabbixAgent01:service httpd start

Nothing happens when I shut down the httpd on the agent machine. What am I doing wrong? Any help please? Thanks,