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
Same as --temp-dir (-t) option
=back
=head1 METRICS
=over
=item check_name
The name of the CHECK as defined in omnipitr for the --check (-c) option.
=item value
Value returned by the check. Will be an integer representing either time in seconds or a count depending on which check you ran.
=back
=cut
sub handler{
my$self=shift;
my$config=$self->{config};# All configuration is in here
my$check=$self->{check_name};# The check name is in here