On Fri, Mar 12, 2010 at 10:40 PM, Ludovic Levesque <[email protected]> wrote:

> And for monitoring, we use nagios with correct plugin:
> http://search.cpan.org/~gbarr/Nagios-Plugin-Beanstalk-0.04/
> (can check age of tube, quite useful)

I finally found the time to try the Nagios plugin. I read the source
code, installed it and played with it for a while. I see that the only
point of the plugin is to monitor whether a given tube is okay and
provide either its age or the number of active workers (reserved jobs
if I am not mistaken). That is fine by me as I could monitor each of
the 3 tubes I've got.

Also, according to advice received in this thread, I have decided to
monitor only the status of the daemon and the tubes/workers (I may end
up monitoring the Linux processes themselves, which are the actual
workers, but I have not decided yet). I agree that collecting stats
such as "number of processed jobs so far" and similar is not really a
monitoring thing and should be done separately (e.g. through collectd
or similar).

Now my question would be how you would check whether the beanstalkd
process is alive and working well. Shall I use the Perl/Python client?
If so, which would be the most basic "command" to send in order to
just get to know it is up and kicking?

Alternatively, I could use something like "lsof -n -t -i
@127.0.0.1:11300 -sTCP:LISTEN"? Although I am not sure how precise
this check would be (I am thinking of zombie or unresponsive
processes).

Thanks.

-- 
Jaume Sabater
http://linuxsilo.net/

"Ubi sapientas ibi libertas"

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en.

Reply via email to