2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Plugin-Gallery: Better 2nd level headings

This commit is contained in:
dipohl 2017-02-24 03:13:08 +01:00
parent 3a6fdce80f
commit ae4e85ab60
13 changed files with 11 additions and 13 deletions

View File

@ -12,7 +12,6 @@
# #
# Environment # Environment
# exclude: space separated list hosts to exclude. # exclude: space separated list hosts to exclude.
# category: category of this plugin, default 'postfix'
# host.warning: Warning packages threshold, default none. # host.warning: Warning packages threshold, default none.
# host.critical: Critical packages threshold, default none. # host.critical: Critical packages threshold, default none.
# #
@ -88,13 +87,12 @@ if (@ARGV > 0 && $ARGV[0] eq 'autoconf') {
} }
if (@ARGV > 0 && $ARGV[0] eq 'config') { if (@ARGV > 0 && $ARGV[0] eq 'config') {
my $category = $ENV{'category'} || 'postfix';
print "graph_title UUCP usage \n"; print "graph_title UUCP usage \n";
print "graph_args -l 0\n"; print "graph_args -l 0\n";
print "graph_vlabel packages\n"; print "graph_vlabel packages\n";
print "graph_scale no\n"; print "graph_scale no\n";
printf "graph_category %s\n", $category; print "graph_category postfix\n";
foreach my $host (hosts) { foreach my $host (hosts) {
next if host_excluded $host; next if host_excluded $host;

View File

@ -29,7 +29,7 @@ end
case ARGV[0] case ARGV[0]
when 'config' when 'config'
puts "graph_category puppet" puts "graph_category devel"
puts "graph_args --base 1000 -l 0" puts "graph_args --base 1000 -l 0"
puts "graph_scale no" puts "graph_scale no"
puts "graph_title puppet catalog run time" puts "graph_title puppet catalog run time"

View File

@ -60,7 +60,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq "config" )
print "graph_title Forum Users\n"; print "graph_title Forum Users\n";
print "graph_args -l 0\n"; print "graph_args -l 0\n";
print "graph_vlabel current users\n"; print "graph_vlabel current users\n";
print "graph_category Forum\n"; print "graph_category forum\n";
print "graph_total Total\n"; print "graph_total Total\n";
print "members.label Members\n"; print "members.label Members\n";

View File

@ -60,7 +60,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq "config" )
print "graph_title Forum Users\n"; print "graph_title Forum Users\n";
print "graph_args -l 0\n"; print "graph_args -l 0\n";
print "graph_vlabel current users\n"; print "graph_vlabel current users\n";
print "graph_category Forum\n"; print "graph_category forum\n";
print "graph_total Total\n"; print "graph_total Total\n";
print "members.label Members\n"; print "members.label Members\n";

View File

@ -31,7 +31,7 @@ use strict;
my $cmd = "ps -ef | awk '/[p]ppd/ {print substr(\$NF,2);}' | wc -l"; my $cmd = "ps -ef | awk '/[p]ppd/ {print substr(\$NF,2);}' | wc -l";
if ( exists $ARGV[0] and $ARGV[0] eq "config" ) { if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {
print "graph_category VPN\n"; print "graph_category network\n";
print "graph_args --base 1024 -r --lower-limit 0\n"; print "graph_args --base 1024 -r --lower-limit 0\n";
print "graph_title Number of VPN Connections\n"; print "graph_title Number of VPN Connections\n";
print "graph_vlabel VPN Connections\n"; print "graph_vlabel VPN Connections\n";