Skip to content

Instantly share code, notes, and snippets.

View janlam7's full-sized avatar

Jan Lam janlam7

View GitHub Profile
@janlam7
janlam7 / panels_enphase
Last active December 25, 2015 06:39
Munin-plugin to create graphs from the information provided by an Enphase Envoy. Config needed for munin-node: [panels_enphase] #ip address of the enphase equipment; compatible with at least version R3.7.16 (02cb0e) env.enphaseipaddress 192.168.4.87 #file to store tmp data in; munin user needs rw access, persistence after a restart is a pre. env…
#!/usr/bin/perl
use strict;
use warnings;
use English;
use HTML::TableExtract;
use LWP::Simple;
my $file = $ENV{'tmpfile'};
@janlam7
janlam7 / zram
Last active July 22, 2018 16:51 — forked from cronnelly/zram
#!/bin/bash
# -*- sh -*-
: << =cut
=head1 NAME
zram - Plugin to monitor zram usage
=head1 CONFIGURATION