From james at rcpt.to Sat Feb 26 00:12:35 2011 From: james at rcpt.to (James Bromberger) Date: Sat, 26 Feb 2011 16:12:35 +0800 Subject: [Perth-pm] Daemon Debugging Techniques in Perl Message-ID: <4D68B5F3.8080203@rcpt.to> Hi All, I've been contemplating good daemon debugging techniques (other than overly verbose lo files), using examples I've come across. Apache has mod_status, Java/Tomcat/Jetty/JBoss has JMX. Anyone got any recommendations or frameworks that have worked well for them in Perl? I have a threaded, long-running script (for all arguments, its effectively always running, but not a daemon as such, yet). I've got logging via Syslog and console, and can increase & decrease on-the-fly using signals (SIG USR1 increases verbosity, SIG USR2 decreases). But that's not really giving me the flexibility I was after. I could pursue Log4Perl (based upon Log4J, which is excellent for dynamic logging), but isn't really live inspection (or manipulation) of variables. I generally don't want to have TB of logs rotating around, but would like to poke around and see the values of various variables at random times.... I could embed an SNMP service, or a web server, or a telnet service; but I was wondering if anyone here has any recommendations or war stores of what to avoid? JEB -- Mobile: +61 422 166 708, Email: james_AT_rcpt.to From jason at mindsocket.com.au Sun Feb 27 00:27:45 2011 From: jason at mindsocket.com.au (Jason Nicholls) Date: Sun, 27 Feb 2011 16:27:45 +0800 Subject: [Perth-pm] Daemon Debugging Techniques in Perl In-Reply-To: <4D68B5F3.8080203@rcpt.to> References: <4D68B5F3.8080203@rcpt.to> Message-ID: don't use snmp if you want simplicity (despite the name). On Sat, Feb 26, 2011 at 4:12 PM, James Bromberger wrote: > Hi All, > > I've been contemplating good daemon debugging techniques (other than > overly verbose lo files), using examples I've come across. Apache has > mod_status, Java/Tomcat/Jetty/JBoss has JMX. Anyone got any > recommendations or frameworks that have worked well for them in Perl? > > I have a threaded, long-running script (for all arguments, its > effectively always running, but not a daemon as such, yet). I've got > logging via Syslog and console, and can increase & decrease on-the-fly > using signals (SIG USR1 increases verbosity, SIG USR2 decreases). But > that's not really giving me the flexibility I was after. I could pursue > Log4Perl (based upon Log4J, which is excellent for dynamic logging), but > isn't really live inspection (or manipulation) of variables. I generally > don't want to have TB of logs rotating around, but would like to poke > around and see the values of various variables at random times.... > > I could embed an SNMP service, or a web server, or a telnet service; but > I was wondering if anyone here has any recommendations or war stores of > what to avoid? > > ?JEB > > -- > Mobile: +61 422 166 708, Email: james_AT_rcpt.to > > _______________________________________________ > Perth-pm mailing list > Perth-pm at pm.org > http://mail.pm.org/mailman/listinfo/perth-pm > -- Jason Nicholls jason at mindsocket.com.au 0430 314 857