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
if (exists $ARGV[0] and $ARGV[0] eq "config") {
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_info Response times for public areas of $domain.\n";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@ MC_PORT=${0##*_}
if [ "$1" = "config" ]
then
printf 'graph_title Minecraft-Server (Port %s)\n' ${MC_PORT}
printf 'graph_catecory games'
printf 'graph_category games'
printf 'graph_vlabel Anzahl\n'
printf 'users.label Benutzer\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" ) {
print "graph_title NGINX hit rates\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 "hit.label Hits\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
print "multigraph nginx_cache_multi_%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
if graph_args:
print(graph_args)
@ -80,7 +80,7 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config":
if key != "TOTAL":
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_category nginx"
print "graph_category webserver"
print "graph_vlabel %s" % vlabel
print "%s.label %s" % (key.lower(), key.capitalize())
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_args --base 1000\n";
print "graph_category nginx\n";
print "graph_category webserver\n";
print "graph_vlabel Connections\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.
if (exists $ARGV[0] and $ARGV[0] eq "config") {
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 "connection_request.label requests/connection\n";
print "connection_request.min 0\n";

View File

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

View File

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

View File

@ -18,7 +18,7 @@ if len(sys.argv) > 1:
if sys.argv[1]=="config":
print "graph_args --base 1000 -l 0"
print "graph_title NGINX Upstream times"
print "graph_category nginx"
print "graph_category webserver"
print "graph_vlabel milliseconds"
print "upstream.label upstream"
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 "graph_title Requests number"
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
for upstream in upstreams.keys():
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 "graph_title Requests number - %s" % upstream
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
print "us%s_requests.label %s" % (sanitize(upstream), upstream)
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 "graph_title Request time - %s" % upstream
print "graph_vlabel sec."
print "graph_category nginx"
print "graph_category webserver"
print "us%s_times.label average" % (sanitize(upstream))
for percentile in percentiles:
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 "graph_title HTTP - %s" % upstream
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
keylist = httpStatusList.keys()
keylist.sort()
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 "graph_title Cache - %s" % upstream
print "graph_vlabel rps"
print "graph_category nginx"
print "graph_category webserver"
for status in cacheStatusList:
print "us%s_%s_cache.label %s" % (sanitize(status), sanitize(upstream), status)
print ""

View File

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

View File

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

View File

@ -77,7 +77,7 @@ if [ "$1" = "config" ]; then
echo 'graph_title Eaccelerator usage '
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 'memorysize.label total'