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;
18 my $warning = $session->get_single(".1.3.6.1.4.1.318.1.1.26.10.2.1.1.13.1");
19 my $critical = $session->get_single(".1.3.6.1.4.1.318.1.1.26.10.2.1.1.14.1");
21 print "host_name $host\n" unless $host eq "localhost";
22 print "graph_title Humidity\n";
23 print "graph_args -l 0\n";
24 print "graph_vlabel %\n";
25 print "graph_category sensors\n";
26 print "graph_info This graph shows the humidity from the PDUs environmental sensor.\n";
28 print "humidity.label Humidity\n";
29 print "humidity.type GAUGE\n";
30 print "humidity.info Relative humidity.\n";
31 print "humidity.draw LINE2\n";
32 print "humidity.warning ${warning}:\n";
33 print "humidity.critical ${critical}:\n";
35 my $humidity = $session->get_single(".1.3.6.1.4.1.318.1.1.26.10.2.2.1.10.1");
37 print "humidity.value ${humidity}\n";