On 3/9/07, Andrew Hammond <[EMAIL PROTECTED]> wrote:
On 3/9/07, Vivek Khera <[EMAIL PROTECTED]> wrote: > > On Mar 9, 2007, at 12:59 PM, Andrew Hammond wrote: > > > I'll give a +1 on using daemontools to run the slons. It's far cleaner > > and easier than anything else I've tried. I've also put some more work > > into polishing the slon-mkservice.sh script, which I would be happy to > > contribute back if there's any interest. > > absolutely!Ok, I'll spit-n-polish then email my version to you.
Attached. Feedback is very welcome. Yes, I realize it creates annoyingly verbose directory names for the services. logrep is a tool intended to allow efficient real-time filtering of log files so that you can pull semantically related information from a highly verbose log (ie DEBUG2) and put it all in one place. This is very handy if you want to implement automated monitoring scripts for stuff like nagios. It relies on the tail -F functionality (tested on FreeBSD, OSX, Linux). I've included a multilog filter for use with logrep that plucks out everything related to subscribe as an example. I'll eventually get around to writing a nagios monitor that does something clever with this log output (like say warn when a slon is doing the initial copy so you know not to clobber it). I'd love to see other filters that pull out other interesting stuff, like specific error conditions, for example. Andrew
logrep-mkservice.sh
Description: Bourne shell script
slon-mkservice.sh
Description: Bourne shell script
_______________________________________________ Slony1-general mailing list [email protected] http://lists.slony.info/mailman/listinfo/slony1-general
