robinbowes wrote:

This is of no help at all to the OP, but this thread has given me the
impetus to get slimserver working with djb's daemontools
(http://cr.yp.to/daemontools.html).
... only thing I use out of daemontools is setuidgid, which is really handy (though I should probably just be using a chroot jail wherever I'm using it :))

Anyway, my solution for this was to add a Nagios event_handler. I already have Nagios running on the same box as Slimserver, so I just had to edit two files.

/etc/nagios/services.cfg
define service {
use generic-service ; Name of template
       host_name                       felix
       service_description             Slimserver
       is_volatile                     0
       check_period                    24x7
       max_check_attempts              3
       normal_check_interval           15
       retry_check_interval            5
       event_handler                   restart_slimserver
       contact_groups                 me
       notification_interval           120
       notification_period             24x7
       notification_options            w,c,r
       check_command                   check_http!localhost!9000
       }

/etc/nagios/misccommands.cfg
define command{
       command_name    restart_slimserver
command_line /usr/lib/nagios/plugins/eventhandlers/restart_service $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ slimserver
}

--
Jack at Monkeynoodle dot Org : It's a Scientific Venture!
"I spent all me tin with the ladies drinking gin, so across the Western ocean I must wander." -- All for Me Grog, traditional

_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to