1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 10:39:53 +00:00

Category Tree: Reduce number of categories

This commit is contained in:
dipohl 2017-02-21 17:11:23 +01:00
parent d5440def19
commit 3c98d06933
19 changed files with 25 additions and 25 deletions

View file

@ -53,7 +53,7 @@ if (! @urls) {
#output configuration and exit - required by Munin #output configuration and exit - required by Munin
if (exists $ARGV[0] and $ARGV[0] eq "config") { if (exists $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title $domain Site Response Times - $ENV{'action'}\n"; print "graph_title $domain Site Response Times - $ENV{'action'}\n";
print "graph_category apache\n"; print "graph_category webserver\n";
print "graph_vlabel request time (seconds)\n"; print "graph_vlabel request time (seconds)\n";
print "graph_info Response times for public areas of $domain.\n"; print "graph_info Response times for public areas of $domain.\n";

View file

@ -43,7 +43,7 @@ do_ () {
do_config () { do_config () {
echo "graph_title Average page execution time" echo "graph_title Average page execution time"
echo "graph_vlabel Seconds" echo "graph_vlabel Seconds"
echo "graph_category apache" echo "graph_category webserver"
echo "graph_args --base 1000 -l 0" echo "graph_args --base 1000 -l 0"
echo "graph_info Average page execution time" echo "graph_info Average page execution time"
@ -56,4 +56,4 @@ case $1 in
eval do_$1 eval do_$1
esac esac
exit $? exit $?

View file

@ -129,7 +129,7 @@ sub response_error{
if( $ARGV[0] eq "config" ){ if( $ARGV[0] eq "config" ){
print "graph_title ASSP - Envelope Recipient Statistics\n"; print "graph_title ASSP - Envelope Recipient Statistics\n";
print "graph_vlabel Counter in k,m\n"; print "graph_vlabel Counter in k,m\n";
print "graph_category ASSP\n"; print "graph_category spamfilter\n";
my $label; my $label;
foreach my $key ( @muninlabel ){ foreach my $key ( @muninlabel ){

View file

@ -113,7 +113,7 @@ if( $ARGV[0] eq "config" ){
if( $count == 0 ){ # General Runtime Information if( $count == 0 ){ # General Runtime Information
print "graph_title ASSP - General Runtime Information\n"; print "graph_title ASSP - General Runtime Information\n";
print "graph_vlabel Counter in Percent\n"; print "graph_vlabel Counter in Percent\n";
print "graph_category ASSP\n"; print "graph_category spamfilter\n";
} }
$label = $key; $label = $key;
$label =~ s/\s/\_/g; $label =~ s/\s/\_/g;

View file

@ -141,7 +141,7 @@ sub response_error{
if( $ARGV[0] eq "config" ){ if( $ARGV[0] eq "config" ){
print "graph_title ASSP - Message Statistics\n"; print "graph_title ASSP - Message Statistics\n";
print "graph_vlabel Counter in k,m\n"; print "graph_vlabel Counter in k,m\n";
print "graph_category ASSP\n"; print "graph_category spamfilter\n";
my $label; my $label;
foreach my $key ( @muninlabel ){ foreach my $key ( @muninlabel ){

View file

@ -119,7 +119,7 @@ sub response_error{
if( $ARGV[0] eq "config" ){ if( $ARGV[0] eq "config" ){
print "graph_title ASSP - SMTP Connection Statistics\n"; print "graph_title ASSP - SMTP Connection Statistics\n";
print "graph_vlabel Counter in k,m\n"; print "graph_vlabel Counter in k,m\n";
print "graph_category ASSP\n"; print "graph_category spamfilter\n";
my $label; my $label;
foreach my $key ( @muninlabel ){ foreach my $key ( @muninlabel ){

View file

@ -113,7 +113,7 @@ if( $ARGV[0] eq "config" ){
if( $count == 0 ){ # General Runtime Information if( $count == 0 ){ # General Runtime Information
print "graph_title ASSP - General Runtime Information\n"; print "graph_title ASSP - General Runtime Information\n";
print "graph_vlabel Counter in Percent\n"; print "graph_vlabel Counter in Percent\n";
print "graph_category ASSP\n"; print "graph_category spamfilter\n";
} }
$label = $key; $label = $key;
$label =~ s/\s/\_/g; $label =~ s/\s/\_/g;

View file

@ -8,7 +8,7 @@ MC_PORT=${0##*_}
if [ "$1" = "config" ] if [ "$1" = "config" ]
then then
printf 'graph_title Minecraft-Server (Port %s)\n' ${MC_PORT} printf 'graph_title Minecraft-Server (Port %s)\n' ${MC_PORT}
printf 'graph_catecory games' printf 'graph_category games'
printf 'graph_vlabel Anzahl\n' printf 'graph_vlabel Anzahl\n'
printf 'users.label Benutzer\n' printf 'users.label Benutzer\n'
printf 'ramusage.label Verwendeter RAM in GiB\n' printf 'ramusage.label Verwendeter RAM in GiB\n'

View file

@ -57,7 +57,7 @@ if ( exists $ARGV[0] and $ARGV[0] eq "autoconf" ) {
if ( exists $ARGV[0] and $ARGV[0] eq "config" ) { if ( exists $ARGV[0] and $ARGV[0] eq "config" ) {
print "graph_title NGINX hit rates\n"; print "graph_title NGINX hit rates\n";
print "graph_args -l 0 -u 100 --rigid\n"; print "graph_args -l 0 -u 100 --rigid\n";
print "graph_category nginx\n"; print "graph_category webserver\n";
print "graph_vlabel %\n"; print "graph_vlabel %\n";
print "hit.label Hits\n"; print "hit.label Hits\n";
print "hit.draw AREA\n"; print "hit.draw AREA\n";

View file

@ -64,7 +64,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
# Parent graph declaration # Parent graph declaration
print "multigraph nginx_cache_multi_%s" % graph_type print "multigraph nginx_cache_multi_%s" % graph_type
print "graph_title Nginx cache status (%s)" % graph_type print "graph_title Nginx cache status (%s)" % graph_type
print "graph_category nginx" print "graph_category webserver"
print "graph_vlabel %s" % vlabel print "graph_vlabel %s" % vlabel
if graph_args: if graph_args:
print(graph_args) print(graph_args)
@ -80,7 +80,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
if key != "TOTAL": if key != "TOTAL":
print "multigraph nginx_cache_multi_%s.%s" % (graph_type, key.lower()) print "multigraph nginx_cache_multi_%s.%s" % (graph_type, key.lower())
print "graph_title Nginx cache status (%s) - %s" % (graph_type, key.capitalize()) print "graph_title Nginx cache status (%s) - %s" % (graph_type, key.capitalize())
print "graph_category nginx" print "graph_category webserver"
print "graph_vlabel %s" % vlabel print "graph_vlabel %s" % vlabel
print "%s.label %s" % (key.lower(), key.capitalize()) print "%s.label %s" % (key.lower(), key.capitalize())
print "%s.draw LINE1" % key.lower() print "%s.draw LINE1" % key.lower()

View file

@ -70,7 +70,7 @@ if ( exists $ARGV[0] and $ARGV[0] eq "config" )
{ {
print "graph_title NGINX status: $URL\n"; print "graph_title NGINX status: $URL\n";
print "graph_args --base 1000\n"; print "graph_args --base 1000\n";
print "graph_category nginx\n"; print "graph_category webserver\n";
print "graph_vlabel Connections\n"; print "graph_vlabel Connections\n";
print "reqpsec.label Request/sec.\n"; print "reqpsec.label Request/sec.\n";

View file

@ -132,7 +132,7 @@ if (exists $ARGV[0] and $ARGV[0] eq "autoconf" ) {
## Munin config method. ## Munin config method.
if (exists $ARGV[0] and $ARGV[0] eq "config") { if (exists $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title nginx requests/connection handled\n"; print "graph_title nginx requests/connection handled\n";
print "graph_category nginx\n"; print "graph_category webserver\n";
print "graph_vlabel Request/Connection\n"; print "graph_vlabel Request/Connection\n";
print "connection_request.label requests/connection\n"; print "connection_request.label requests/connection\n";
print "connection_request.min 0\n"; print "connection_request.min 0\n";

View file

@ -111,7 +111,7 @@ do_ () { # Fetch
do_config () { do_config () {
echo "graph_title $logpattern - Nginx errors per minute" echo "graph_title $logpattern - Nginx errors per minute"
echo 'graph_vlabel pages with http error codes / ${graph_period}' echo 'graph_vlabel pages with http error codes / ${graph_period}'
echo "graph_category nginx" echo "graph_category webserver"
echo "graph_period minute" echo "graph_period minute"
echo "graph_info This graph shows nginx error amount per minute" echo "graph_info This graph shows nginx error amount per minute"
for k in ${!http_codes[@]}; do for k in ${!http_codes[@]}; do

View file

@ -75,7 +75,7 @@ MIT
if (exists $ARGV[0] and $ARGV[0] eq "config") { if (exists $ARGV[0] and $ARGV[0] eq "config") {
print "graph_title nginx RAM usage\n"; print "graph_title nginx RAM usage\n";
print "graph_vlabel RAM\n"; print "graph_vlabel RAM\n";
print "graph_category nginx\n"; print "graph_category webserver\n";
print "ram.label RAM\n"; print "ram.label RAM\n";
print "graph_args --base 1024\n"; print "graph_args --base 1024\n";

View file

@ -18,7 +18,7 @@ if len(sys.argv) > 1:
if sys.argv[1]=="config": if sys.argv[1]=="config":
print "graph_args --base 1000 -l 0" print "graph_args --base 1000 -l 0"
print "graph_title NGINX Upstream times" print "graph_title NGINX Upstream times"
print "graph_category nginx" print "graph_category webserver"
print "graph_vlabel milliseconds" print "graph_vlabel milliseconds"
print "upstream.label upstream" print "upstream.label upstream"
print "upstream.warning 5000" print "upstream.warning 5000"

View file

@ -133,7 +133,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s" % siteName.replace(".", "_") print "multigraph nginx_upstream_multi_%s" % siteName.replace(".", "_")
print "graph_title Requests number" print "graph_title Requests number"
print "graph_vlabel rps" print "graph_vlabel rps"
print "graph_category nginx" print "graph_category webserver"
for upstream in upstreams.keys(): for upstream in upstreams.keys():
print "us%s_requests.label %s" % (sanitize(upstream), upstream) print "us%s_requests.label %s" % (sanitize(upstream), upstream)
@ -144,7 +144,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_requests" % (sanitize(siteName), sanitize(upstream)) print "multigraph nginx_upstream_multi_%s.%s_requests" % (sanitize(siteName), sanitize(upstream))
print "graph_title Requests number - %s" % upstream print "graph_title Requests number - %s" % upstream
print "graph_vlabel rps" print "graph_vlabel rps"
print "graph_category nginx" print "graph_category webserver"
print "us%s_requests.label %s" % (sanitize(upstream), upstream) print "us%s_requests.label %s" % (sanitize(upstream), upstream)
print "" print ""
@ -155,7 +155,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_times" % (sanitize(siteName), sanitize(upstream)) print "multigraph nginx_upstream_multi_%s.%s_times" % (sanitize(siteName), sanitize(upstream))
print "graph_title Request time - %s" % upstream print "graph_title Request time - %s" % upstream
print "graph_vlabel sec." print "graph_vlabel sec."
print "graph_category nginx" print "graph_category webserver"
print "us%s_times.label average" % (sanitize(upstream)) print "us%s_times.label average" % (sanitize(upstream))
for percentile in percentiles: for percentile in percentiles:
print "us%s_times_percentile_%s.label %s-percentile" % (sanitize(upstream), percentile, percentile) print "us%s_times_percentile_%s.label %s-percentile" % (sanitize(upstream), percentile, percentile)
@ -168,7 +168,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_statuses" % (sanitize(siteName), sanitize(upstream)) print "multigraph nginx_upstream_multi_%s.%s_statuses" % (sanitize(siteName), sanitize(upstream))
print "graph_title HTTP - %s" % upstream print "graph_title HTTP - %s" % upstream
print "graph_vlabel rps" print "graph_vlabel rps"
print "graph_category nginx" print "graph_category webserver"
keylist = httpStatusList.keys() keylist = httpStatusList.keys()
keylist.sort() keylist.sort()
for status in keylist: for status in keylist:
@ -182,7 +182,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "config":
print "multigraph nginx_upstream_multi_%s.%s_cache" % (sanitize(siteName), sanitize(upstream)) print "multigraph nginx_upstream_multi_%s.%s_cache" % (sanitize(siteName), sanitize(upstream))
print "graph_title Cache - %s" % upstream print "graph_title Cache - %s" % upstream
print "graph_vlabel rps" print "graph_vlabel rps"
print "graph_category nginx" print "graph_category webserver"
for status in cacheStatusList: for status in cacheStatusList:
print "us%s_%s_cache.label %s" % (sanitize(status), sanitize(upstream), status) print "us%s_%s_cache.label %s" % (sanitize(status), sanitize(upstream), status)
print "" print ""

View file

@ -45,7 +45,7 @@ case $1 in
echo 'graph_title Nginx Virtual host traffic' echo 'graph_title Nginx Virtual host traffic'
echo 'graph_vlabel bits out / ${graph_period}' echo 'graph_vlabel bits out / ${graph_period}'
echo 'graph_args --base 1000 -l 0' echo 'graph_args --base 1000 -l 0'
echo 'graph_category Nginx' echo 'graph_category webserver'
i=0 i=0
for vhost in $VHOSTS for vhost in $VHOSTS

View file

@ -12,7 +12,7 @@ config)
cat <<'EOF' cat <<'EOF'
graph_title NGINX Working Set graph_title NGINX Working Set
graph_vlabel WS Bytes graph_vlabel WS Bytes
graph_category nginx graph_category webserver
graph_args --base 1024 graph_args --base 1024
ws.label Working Set ws.label Working Set
EOF EOF

View file

@ -77,7 +77,7 @@ if [ "$1" = "config" ]; then
echo 'graph_title Eaccelerator usage ' echo 'graph_title Eaccelerator usage '
echo 'graph_args -l 0' echo 'graph_args -l 0'
echo 'graph_category apache' echo 'graph_category webserver'
echo 'graph_info This graph shows performance of the eaccelerator module on WWW server.' echo 'graph_info This graph shows performance of the eaccelerator module on WWW server.'
echo 'memorysize.label total' echo 'memorysize.label total'