Ad Widget

Collapse

Trigger for processes that use too much CPU

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pstirpe
    Junior Member
    • Jun 2006
    • 3

    #1

    Trigger for processes that use too much CPU

    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
    Member
    • Aug 2006
    • 84

    #2
    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.

    Comment

    • pstirpe
      Junior Member
      • Jun 2006
      • 3

      #3
      Cannot find it

      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,

      Comment

      Working...