Skip to content

Instantly share code, notes, and snippets.

@hiromiso
Created October 26, 2012 09:40
Show Gist options
  • Save hiromiso/3957866 to your computer and use it in GitHub Desktop.
Save hiromiso/3957866 to your computer and use it in GitHub Desktop.
/etc/munin/plugins/akiba58
#!/usr/bin/perl
use strict;
my $result = `/usr/local/bin/temper`;
if (defined $ARGV[0] and $ARGV[0] eq 'config') {
print <<EOT;
graph_title Room Temperatures
graph_vtitle Celsius
graph_args --base 1000 -l 0
graph_category sensors
akiba58.label akiba58
EOT
exit;
}
if ($result =~ /,([\d.]*)/) {
print "akiba58.value $1\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment