Monitor CPU and Memory Consumption of a Particular process

#1

Hi Team,

I am able to monitor a particular process using check-process.rb plugin.

{
  "checks": {
    "check-mysql": {
      "handlers": ["mailer"],
      "command": "/opt/sensu/embedded/bin/check-process.rb -p mysqld ",
      "interval": 180,
      "occurrences": 5,
      "subscribers": [ "dev" ]
    }
  }
}

Now i want to monitor that particular process memory and cpu consumption. What plugin i have to use. Can anyone help me on this. Please provide me any example json format.

#2

I think you are probably looking for this option: https://github.com/sensu-plugins/sensu-plugins-process-checks/blob/3.2.0/bin/check-process.rb#L125-L129

closed #3