thanks for verifying, Henrik. I'll wait for 4.2 release to rebuild my
RPMs.  Right now, I am still settling in with my first Hobbit
installation. used to work with bb-1.3/5/9.<br><br><div><span class="gmail_quote">On 8/3/06, <b class="gmail_sendername">Henrik Stoerner</b> <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Aug 03, 2006 at 09:04:23AM -0400, Jerry Yu wrote:<br><br>> I need to monitor some os and db backup files for their sizes for alert<br>> based on absolute sizes as well as rrd trending. Does Hobbit do this now? I
<br>> am running 4.2-RC-20060712 on CentOS 4.3/i386.<br>><br>> A twist is the file names are timestamped (os-backup-YYYYMMDD-HHmm.star.gz).<br>> any suggestions/tricks? I thought of making a copy to a fixed name for
<br>> monitoring, but it is kinda expensive due to the size of the backups<br>> themselves.<br><br>First thing is to get a "file:" entry in client-local.cfg to grab the<br>data for the latest file. Something like:
<br><br>    file:`ls -t -1 /backup(os-backup-*.tar.gz|head -1`<br><br>This runs the "ls -t...." command to determine the filename. Since it<br>uses a time-sort and grabs only the first line, it should give you the
<br>name of the latest file.<br><br>Next you want to track the size of it. In hobbit-clients.cfg<br>define a FILE entry to track this - it needs to use a regex to match<br>the filename, and an explicit RRD id to make it always use a specific
<br>RRD file. Perhaps you want to alert if they get bigger than 1 GB. So:<br><br>    FILE %^/backup/os-backup.*.tar.gz SIZE<1G TRACK=osbackup<br><br>Other interesting options for the FILE entry might be "MTIME<86400" to
<br>check that the latest backup file is at most 24 hours old.<br><br>[10 minutes later]<br><br>OK, I've learnt to test things before sending mails like this. The TRACK<br>setting for files and directories currently ignores the ID you may pass
<br>to it, and uses the current filename when deciding on the RRD filename.<br>So to use this, you'll need to grab either the current snapshot and<br>build that, or the current "all-in-one" patch from<br><a href="http://www.hswn.dk/hobbitsw/betapatches/">
http://www.hswn.dk/hobbitsw/betapatches/</a><br><br><br>Regards,<br>Henrik<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
<br><br></blockquote></div><br>