holland-discuss team mailing list archive
-
holland-discuss team
-
Mailing list archive
-
Message #00104
Re: Monitoring success/failure of holland
Holland takes some pains to exit 0 on success and non-zero on failure.
So checking the exit status is the standard way and how we monitor it
here, but we're usually firing it off via some process other than
cron.
In cron, I suppose we would just send an email or touch a file on a
non-zero exit status via something like:
holland backup [options] || echo "Failed backup" ...
We don't presently have anything more sophisticated than that in the
1.0 (stable) branch.
~Andrew
On Mon, Oct 22, 2012 at 11:07 AM, David Maynard <dmaynard@xxxxxxxxxxx> wrote:
> What is the best way to monitor whether Holland is running successfully?
>
>
>
> I am running Holland 1.0.6 from the EPEL RPMs on CentOS 5.x using the
> mysqldump provider. It is running on a Rackspace next-gen cloud server.
>
>
>
> When I run it from the command line, it produces the expected output to
> stderr according to the log level. When I run it from cron, it doesn’t
> appear to produce any output to stdout or stderr. The messages do get
> logged to /var/log/holland/holland.log. I assume it notices when it is
> running without a tty and doesn’t generate the console output.
>
>
>
> I considered trying to write a logwatch parser for the holland.log file, but
> it doesn’t use the standard syslog time/line format. I’m not a logwatch
> expert, so creating a new plugin from scratch looks like more work than I
> was hoping for. Holland is “nice” enough to clearly flag the different log
> levels, so picking out errors should be straightforward once you get past
> the basic date filtering.
>
>
>
> Any other suggestions on the best approach to monitoring holland for
> failures? Something that could be turned into a Nagios plugin would be
> great. I’m sure I could create a ugly hack that grepped the holland.log,
> but it seems like there should be a better way.
>
>
>
> Thanks!
>
>
>
> -dpm
>
> --
> David P Maynard, OutServ.net, Inc.
> Email: dmaynard@xxxxxxxxxxx, Tel: +1 (512) 977-8918 x0, Fax: +1 (512)
> 501-6366
> --
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~holland-discuss
> Post to : holland-discuss@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~holland-discuss
> More help : https://help.launchpad.net/ListHelp
>
References