Skip to content

Commit

Permalink
Plugin-Gallery: Better 2nd level headings
Browse files Browse the repository at this point in the history
  • Loading branch information
dipohl committed Feb 24, 2017
1 parent 3a6fdce commit ae4e85a
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 13 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions plugins/other/uustat
Expand Up @@ -12,7 +12,6 @@
#
# Environment
# exclude: space separated list hosts to exclude.
# category: category of this plugin, default 'postfix'
# host.warning: Warning packages threshold, default none.
# host.critical: Critical packages threshold, default none.
#
Expand Down Expand Up @@ -88,13 +87,12 @@ if (@ARGV > 0 && $ARGV[0] eq 'autoconf') {
}

if (@ARGV > 0 && $ARGV[0] eq 'config') {
my $category = $ENV{'category'} || 'postfix';

print "graph_title UUCP usage \n";
print "graph_args -l 0\n";
print "graph_vlabel packages\n";
print "graph_scale no\n";
printf "graph_category %s\n", $category;
print "graph_category postfix\n";

foreach my $host (hosts) {
next if host_excluded $host;
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions plugins/puppet/puppet_runtime
Expand Up @@ -29,12 +29,12 @@ end

case ARGV[0]
when 'config'
puts "graph_category puppet"
puts "graph_args --base 1000 -l 0"
puts "graph_scale no"
puts "graph_title puppet catalog run time"
puts "graph_vlabel Seconds"
puts "runtime.label Catalog application time"
puts "graph_category devel"
puts "graph_args --base 1000 -l 0"
puts "graph_scale no"
puts "graph_title puppet catalog run time"
puts "graph_vlabel Seconds"
puts "runtime.label Catalog application time"
exit 0
when 'autoconf'
puts "yes"
Expand Down
Expand Up @@ -60,7 +60,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq "config" )
print "graph_title Forum Users\n";
print "graph_args -l 0\n";
print "graph_vlabel current users\n";
print "graph_category Forum\n";
print "graph_category forum\n";
print "graph_total Total\n";

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

print "members.label Members\n";
Expand Down
4 changes: 2 additions & 2 deletions plugins/network/dar_vpnd → plugins/vpn/dar_vpnd
Expand Up @@ -31,7 +31,7 @@ use strict;
my $cmd = "ps -ef | awk '/[p]ppd/ {print substr(\$NF,2);}' | wc -l";

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_title Number of VPN Connections\n";
print "graph_vlabel VPN Connections\n";
Expand All @@ -41,4 +41,4 @@ if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {
} else {
my $output = `$cmd`;
print "connections.value $output";
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ae4e85a

Please sign in to comment.