Created
October 26, 2012 09:40
-
-
Save hiromiso/3957866 to your computer and use it in GitHub Desktop.
/etc/munin/plugins/akiba58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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