From 29bdf34eaeaf97469e39ec7e22ed45c9431b5ac2 Mon Sep 17 00:00:00 2001 From: dipohl Date: Wed, 22 Feb 2017 02:54:01 +0100 Subject: [PATCH] Category Tree: reduce number of categories --- plugins/{network => 2wire}/2wire | 20 +++++++++---------- plugins/{network => accounting}/accounting_ | 4 ++-- plugins/cherokee/munin-plugin-for-cherokee | 2 +- plugins/drupal/drupal_files_total.php | 2 +- plugins/drupal/drupal_forums_total.php | 2 +- .../drupal/drupal_node_distribution_count.php | 2 +- plugins/drupal/drupal_page_speed_test.php | 2 +- plugins/drupal/drupal_users_online.php | 2 +- plugins/drupal/drupal_users_total.php | 2 +- plugins/fax/faxstat | 2 +- plugins/fr24/fr24 | 2 +- plugins/joomla/joomla-sessions | 2 +- plugins/postgresql/pg__connections | 2 +- plugins/postgresql/pgbouncer_ | 12 +++++------ .../postgresql/pgbouncer_client_connections | 2 +- plugins/postgresql/pgbouncer_maxwait | 2 +- .../postgresql/pgbouncer_server_connections | 2 +- plugins/postgresql/postgres_block_read_ | 2 +- plugins/postgresql/postgres_locks | 2 +- plugins/postgresql/postgres_queries2_ | 2 +- plugins/postgresql/postgres_queries3_ | 2 +- plugins/postgresql/postgres_space_ | 2 +- plugins/postgresql/postgresql_active_backends | 2 +- .../postgresql_active_backends_by_database | 2 +- plugins/postgresql/postgresql_active_locks | 2 +- plugins/postgresql/postgresql_database_ratio | 2 +- plugins/postgresql/postgresql_database_size | 2 +- plugins/postgresql/postgresql_tablespace_size | 2 +- plugins/postgresql/postgresql_transactions | 2 +- 29 files changed, 44 insertions(+), 44 deletions(-) rename plugins/{network => 2wire}/2wire (98%) rename plugins/{network => accounting}/accounting_ (98%) diff --git a/plugins/network/2wire b/plugins/2wire/2wire similarity index 98% rename from plugins/network/2wire rename to plugins/2wire/2wire index 874e2133..f08bf616 100755 --- a/plugins/network/2wire +++ b/plugins/2wire/2wire @@ -66,7 +66,7 @@ graph_args --base 1000 -l 0 #graph_vlabel number of sessions in (-) / out (+) graph_vlabel number of sessions graph_scale no -graph_category 2wire +graph_category network graph_total Total graph_printf %.0lf @@ -84,7 +84,7 @@ graph_title 2wire NAT session type graph_args --base 1000 -l 0 graph_vlabel number of sessions graph_scale no -graph_category 2wire +graph_category network graph_total Total graph_printf %.0lf @@ -99,7 +99,7 @@ graph_title 2wire session uptime graph_args --base 1000 -l 0 graph_vlabel Uptime in days graph_scale no -graph_category 2wire +graph_category network sessionUptime.label Uptime sessionUptime.draw AREA @@ -112,7 +112,7 @@ graph_title 2wire DSL output power graph_args --base 1000 graph_vlabel dBmV graph_scale no -graph_category 2wire +graph_category network powerDown.label Down #powerDown.graph no @@ -124,7 +124,7 @@ graph_title 2wire DSL details graph_args --base 1000 graph_vlabel dB graph_scale no -graph_category 2wire +graph_category network noiseM.label Noise margin attenuation.label Attenuation @@ -136,7 +136,7 @@ graph_title 2wire Errors Time graph_args --base 1000 graph_vlabel s graph_scale no -graph_category 2wire +graph_category network cumSecErrors.label Cumulative Seconds w/Errors cumSecSevErrors.label Cumulative Seconds w/Severe Errors @@ -147,7 +147,7 @@ graph_title 2wire Block Correction graph_args --base 1000 graph_vlabel blocks/s graph_scale no -graph_category 2wire +graph_category network correctedBlocks.label Corrected Blocks correctedBlocks.type DERIVE @@ -160,7 +160,7 @@ multigraph 2wire_dsl_traffic graph_title 2wire DSL traffic graph_args --base 1024 -l 0 graph_vlabel Bytes in (-) / out (+) per second -graph_category 2wire +graph_category network receive.label Bps receive.type DERIVE receive.min 0 @@ -176,7 +176,7 @@ multigraph 2wire_dsl_bandwidth_monthly graph_title 2wire DSL bandwidth usage (monthly) graph_args --base 1024 -l 0 -M graph_vlabel Bytes -graph_category 2wire +graph_category network down.label Down up.label Up @@ -192,7 +192,7 @@ multigraph 2wire_dsl_bandwidth_weekly graph_title 2wire DSL bandwidth usage (weekly) graph_args --base 1024 -l 0 -M graph_vlabel Bytes -graph_category 2wire +graph_category network down.label Down up.label Up diff --git a/plugins/network/accounting_ b/plugins/accounting/accounting_ similarity index 98% rename from plugins/network/accounting_ rename to plugins/accounting/accounting_ index 79a0635a..f6fd2116 100644 --- a/plugins/network/accounting_ +++ b/plugins/accounting/accounting_ @@ -150,7 +150,7 @@ if [ "$1" = "config" ]; then echo 'graph_args --base 1024 -l 0' echo 'graph_vlabel bytes per ${graph_period}' echo 'graph_order tcpIN udpIN icmpIN' - echo 'graph_category accounting' + echo 'graph_category network' echo 'tcpIN.label tcp received' echo 'tcpIN.cdef tcpIN,8,*' echo 'tcpIN.type DERIVE' @@ -172,7 +172,7 @@ if [ "$1" = "config" ]; then echo 'graph_args --base 1024 -l 0' echo 'graph_vlabel bytes per ${graph_period}' echo 'graph_order tcpOUT udpOUT icmpOUT' - echo 'graph_category accounting' + echo 'graph_category network' echo 'tcpOUT.label tcp sent' echo 'tcpOUT.cdef tcpOUT,8,*' echo 'tcpOUT.type DERIVE' diff --git a/plugins/cherokee/munin-plugin-for-cherokee b/plugins/cherokee/munin-plugin-for-cherokee index 8dbacac8..17e878bf 100755 --- a/plugins/cherokee/munin-plugin-for-cherokee +++ b/plugins/cherokee/munin-plugin-for-cherokee @@ -93,7 +93,7 @@ def munin_values(res): def munin_config(response): global type - print "graph_category cherokee" + print "graph_category webserver" if type == "rate": print "graph_title Cherokee Data Transfer Rate" print "graph_vlabel Bits sent(+) / received(-) per ${graph_period}" diff --git a/plugins/drupal/drupal_files_total.php b/plugins/drupal/drupal_files_total.php index 0cfe9604..dc8edecc 100755 --- a/plugins/drupal/drupal_files_total.php +++ b/plugins/drupal/drupal_files_total.php @@ -45,7 +45,7 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_title Drupal Total Files\n"; echo "graph_args --base 1000 --lower-limit 0\n"; echo "graph_vlabel Files Count / ${graph_period}\n"; - echo "graph_category Drupal\n"; + echo "graph_category cms\n"; echo "graph_scale no\n"; echo "graph_info Displays the online files uploaded to your Drupal site\n"; diff --git a/plugins/drupal/drupal_forums_total.php b/plugins/drupal/drupal_forums_total.php index 6a73d2ee..fa221c30 100755 --- a/plugins/drupal/drupal_forums_total.php +++ b/plugins/drupal/drupal_forums_total.php @@ -45,7 +45,7 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_title Drupal Total Forums\n"; echo "graph_args --base 1000 --lower-limit 0\n"; echo "graph_vlabel Total Forums and comments Count / ${graph_period}\n"; - echo "graph_category Drupal\n"; + echo "graph_category cms\n"; echo "graph_scale no\n"; echo "graph_info Displays the sum of forums and comments made in your Drupal site\n"; diff --git a/plugins/drupal/drupal_node_distribution_count.php b/plugins/drupal/drupal_node_distribution_count.php index 2e282e2d..1c4e52db 100755 --- a/plugins/drupal/drupal_node_distribution_count.php +++ b/plugins/drupal/drupal_node_distribution_count.php @@ -55,7 +55,7 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_title Drupal Node Distribution Count\n"; echo "graph_args --base 1000 --lower-limit 0\n"; echo "graph_vlabel Node Distribution Count / ${graph_period}\n"; - echo "graph_category Drupal\n"; + echo "graph_category cms\n"; echo "graph_scale nol\n"; echo "graph_info Displays the nodes content type distribution count in your Drupal site\n"; diff --git a/plugins/drupal/drupal_page_speed_test.php b/plugins/drupal/drupal_page_speed_test.php index 2041d3a8..c89ad3d9 100644 --- a/plugins/drupal/drupal_page_speed_test.php +++ b/plugins/drupal/drupal_page_speed_test.php @@ -65,7 +65,7 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_title Drupal Page Speed Test\n"; echo "graph_args --base 1000 --lower-limit 0\n"; echo "graph_vlabel Page Load Time / ${graph_period}\n"; - echo "graph_category Drupal\n"; + echo "graph_category cms\n"; echo "graph_scale no\n"; echo "graph_info Displays the time it took for several pages to load\n"; diff --git a/plugins/drupal/drupal_users_online.php b/plugins/drupal/drupal_users_online.php index b682f163..72e2faf4 100755 --- a/plugins/drupal/drupal_users_online.php +++ b/plugins/drupal/drupal_users_online.php @@ -45,7 +45,7 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_title Drupal Online Users\n"; echo "graph_args --base 1000 --lower-limit 0\n"; echo "graph_vlabel Online Users Count / ${graph_period}\n"; - echo "graph_category Drupal\n"; + echo "graph_category cms\n"; echo "graph_scale no\n"; echo "graph_info Displays the online users, members and anonymous, in your Drupal site\n"; diff --git a/plugins/drupal/drupal_users_total.php b/plugins/drupal/drupal_users_total.php index 0521b419..9cf29929 100755 --- a/plugins/drupal/drupal_users_total.php +++ b/plugins/drupal/drupal_users_total.php @@ -45,7 +45,7 @@ if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_title Drupal Total Users\n"; echo "graph_args --base 1000 --lower-limit 0\n"; echo "graph_vlabel Total Users Count / ${graph_period}\n"; - echo "graph_category Drupal\n"; + echo "graph_category cms\n"; echo "graph_scale no\n"; echo "graph_info Displays the sum of users, as well as disabled count, in your Drupal site\n"; diff --git a/plugins/fax/faxstat b/plugins/fax/faxstat index 7c0deefb..75f99366 100755 --- a/plugins/fax/faxstat +++ b/plugins/fax/faxstat @@ -32,7 +32,7 @@ JOBTYPES="Running Waiting Done" if [ "$1" = "config" ]; then echo 'graph_title Fax Jobs' echo 'graph_vlabel Jobs in Queue' - echo 'graph_category FAX' + echo 'graph_category other' for i in $JOBTYPES; do echo "$i.info Number of jobs in $i queue." echo "$i.label $i" diff --git a/plugins/fr24/fr24 b/plugins/fr24/fr24 index 6e93266b..ba7f29dc 100755 --- a/plugins/fr24/fr24 +++ b/plugins/fr24/fr24 @@ -39,7 +39,7 @@ case $1 in config) echo "graph_title Number of planes in sight graph_info Number of planes in sight with DVB-T receiver. -graph_category fr24 +graph_category other graph_vlabel Number of planes planes.label planes" exit 0;; diff --git a/plugins/joomla/joomla-sessions b/plugins/joomla/joomla-sessions index f98c7354..e93f38dd 100755 --- a/plugins/joomla/joomla-sessions +++ b/plugins/joomla/joomla-sessions @@ -69,7 +69,7 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config') { print <