Skip to content

Commit

Permalink
Category Tree: Reduce number of categories
Browse files Browse the repository at this point in the history
rackspace -> cloud (rackspace)
openvpn -> network (openvpn)
rethinkdb -> db (rethinkdb)
glance -> cloud (glance)
  • Loading branch information
dipohl committed Feb 23, 2017
1 parent eaf6c2d commit 6aa977b
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion plugins/glance/glance_size_
Expand Up @@ -78,7 +78,7 @@ def print_config(tenant):
print 'graph_info This graph shows the used size in glance for tenant %s' % tenant
print 'graph_vlabel Bytes'
print 'graph_args --base 1024 --lower-limit 0'
print 'graph_category glance'
print 'graph_category cloud'
print '%s.label %s' % (tenant, get_name_from_tenant(tenant))
print '%s.draw LINE2' % tenant
print '%s.info %s MBytes' % (tenant, tenant)
Expand Down
2 changes: 1 addition & 1 deletion plugins/glance/glance_status
Expand Up @@ -44,7 +44,7 @@ def print_config():
print 'graph_title Glance images status'
print 'graph_vlabel images'
print 'graph_args --lower-limit 0'
print 'graph_category glance'
print 'graph_category cloud'
print 'graph_scale no'
print 'graph_info This graph show number of images by status'

Expand Down
2 changes: 1 addition & 1 deletion plugins/services/ircd → plugins/ircd/ircd
Expand Up @@ -23,7 +23,7 @@ if (isset($argv['1']) && $argv['1'] == "config") {
print "host_name ".php_uname('n')."\n";

print "graph_title IRCd Status\n";
print "graph_category Services\n";
print "graph_category chat\n";
print "graph_order clients channels operators\n";
print "graph_args --base 1000 -l 0\n";

Expand Down
2 changes: 1 addition & 1 deletion plugins/openvpn/openvpn_as_mtime
Expand Up @@ -56,7 +56,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Time in minutes'
echo 'graph_scale no'
echo 'graph_category OpenVPN'
echo 'graph_category network'
echo 'graph_info Indicate the medium time of the logged users.'

echo "time.label Users"
Expand Down
2 changes: 1 addition & 1 deletion plugins/openvpn/openvpn_as_traffic
Expand Up @@ -49,7 +49,7 @@ if [ "$1" = "config" ]; then
echo "graph_title OpenVPN traffic"
echo 'graph_args --base 1000'
echo 'graph_vlabel Bytes in (-) / out (+)'
echo 'graph_category OpenVPN'
echo 'graph_category network'
echo "graph_info OpenVPN traffic"


Expand Down
2 changes: 1 addition & 1 deletion plugins/openvpn/openvpn_as_ttime
Expand Up @@ -57,7 +57,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Time in minutes'
echo 'graph_scale no'
echo 'graph_category OpenVPN'
echo 'graph_category network'
echo 'graph_info Indicate the user logged time.'

# If none, print 0
Expand Down
2 changes: 1 addition & 1 deletion plugins/openvpn/openvpn_as_users
Expand Up @@ -52,7 +52,7 @@ if [ "$1" = "config" ]; then
echo 'graph_args --base 1000 -l 0 '
echo 'graph_vlabel Users'
echo 'graph_scale no'
echo 'graph_category OpenVPN'
echo 'graph_category network'
echo 'graph_info Indicate the number of vpn users and the license limit.'

echo "users.label Users"
Expand Down
4 changes: 2 additions & 2 deletions plugins/openvpn/openvpn_multi
Expand Up @@ -38,7 +38,7 @@ sub config {
print "graph_title OpenVPN traffic\n";
print "graph_args --base 1024 --lower-limit 0\n";
print "graph_vlabel Bytes Out (-) / In (+) per \${graph_period}\n";
print "graph_category openvpn\n";
print "graph_category network\n";
print "in.label recv\n";
print "in.type DERIVE\n";
print "in.min 0\n";
Expand All @@ -63,7 +63,7 @@ sub config {
print "graph_title OpenVPN traffic for $name\n";
print "graph_args --base 1024 --lower-limit 0\n";
print "graph_vlabel Bytes Out (-) / In (+) per \${graph_period}\n";
print "graph_category openvpn\n";
print "graph_category network\n";
print "in.label recv\n";
print "in.type DERIVE\n";
print "in.min 0\n";
Expand Down
8 changes: 4 additions & 4 deletions plugins/puma/puma_
Expand Up @@ -22,7 +22,7 @@ if [ "$mode" = "memory" ]; then
if [ "$1" = "config" ]; then
echo "graph_title Total Puma Memory"
echo "graph_vlabel Total RAM"
echo "graph_category puma"
echo "graph_category webserver"
echo "graph_args --base 1024"
echo "ram.label Total RAM"
exit 0
Expand All @@ -37,7 +37,7 @@ elif [ "$mode" = "processes" ]; then
if [ "$1" = "config" ]; then
echo "graph_title puma Processes"
echo "graph_vlabel Processes"
echo "graph_category puma"
echo "graph_category webserver"
echo "processes.label active processes"
else
printf "processes.value %s\n" "$(ps awwwux | egrep "puma.* worker" | grep -v grep | wc -l)"
Expand All @@ -48,7 +48,7 @@ elif [ "$mode" = "average" ]; then
echo 'graph_title Puma Average Process Size'
echo 'graph_args --base 1024 -l 0 '
echo 'graph_vlabel Average Process Size'
echo 'graph_category puma'
echo 'graph_category webserver'
echo 'puma_average.label Average Process Size'
echo 'puma_average.draw LINE2'
echo 'puma_average.info The average process size for puma'
Expand All @@ -57,4 +57,4 @@ elif [ "$mode" = "average" ]; then
exit 0
fi
fi
exit 0
exit 0
2 changes: 1 addition & 1 deletion plugins/rackspace/rackspace_cdn_count.php
Expand Up @@ -25,7 +25,7 @@ function SplitTwice($content,$first,$second) {
if ($argv[1]=='config'){
print "graph_title Rackspace CDN files count\n";
print "graph_vlabel Files Count\n";
print "graph_category rackspace\n";
print "graph_category cloud\n";
print "count.label files count\n";
print "graph_args --base 1000\n";

Expand Down
2 changes: 1 addition & 1 deletion plugins/rackspace/rackspace_cdn_size.php
Expand Up @@ -24,7 +24,7 @@ function SplitTwice($content,$first,$second) {
if ($argv[1]=='config'){
print "graph_title Rackspace CDN storage usage\n";
print "graph_vlabel CDN storage usage\n";
print "graph_category rackspace\n";
print "graph_category cloud\n";
print "usage.label storage usage\n";
print "graph_args --base 1024\n";

Expand Down
2 changes: 1 addition & 1 deletion plugins/rethinkdb/rethinkdb_node_io
Expand Up @@ -69,7 +69,7 @@ def print_config(servername):
print("graph_title RethinkDB on '%s'- Local Database IOPS and Queries" % servername)
print("graph_args --base 1000 -l 0")
print("graph_vlabel Operations / second")
print("graph_category rethinkdb")
print("graph_category db")
print("total_qps.label queries per sec")
print("total_qps.type COUNTER")
print("total_rdps.label read docs per sec")
Expand Down
2 changes: 1 addition & 1 deletion plugins/services/hostdenied → plugins/ssh/hostdenied
Expand Up @@ -62,7 +62,7 @@ cat << EOF
graph_title denied sshd access in $DENY
graph_args --base 1000 -l 0
graph_vlabel Hosts denied
graph_category services
graph_category security
age0.label added last 24h
age0.draw AREA
age0.colour ${COLOUR[0]}
Expand Down
File renamed without changes.

0 comments on commit 6aa977b

Please sign in to comment.