Projet

Général

Profil

Révision 84c28707

ID84c28707ebe6cd34d32d383f29cd429108fbd8ba
Parent a3c2338b
Enfant c4b2d9a8

Ajouté par dipohl il y a presque 9 ans

Category Tree: reduce number of categories

Voir les différences:

plugins/apt/apt-proxy
36 36
{
37 37
    print "graph_title Files in apt-proxy cache\n";
38 38
    print "graph_args --base 1000 -l 0\n";
39
    print "graph_category apt-proxy\n";
39
    print "graph_category security\n";
40 40
    print "graph_vlabel files\n";
41 41
    print "main.label main\n";
42 42
    print "main.info Packages in main\n";
plugins/arangodb/arangodb_
91 91
        print "graph_title ArangoDB current connections"
92 92
        print "graph_args --base 1000 -l 0"
93 93
        print "graph_vlabel connections"
94
        print "graph_category ArangoDB"
94
        print "graph_category db"
95 95
        print "connections.label connections"
96 96

  
97 97
    elif plugin_name == 'arangodb_time_total':
98 98
        print "graph_title ArangoDB total time"
99 99
        print "graph_args --base 1000 -l 0"
100 100
        print "graph_vlabel seconds"
101
        print "graph_category ArangoDB"
101
        print "graph_category db"
102 102
        print "total.label total"
103 103
        print "connection.label connection"
104 104
        print "request.label request"
......
108 108
        print "graph_title ArangoDB total bytes"
109 109
        print "graph_args --base 1024"
110 110
        print "graph_vlabel total bytes received (-) / sent (+)"
111
        print "graph_category ArangoDB"
111
        print "graph_category db"
112 112
        print "graph_order received sent"
113 113
        print "received.graph no"
114 114
        print "received.draw LINE2"
plugins/bitcoin/btcguild_hashrate_
28 28
    print "graph_title BTCGuild Hashrate"
29 29
    print "graph_args --upper-limit 3000 -l 0"
30 30
    print "graph_vlabel MHash/s"
31
    print "graph_category Bitcoin"
31
    print "graph_category htc"
32 32
    for worker in workers:
33 33
        label = workers[worker]['worker_name']
34 34
        print label + ".label " + label
plugins/bitcoin/slush_hashrate_
25 25
    print "graph_title Slush Hashrate"
26 26
    print "graph_args --upper-limit 3000 -l 0"
27 27
    print "graph_vlabel MHash/s"
28
    print "graph_category Bitcoin"
28
    print "graph_category htc"
29 29
    for worker in workers:
30 30
        label = worker.replace(".","_")
31 31
        print label + ".label " +label
plugins/bitcoin/slush_reward_
24 24
    print "graph_title Slush Rewards"
25 25
    print "graph_args -l 0"
26 26
    print "graph_vlabel BTC"
27
    print "graph_category Bitcoin"
27
    print "graph_category htc"
28 28
    print "unconfirmed_reward.label Unconfirmed Reward"
29 29
    print "estimated_reward.label Estimeated Reward"
30 30
    print "confirmed_reward.label Confirmed Reward"
plugins/boinc/boinc_credit
205 205
    print <<EOF;
206 206
graph_args --base 1000 --logarithmic
207 207
graph_vlabel Cobblestones
208
graph_category boinc
208
graph_category htc
209 209
graph_title BOINC Total Credit
210 210
EOF
211 211
    foreach ( sort { $a->{id} <=> $b->{id} } @projdata ) {
plugins/boinc/boinc_estwk
101 101
  }
102 102

  
103 103
  print "graph_title BOINC work cache estimation\n";
104
  print "graph_category BOINC\n";
104
  print "graph_category htc\n";
105 105
  print "graph_args --base 1000 -l 0 --alt-autoscale-max\n";
106 106
  print "graph_vlabel Hours\n";
107 107
  print "graph_scale no\n";
plugins/boinc/boinc_processes
98 98
  while (chomp($reply = <$client>) && ($reply ne "</boinc_gui_rpc_reply>")) {
99 99
    if ($reply =~ /<domain_name>(.*)<\/domain_name>/) {
100 100
      print "graph_title BOINC task progress [$1]\n";
101
      print "graph_category boinc\n";
101
      print "graph_category htc\n";
102 102
      print "graph_args -l 0\n";
103 103
      print "graph_vlabel %\n";
104 104
    }  
plugins/boinc/boinc_projs
228 228
  }
229 229

  
230 230
  print "graph_title Running BOINC processes\n";
231
  print "graph_category BOINC\n";
231
  print "graph_category htc\n";
232 232
  print "graph_args --base 1000 -l 0\n";
233 233
  print "graph_vlabel BOINC applications\n";
234 234
  print "graph_total Total\n";
plugins/boinc/boinc_wus
238 238
  }
239 239

  
240 240
  print "graph_title BOINC work status\n";
241
  print "graph_category BOINC\n";
241
  print "graph_category htc\n";
242 242
  print "graph_args --base 1000 -l 0\n";
243 243
  print "graph_vlabel Workunits\n";
244 244
  print "graph_total total\n";
plugins/condor/condor_activity_
68 68
	echo "graph_vlabel VMs"
69 69
	echo "graph_scale no"
70 70
	echo "graph_info Shows slot activity from condor_status."
71
	echo "graph_category Condor"
71
	echo "graph_category htc"
72 72
	echo "graph_period second"
73 73
	echo "idl.label Idle"
74 74
	echo "idl.draw AREA"
plugins/condor/condor_ops_
68 68
	echo 'graph_vlabel MIPS, MFLOPS'
69 69
	echo 'graph_scale no'
70 70
	echo 'graph_info Shows MIPS and MFLOPS from condor_status.'
71
	echo 'graph_category Condor'
71
	echo 'graph_category htc'
72 72
	echo 'graph_period second'
73 73
	echo 'mips_cur.label MIPS claimed'
74 74
	echo 'mips_cur.draw LINE2'
......
108 108
#       Machines         MIPS       KFLOPS   AvgLoadAvg
109 109
# Total       28       104576     29093286   0.960
110 110
eval $CS $CONS -totals -server -claimed | awk 'BEGIN { mipsc=0; mflopsc=0 } /Total/ { mipsc = $3; kflopsc = $4; mflopsc = int(kflopsc/1000) } END {print "mips_cur.value " mipsc "\nmflops_cur.value " mflopsc}'
111
															    
plugins/condor/condor_queue_
70 70
    echo "graph_vlabel Jobs"
71 71
    echo "graph_scale no"
72 72
    echo "graph_info Shows global Condor queue from condor_q -g."
73
    echo "graph_category Condor"
73
    echo "graph_category htc"
74 74
    echo "graph_period second"
75 75
    echo "held.label Held"
76 76
    echo "held.draw AREA"
......
93 93

  
94 94
# example: 3076 jobs; 3052 idle, 24 running, 0 held
95 95
$CQ -g $OPTIONS | tail -n1 | awk '{print "queue.value " $1 "\nheld.value " $7 "\nrunning.value " $5 "\nidle.value " $3}'
96
				  
plugins/condor/condor_states_
67 67
	echo 'graph_vlabel VMs'
68 68
	echo 'graph_scale no'
69 69
	echo 'graph_info Shows Condor slot states from condor_status.'
70
	echo 'graph_category Condor'
70
	echo 'graph_category htc'
71 71
	echo 'graph_period second'
72 72
	echo 'Preempting.label Preempting'
73 73
	echo 'Preempting.draw AREA'
......
98 98
#   x86_64/LINUX     8     0       8         0       0          0        0
99 99
#          Total    30     1      26         3       0          0        0
100 100
eval $CS $CONS -total | awk '/Total   / {print "Preempting.value " $7 "\nClaimed.value " $4 "\nMatched.value " $6 "\nUnclaimed.value " $5 "\nOwner.value " $3 }'
101
				    
plugins/heimdal/heimdal_kdc_bandwidth
47 47
    print "graph_args --base 1024\n";
48 48
    print "graph_vlabel bytes / \${graph_period}\n";
49 49
    print "graph_scale yes\n";
50
    print "graph_category Heimdal\n";
50
    print "graph_category auth\n";
51 51
    print "bw.label Bytes sent\n";
52 52
    print "bw.type ABSOLUTE\n";
53 53
    print "bw.min 0\n";
plugins/heimdal/heimdal_kdc_requests
94 94
    print "graph_args --base 1000\n";
95 95
    print "graph_vlabel requests / \${graph_period}\n";
96 96
    print "graph_scale yes\n";
97
    print "graph_category Heimdal\n";
97
    print "graph_category auth\n";
98 98
    print "ipv4.label IPv4 requests\n";
99 99
    print "ipv4.type ABSOLUTE\n";
100 100
    print "ipv4.min 0\n";
plugins/wordpress/wordpress
56 56

  
57 57
if [ "$1" = "config" ]; then
58 58
	echo 'graph_title Wordpress average'
59
  echo 'graph_category cms'
59 60
	echo 'graph_order posts comments pingbacks users'
60 61
	echo 'graph_vlabel Wordpress'
61 62
	echo 'graph_info Some Statistics of Wordpress'
plugins/wordpress/wordpress-mu-or-network
59 59
if [ "$1" = "config" ]; then
60 60
        echo 'graph_title Wordpress average'
61 61
        echo 'graph_order posts comments pingbacks users'
62
        echo 'graph_category cms'
62 63
        echo 'graph_vlabel Wordpress'
63 64
        echo 'graph_info Some Statistics of Wordpress'
64 65
        echo 'posts.label Posts'
plugins/wordpress/wordpress-multisite
78 78
	echo "graph_title Wordpress Mulitsite"
79 79
	echo "graph_order instances users posts comments pingbacks"
80 80
	echo "graph_vlabel Wordpress"
81
	echo "graph_category Wordpress"
81
	echo "graph_category cms"
82 82
	echo "graph_info Some Statistics of Wordpress"
83 83
	echo "instances.label Instances"
84 84
	echo "users.label Users"
plugins/wordpress/wordpress2
72 72
	$d["tbpf"] = $table_prefix;
73 73
}
74 74

  
75
// In which category it should be displayed
76
$category = "other";
77

  
78 75
if($argv[1] == "config") {
79 76
	echo 'graph_title wordpress statistic of '.$d["name"]."\n";
80 77
	echo 'graph_order users posts comments pingbacks'."\n";
81 78
	echo 'graph_vlabel Wordpress'."\n";
82 79
	echo 'graph_info some wordpress statistics of '.$d["name"]."\n";
83
	echo 'graph_category '.$category."\n";
80
	echo 'graph_category cms'."\n";
84 81
	echo 'users.label Users'."\n";
85 82
	echo 'posts.label Posts'."\n";
86 83
	echo 'posts.draw LINE3'."\n";

Formats disponibles : Unified diff