6 #%# capabilities=snmpconf
12 use Munin::Plugin::SNMP;
14 my $session = Munin::Plugin::SNMP->session;
16 if (defined $ARGV[0] and $ARGV[0] eq "config") {
17 my $host = $session->hostname;
19 print "host_name $host\n" unless $host eq "localhost";
20 print "graph_title Voltage\n";
21 print "graph_args --base 1000 -l 0\n";
22 print "graph_vlabel Volts\n";
23 print "graph_category power\n";
24 print "graph_info This graph shows the voltage being supplied by the PDU.\n";
26 print "voltage.label Voltage\n";
27 print "voltage.type GAUGE\n";
28 print "voltage.info Current voltage.\n";
29 print "voltage.draw LINE2\n";
31 my $voltage = $session->get_single(".1.3.6.1.4.1.318.1.1.26.6.3.1.6.1");
33 print "voltage.value ${voltage}\n";