[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Re: New to Hobbit --- file monitoring
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Re: New to Hobbit --- file monitoring
- From: "Scott Mohnkern" <mohnkern (at) gmail.com>
- Date: Thu, 1 Nov 2007 16:59:36 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=bLvgBUt9VYCvkS7cBSvYhtandoBGPQXEAUKn+g0rDFA=; b=HtQz7W/ACxE6JMjPVQm1eAwg+QAMQvRB63uc/DHdzBkxPx2LFs3sKZ4hsRcD1OcJaNI0EKZRdkq5tLnsFGxKgd9FPFARBbDw5D/VaeY3b60fiiKabtrqSimXqtIj26Fzoei3/8ZQU149Xv5tFyayCNxIt8X3KSVQmybqG9HZGIY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=iUB15d4HtJ5g1ybR4qEYR2ckwrm6UCdYxExKwsY2LjHrx/beXNVmVzNF90V8qDn0yNpHsRr4SrDLHnL90tXsa/hgwdUeBTwnW4wxd/wCHfNgxKhB++0SuT0Mm54d7k9f5/3hOT/yerztWXifr3GiABHSo2+uwwTOebElfAbKAuM=
- References: <8d4a4baf0710311300i23837580t40ba4aabba0fe23f (at) mail.gmail.com> <8d4a4baf0711011309g2afc8f30pfe5e910617398651 (at) mail.gmail.com> <58EF0861D3A1A04182720B3A5231C7C201BEE446 (at) usplm205.amer.corp.eds.com> <8d4a4baf0711011333j3ea89943p20b5b36a9ada7fe3 (at) mail.gmail.com> <8d4a4baf0711011338x5545ecbdqf6cdbd37babe49fb (at) mail.gmail.com> <58EF0861D3A1A04182720B3A5231C7C201BEE47C (at) usplm205.amer.corp.eds.com>
Nope, no joy there either. the man page seems to think it should be:
FILE <full path to file><color> <condition>
and that's pretty consistent with the other things I've put into the same
file, which come up.
I also tried:
FILE "/etc/passwd" green noexist TRACK
and
FILE "/etc/passwd" green noexist
Scott
On 11/1/07, Hubbard, Greg L <greg.hubbard (at) eds.com> wrote:
>
> Try this
>
> FILE /etc/passwd noexist COLOR=green TRACK
>
> ------------------------------
> *From:* Scott Mohnkern [mailto:mohnkern (at) gmail.com]
> *Sent:* Thursday, November 01, 2007 3:39 PM
> *To:* hobbit (at) hswn.dk
> *Subject:* Re: [hobbit] Re: New to Hobbit --- file monitoring
>
> Well, at least its replicatable.
>
>
> Scott
>
>
> On 11/1/07, Scott Mohnkern < mohnkern (at) gmail.com> wrote:
> >
> > Thanks for the help. I edited /etc/hobbit/hobbit-clients.cfg so the
> > line reads:
> >
> > FILE /etc/passwd GREEN noexist
> >
> > still no joy.
> >
> > Is there anyone on the list that has an example of a FILE line in their
> > hobbit-clients.cfg file?
> >
> > On 11/1/07, Hubbard, Greg L < greg.hubbard (at) eds.com> wrote:
> > >
> > >
> > > Try removing the TRACK keyword, and then change NOEXIST to lower case. I think Henrik has reported that there are a few bugs in this code,
> > > and it is not always clear when case matters and when it doesn't, or
> > > when the order of the arguments matters.
> > >
> > >
> > > ------------------------------
> > > *From:* Scott Mohnkern [mailto:mohnkern (at) gmail.com]
> > > *Sent:* Thursday, November 01, 2007 3:10 PM
> > > *To:* hobbit (at) hswn.dk
> > > *Subject:* [hobbit] Re: New to Hobbit --- file monitoring
> > >
> > > When all else fails, nuke it and start over. I did an apt-get remove
> > > hobbit, and then a dpkg -- purge. Then I removed any files I could find.
> > > Then I downloaded the Ubuntu deb file and installed it. It put the
> > > configuration files in /etc/hobbit and it started fine
> > >
> > > I edited /etc/hobbit/hobbit-clients.cfg and added the following line:
> > >
> > > PROC ntpd 1 99 green "TEXT=NTPD is up"
> > >
> > >
> > > Restarted hobbit, and in a few minutes, it started reporting as
> > > expected.
> > >
> > > Then I added:
> > >
> > > PORT "LOCAL=%(:8888)" TEXT="Gnump is up"
> > >
> > > To the same file, (/etc/hobbit/hobbit-clients.cfg) and restared
> > > hobbit.
> > >
> > > A few minutes later, the ports section started reporting, as expected.
> > >
> > >
> > > (Though I realize that its a bit off, which I need to fix)
> > >
> > >
> > > Then I added:
> > >
> > > FILE /etc/passwd GREEN NOEXIST track
> > >
> > > Reading the documentation inside hobbit-clients.cfg I edited
> > > /etc/hobbit/client- local.cfg and added the following line:
> > > file:/etc/passwd
> > >
> > > restarted hobbit, waited 5 minutes. No luck.
> > >
> > >
> > > I'm pretty convinced that either:
> > >
> > > 1. the format of the line in /etc/hobbit/client-local.cfg or
> > > /etc/hobbit/hobbit-clients.cfg is incorrect, or
> > > 2. There's something else I need to edit.
> > >
> > >
> >
>