1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

snmp__apc: have a static title for the graph.

Instead of adding model and serial number to the graph itself, use a
static title for it and instead provide the model and serial number as
part of graph_info.

This change makes it much easier to forward the warning/critical
statuses back to Icinga (or Nagios), where you have to match the graph
title.
This commit is contained in:
Diego Elio Pettenò 2012-08-23 08:16:50 -07:00
parent 2b09747a22
commit 55cb01870b

View file

@ -81,9 +81,10 @@ if ($ARGV[0] and $ARGV[0] eq "config") {
my $modelNo = $session->get_single($oidModelNo);
my $serialNo = $session->get_single($oidSerialNo);
print "graph_title PDU $modelNo ($serialNo)\n";
print "graph_vlabel Current drained (A)\n";
print "graph_title PDU Current Drain\n";
print "graph_vlabel Ampere\n";
print "graph_category Sensors\n";
print "graph_info This graph is for $modelNo PDU serial $serialNo\n"
for( my $phaseIndex = 1; $phaseIndex <= $numPhases; $phaseIndex++ ) {
my $nearOverloadThreshold = $session->get_single($oidNearOverloadThreshold . $phaseIndex);