NAME

Ubic::Watchdog - watchdog code

VERSION

version 1.37

SYNOPSIS

use Ubic::Watchdog;
Ubic::Watchdog->run(...);

DESCRIPTION

This module contains most of the code needed by ubic-watchdog script.

INTERFACE SUPPORT

This is considered to be a non-public class. Its interface is subject to change without notice.

METHODS

run($options)

Run watchdog.

Options:

glob_filter

Arrayref with shell-style glob filters.

If this option is given and non-empty, only services matching these filters will be checked.

compile_timeout

Compilation timeout for every service (see load_services() method for details).

verbose

Enable verbose logging.

match($name, $filter)

Check if service name matches name filter.

load_services($multiservice)

Load subservices of given multiservice, using safe compilation timeouts.

(relatively safe, since it doesn't do fork, only sets alarm).

check_all(@services)

Check all services in the list.

It will traverse to subservices if any of given services are multiservices.

It will fork on every service and check them in parallel fashion.

check($service)

Check one service.

SEE ALSO

ubic-watchdog - main watchdog script.

AUTHOR

Vyacheslav Matyukhin <mmcleric@yandex-team.ru>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Yandex LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.