Projet

Général

Profil

Révision ae4e85ab

IDae4e85ab60d6572e32f284ddbdcaa8b965af9770
Parent 3a6fdce8
Enfant e10e386b

Ajouté par dipohl il y a presque 9 ans

Plugin-Gallery: Better 2nd level headings

Voir les différences:

plugins/other/uustat
12 12
#
13 13
# Environment
14 14
#       exclude: space separated list hosts to exclude.
15
#       category: category of this plugin, default 'postfix'
16 15
#       host.warning: Warning packages threshold, default none.
17 16
#       host.critical: Critical packages threshold, default none.
18 17
#
......
88 87
}
89 88

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

  
93 91
    print "graph_title UUCP usage \n";
94 92
    print "graph_args -l 0\n";
95 93
    print "graph_vlabel packages\n";
96 94
    print "graph_scale no\n";
97
    printf "graph_category %s\n", $category;
95
    print "graph_category postfix\n";
98 96

  
99 97
    foreach my $host (hosts) {
100 98
	next if host_excluded $host;
plugins/puppet/puppet_runtime
29 29

  
30 30
case ARGV[0]
31 31
	when 'config'
32
  		puts "graph_category puppet"
33
                puts "graph_args --base 1000 -l 0"
34
                puts "graph_scale no"
35
  		puts "graph_title puppet catalog run time"
36
  		puts "graph_vlabel Seconds"
37
  		puts "runtime.label Catalog application time"
32
    puts "graph_category devel"
33
    puts "graph_args --base 1000 -l 0"
34
    puts "graph_scale no"
35
    puts "graph_title puppet catalog run time"
36
    puts "graph_vlabel Seconds"
37
    puts "runtime.label Catalog application time"
38 38
		exit 0
39 39
	when 'autoconf'
40 40
		puts "yes"
plugins/vbulletin/vbulletin4_users
60 60
        print "graph_title Forum Users\n";
61 61
        print "graph_args -l 0\n";
62 62
        print "graph_vlabel current users\n";
63
        print "graph_category Forum\n";
63
        print "graph_category forum\n";
64 64
        print "graph_total Total\n";
65 65

  
66 66
        print "members.label Members\n";
plugins/vbulletin/vbulletin_users
60 60
        print "graph_title Forum Users\n";
61 61
        print "graph_args -l 0\n";
62 62
        print "graph_vlabel current users\n";
63
        print "graph_category Forum\n";
63
        print "graph_category forum\n";
64 64
        print "graph_total Total\n";
65 65

  
66 66
        print "members.label Members\n";
plugins/vpn/dar_vpnd
31 31
my $cmd = "ps -ef | awk '/[p]ppd/ {print substr(\$NF,2);}' | wc -l";
32 32

  
33 33
if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {
34
	print "graph_category VPN\n";
34
	print "graph_category network\n";
35 35
	print "graph_args --base 1024 -r --lower-limit 0\n";	
36 36
	print "graph_title Number of VPN Connections\n";
37 37
	print "graph_vlabel VPN Connections\n";
......
41 41
} else {
42 42
	my $output = `$cmd`;
43 43
	print "connections.value $output";
44
}
44
}

Formats disponibles : Unified diff