hv_monitor - LibreNMS style JSON SNMP extend for hypervisor monitoring.
hv_monitor [-c] [-b <backend>]
For cron...
*/5 * * * * /usr/local/bin/hv_monitor > /var/cache/hv_monitor.json -c 2> /dev/null
For snmpd...
extend hv-monitor /bin/cat /var/cache/hv_monitor.json
The backend to use.
Defaults are as below.
FreeBSD: CBSD Linux: Libvirt
Compress the output using gzip and base64 encoded so it can be transmitted via SNMP with out issue.
To install HV::Monitor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HV::Monitor
CPAN shell
perl -MCPAN -e shell install HV::Monitor
For more information on module installation, please visit the detailed CPAN module installation guide.