[hobbit] monitor a series of files for absolute size (alert & trending)

Jerry Yu jjj863 at gmail.com
Fri Aug 4 16:49:54 CEST 2006


Henrik,
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.
FILE %^/backup/*trans*cp size<500M mtime<3600 track=transDbDump
FILE %^/backup/*full*dp size<50G track=fullDbDump

On 8/3/06, Jerry Yu <jjj863 at gmail.com> wrote:
>
> 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.
>
>
> On 8/3/06, Henrik Stoerner <henrik at hswn.dk> wrote:
> >
> > On Thu, Aug 03, 2006 at 09:04:23AM -0400, Jerry Yu wrote:
> >
> > > I need to monitor some os and db backup files for their sizes for
> > alert
> > > based on absolute sizes as well as rrd trending. Does Hobbit do this
> > now? I
> > > am running 4.2-RC-20060712 on CentOS 4.3/i386.
> > >
> > > A twist is the file names are timestamped (
> > os-backup-YYYYMMDD-HHmm.star.gz).
> > > any suggestions/tricks? I thought of making a copy to a fixed name for
> >
> > > monitoring, but it is kinda expensive due to the size of the backups
> > > themselves.
> >
> > First thing is to get a "file:" entry in client-local.cfg to grab the
> > data for the latest file. Something like:
> >
> >     file:`ls -t -1 /backup(os-backup-*.tar.gz|head -1`
> >
> > This runs the "ls -t...." command to determine the filename. Since it
> > uses a time-sort and grabs only the first line, it should give you the
> > name of the latest file.
> >
> > Next you want to track the size of it. In hobbit-clients.cfg
> > define a FILE entry to track this - it needs to use a regex to match
> > the filename, and an explicit RRD id to make it always use a specific
> > RRD file. Perhaps you want to alert if they get bigger than 1 GB. So:
> >
> >     FILE %^/backup/os-backup.*.tar.gz SIZE<1G TRACK=osbackup
> >
> > Other interesting options for the FILE entry might be "MTIME<86400" to
> > check that the latest backup file is at most 24 hours old.
> >
> > [10 minutes later]
> >
> > OK, I've learnt to test things before sending mails like this. The TRACK
> > setting for files and directories currently ignores the ID you may pass
> > to it, and uses the current filename when deciding on the RRD filename.
> > So to use this, you'll need to grab either the current snapshot and
> > build that, or the current "all-in-one" patch from
> > http://www.hswn.dk/hobbitsw/betapatches/
> >
> >
> > Regards,
> > Henrik
> >
> >
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe at hswn.dk
> >
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060804/9fe8799b/attachment.html>


More information about the Xymon mailing list