Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a good process monitoring and control framework in either Ruby or Perl?

Tags:

ruby

perl

I came across God which seems good but I am wondering if anyone knows of other process monitoring and control frameworks that I can compare god with. God has the following features:

  1. Config file is written in Ruby
  2. Easily write your own custom conditions in Ruby
  3. Supports both poll and event based conditions
  4. Different poll conditions can have different intervals
  5. Integrated notification system (write your own too!)
  6. Easily control non-daemonizing scripts

The last one is what i am having difficulty with.

like image 309
kamal Avatar asked Oct 01 '10 17:10

kamal


1 Answers

Have a look at Ubic (CPAN page here but do read installation details on the github project page).

Ubic isn't a monitoring framework par se but a LSB compliant extensible Service Manager.

Its written and configurable all in Perl. A simple example would be:

# /etc/ubic/services/test

use Ubic::Service::SimpleDaemon;
return Ubic::Service::SimpleDaemon->new({ bin => "sleep 1000" });

To start above is: ubic start test. To check its running or not: ubic status test. To stop service (suprisingly!) is: ubic stop test.

Ubic keeps an eye on all its services so when test service stops after 1000 seconds then Ubic will automatically restart it again.

Some more links:

  • Mailing list
  • Ubic - how to implement your first service (blog post)
  • Ubic - code reuse and customizations (blog post)

/I3az/

like image 73
draegtun Avatar answered Oct 23 '22 04:10

draegtun