NAME

OSLV::Monitor::Backends::FreeBSD - backend for FreeBSD jails

VERSION

Version 0.0.3

SYNOPSIS

use OSLV::Monitor::Backends::FreeBSD;

my $backend = OSLV::Monitor::Backends::FreeBSD->new;

my $usable=$backend->usable;
if ( $usable ){
    $return_hash_ref=$backend->run;
}

The stats names match those produced by "ps --libxo json".

METHODS

new

Initiates the backend object.

my $backend=OSLV::MOnitor::Backend::FreeBSD->new(
    base_dir => $base_dir,
);

The following arguments are usable.

- base_dir :: Path to use for the base dir, where the proc
        cache, freebsd_proc_cache.json, is is created.
    Default :: /var/cache/oslv_monitor

- obj :: The OSLVM::Monitor object.

run

$return_hash_ref=$backend->run;

usable

Dies if not usable.

eval{ $backend->usable; };
if ( $@ ){
    print 'Not usable because... '.$@."\n";
}

AUTHOR

Zane C. Bowers-Hadley, <vvelox at vvelox.net>

BUGS

Please report any bugs or feature requests to bug-oslv-monitor at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=OSLV-Monitor. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc OSLV::Monitor

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2024 by Zane C. Bowers-Hadley.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)