Changeset 3673

Show
Ignore:
Timestamp:
09/06/10 15:23:54 (2 years ago)
Author:
mha
Message:

Include the name of the database in the graph title for PostgreSQL
wildcard graphs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4-stable/plugins/lib/Munin/Plugin/Pgsql.pm

    r3231 r3673  
    224224    $self->ensure_version(); 
    225225 
    226     print "graph_title $self->{title}\n"; 
     226    my $w = $self->wildcard_parameter(); 
     227    if ($w) { 
     228      print "graph_title $self->{title} ($w)\n"; 
     229    } 
     230    else { 
     231      print "graph_title $self->{title}\n"; 
     232    } 
    227233    print "graph_vlabel $self->{vlabel}\n"; 
    228234    print "graph_category PostgreSQL\n";