monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to check the uptime of a Ruby process.


From: Martin Pala
Subject: Re: How to check the uptime of a Ruby process.
Date: Mon, 30 Jul 2012 12:01:59 +0200

Hi,

you can use the uptime test (available since monit 5.4):

check process ruby ...
if uptime > 45 minutes then alert


Regards,
martin


On Jul 30, 2012, at 11:55 AM, pippo pippo <address@hidden> wrote:

Hi.

I'm using Monit (version 5.4) to check the uptime of Ruby process on my Ubuntu Server 12.04 LTS 32 bit.

Ruby doesn't have a PID file, so I find/check ruby process through the following monit code/configuration:

check process ruby
matching "^Rack: /home/capistrano/railsapp/current?|^Passenger ApplicationSpawner: /home/capistrano/railsapp/current?"

Now I need to check uptime and if is greater then 45 minutes I must to alert. How can I do this?

Thanks in advance.

Regards.

K85PD5
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general


reply via email to

[Prev in Thread] Current Thread [Next in Thread]