BSD Ports

net-mgmt/p5-OSLV-Monitor 1.0.7 FreeBSD

OS level virtualization monitoring extend

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
cbbd608775
License
GPLv3
Categories
net-mgmt
Package size
36.9 KiB, 118.3 KiB installed

Description

OS level virtualization monitoring extend

Designed for snmpd with LibreNMS

Works with FreeBSD jails to provide jail-level metrics.

Create a cronjob:

*/5 * * * * /usr/local/bin/oslv_monitor -q

The snmpd.conf extends:

extend oslv_monitor /bin/cat /var/cache/oslv_monitor/snmp

In the other systems

SystemPortVersion
FreeBSDnet-mgmt/p5-OSLV-Monitor1.0.7
DragonFlynet-mgmt/p5-OSLV-Monitor1.0.2
HardenedBSDnet-mgmt/p5-OSLV-Monitor1.0.6
GhostBSDnet-mgmt/p5-OSLV-Monitor1.0.6

Install

Binary package:

pkg install p5-OSLV-Monitor

From the ports tree:

cd /usr/ports/net-mgmt/p5-OSLV-Monitor/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-OSLV-Monitor>0:net-mgmt/p5-OSLV-Monitor

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.0.61.0.7-1.0.21.0.7
FreeBSD:14:quarterly1.0.61.0.6n/a1.0.21.0.6
FreeBSD:15:latest1.0.71.0.7n/a1.0.21.0.2
FreeBSD:15:quarterly1.0.61.0.6n/an/an/a
FreeBSD:16:latest1.0.61.0.7n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 9

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 20

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Message after installing

Assuming you are running net-mgmt/net-snmp as non-root (i.e. snmpd):

1 - Create /usr/local/etc/cron.d/oslv with this (adjust the meil address)

# use /bin/sh to run commands, overriding the default set by cron
SHELL=/bin/sh
# mail any output to here, no matter whose crontab this is
[email protected]

#minute	hour	mday	month	wday	who	    command
4/5     *       *       *       *       snmpd       sudo /usr/local/bin/oslv_monitor -q

2 - Create this directory:

mkdir /var/cache/oslv_monitor
chown snmpd:snmpd /var/cache/oslv_monitor

3 - Create these sudo permissions:

% cat /usr/local/etc/sudoers.d/snmpd 
snmpd   ALL=(ALL) NOPASSWD:/usr/local/bin/oslv_monitor -q

4 - add this line to /usr/local/etc/snmpd.conf:

extend oslv_monitor     /bin/cat /var/cache/oslv_monitor/snmp

5 - restart snmpd

Files

pkg-plist 8
  • bin/oslv_monitor
  • %%SITE_PERL%%/OSLV/Monitor.pm
  • %%SITE_PERL%%/OSLV/Monitor/Backends/FreeBSD.pm
  • %%SITE_PERL%%/OSLV/Monitor/Backends/cgroups.pm
  • %%PERL5_MAN1%%/oslv_monitor.1.gz
  • %%PERL5_MAN3%%/OSLV::Monitor.3.gz
  • %%PERL5_MAN3%%/OSLV::Monitor::Backends::FreeBSD.3.gz
  • %%PERL5_MAN3%%/OSLV::Monitor::Backends::cgroups.3.gz
distinfo 1
FileSizeSHA256
OSLV-Monitor-1.0.7.tar.gz364213442de41f2fd3f086c0fbd687da547870b78df689e587b705faedd847315fd46
Master sites 1
  • CPAN

Commit history 3

DateCommitCreditsLog message
cbbd608775 Dan Langille net-mgmt/p5-OSLV-Monitor: Update to 1.0.7
re: https://github.com/VVelox/OSLV-Monitor/releases/tag/1.0.7
43c36acec7 Dan Langille net-mgmt/p5-OSLV-Monitor: Update to 1.0.6
re: https://github.com/VVelox/OSLV-Monitor/releases/tag/1.0.6
48aaf76377 Dan Langille net-mgmt/p5-OSLV-Monitor: Update to 1.0.5
re: https://github.com/VVelox/OSLV-Monitor/releases/tag/1.0.5 Obtained from: Carolina Beach