<br>
eh, neither does the size check generate alerts either. I changed it to
size<1G to coerce it to fail as the file is around 20G<br>
<br>
FILE %^/backup/*full*cmp* size<1G mtime<86400 track=fullDbDump
<pre>Click on the file as listed under 'files' gives the following:<br>[file:/backup/db_full.cmp_080406.101245]<br>type:100000 (file)<br>mode:644 (-rw-r-----)<br>linkcount:1<br>owner:506 (sql)<br>group:506 (dbas)<br>size:22155416434
<br>clock:1154705700 (2006/08/04-11:35:00)<br>atime:1154702075 (2006/08/04-10:34:35)<br>ctime:1154701823 (2006/08/04-10:30:23)<br>mtime:1154701823 (2006/08/04-10:30:23)</pre>
<br><div><span class="gmail_quote">On 8/4/06, <b class="gmail_sendername">Jerry Yu</b> <<a href="mailto:jjj863@gmail.com">jjj863@gmail.com</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;">
<div>Henrik,<br>
I set it up per the steps above.  the correct files now show up
under the 'files' column. however, no rrd of any files.*.rrd gets
created under the server:/var/lib/hobbit/DB09p/rrd. I do understand if
the rrd name doesn't use the track id under 4.2-RC-20060712, then it is
not useful anyway.<br>
FILE %^/backup/*trans*cp size<500M mtime<3600 track=transDbDump<br>FILE %^/backup/*full*dp size<50G track=fullDbDump<br>
<br><div></div><div><span class="q"><span class="gmail_quote">On 8/3/06, <b class="gmail_sendername">Jerry Yu</b> <<a href="mailto:jjj863@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jjj863@gmail.com</a>> wrote:</span></span></div><div><span class="e" id="q_10cd9a96c0aec061_2"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>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.</div><div><span><br><br><div><span class="gmail_quote">On 8/3/06, <b class="gmail_sendername">Henrik Stoerner</b> <<a href="mailto:henrik@hswn.dk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

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/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

hobbit-unsubscribe@hswn.dk</a><br>
<br><br></blockquote></div><br>

</span></div></blockquote></span></div><div></div><br>

</div></blockquote></div><br>