mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Plugin-Gallery: Better 2nd level headings
This commit is contained in:
parent
3a6fdce80f
commit
ae4e85ab60
13 changed files with 11 additions and 13 deletions
|
@ -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.
|
||||
#
|
||||
|
@ -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;
|
||||
|
|
|
@ -29,7 +29,7 @@ end
|
|||
|
||||
case ARGV[0]
|
||||
when 'config'
|
||||
puts "graph_category puppet"
|
||||
puts "graph_category devel"
|
||||
puts "graph_args --base 1000 -l 0"
|
||||
puts "graph_scale no"
|
||||
puts "graph_title puppet catalog run time"
|
||||
|
|
|
@ -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";
|
|
@ -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";
|
|
@ -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";
|
Loading…
Add table
Add a link
Reference in a new issue