-
Keith Fiske authoredKeith Fiske authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
OmniPITR.pm 3.20 KiB
package Extra::OmniPITR;
use strict;
use warnings;
use base 'Resmon::Module';
use File::Spec;
use Resmon::ExtComm qw(run_command cache_command);
=pod
=head1 NAME
Extra::OmniPITR - a sample/template resmon module
=head1 SYNOPSIS
Extra::OmniPITR {
archive-queue : omnipitr_path => /opt/omnipitr/bin, log_path => /var/log/postgresql/omnipitr-archive-^Y-^m-^d.log, state_path => /var/lib/postgresql/9.1/omnipitr/state -U postgres
last-archive-age : omnipitr_path => /opt/omnipitr/bin, log_path => /var/log/postgresql/omnipitr-archive-^Y-^m-^d.log, state_path => /var/lib/postgresql/9.1/omnipitr/state
}
=head1 DESCRIPTION
This module is for monitoring the status of OmniPITR (https://github.com/omniti-labs) using its built in omnipitr-monitor module. All options that omnipitr-monitor has able to be passed as options in resmon.conf. For more details on the check arguments, see https://github.com/omniti-labs/omnipitr/blob/master/doc/omnipitr-monitor.pod
Note: The 'error' check is not currently supported since this resmon module can only return an integer value at this time.
=head1 CONFIGURATION
=over
=item check_name
The name of the CHECK as defined in omnipitr for the --check (-c) option.
=item omnipitr_path
Path to the omnipitr binary folder (ex. /opt/omnipitr/bin). Assumes binaries are in $PATH otherwise.
=item state_path
Same as --state (-s) option
=item log_path
Same as --log (-l) option
=item database
Same as --database (-d) option
=item host
Same as --host (-h) option
=item port
Same as --port (-p) option
=item username
Same as username (-U) option
=item psql_path
Same as --psql-path (-pp) option
=item temp_path