<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 27, 2011, at 12:09 AM, Victor Hooi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div><br></div><div>We have several Solaris 10 running an application that generates large text logfiles</div><div><br></div><div>We need to stream these logfiles in realtime to a central monitoring server.</div><div><br>
</div><div>Unfortunately (for both technical and non-technical reasons), we can't use an NFS-mount. At the moment, we're using SSH with tail -f to stream the files from the servers to the monitoring box.</div><div>
<br></div><div>However, I was going to look at hacking a client/server up in Python to monitor for filesystem events, and then stream any updates.</div><div><br></div><div>In terms of filesystem monitoring, this is Solaris 10, so there's not really that much available it seems. Gamin seems to be the best bet, otherwise I might have to fallback to polling.</div>
<div><br></div><div>On the Twisted side, is the above something that's fairly easy to accomplish? I haven't used Twisted before, so I thought this might be a good excuse to learn it. Any thoughts or caveats I should be aware of? Any existing projects I might be able to leverage off? Good starting docs for this sort of thing?</div>
</blockquote><br></div><div>Hi Victor,</div><div><br></div><div>This <i>should</i> be pretty easy to accomplish; this kind of thing is generally very straightforward using Twisted. Obviously you'd have to implement a protocol for talking to Gamin, but I think the protocol involved is well-documented and very straightforward.</div><div><br></div><div>However, you should be aware that Solaris 10 is <i>not</i> currently a supported platform. You can see the list of supported platforms along the left-hand side of this page: <<a href="http://buildbot.twistedmatrix.com/boxes-supported">http://buildbot.twistedmatrix.com/boxes-supported</a>>.</div><div><br></div><div>The primary impediment to supporting Solaris is the lack of a buildbot that can tell us whether it works or not. We don't even have an unsupported Solaris builder (see <<a href="http://buildbot.twistedmatrix.com/boxes-all">http://buildbot.twistedmatrix.com/boxes-all</a>> for all the currently running buildbots, including those which are known to fail).</div><div><br></div><div>Most likely, Twisted will work just fine on Solaris, since it's quite a lot like a lot of other platforms we do support, and especially we've recently improved support for various less popular UNIXes like the *BSD family.</div><div><br></div><div>Contributing a buildbot to Twisted is pretty easy though, and we can probably even supply the hardware for you (assuming that Solaris 10 can run happily in an x86[_64] qemu/kvm-style VM) if you'd just volunteer to install the OS and make sure it's configured properly.</div><div><br></div><div>Do you have any interest in helping us make Solaris a supported platform?</div><div><br></div><div>Thanks,</div><div><br></div><div>-glyph</div><br></body></html>