From 2580942ba2878b3fcc33394e699b293ca3c0eee9 Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Sun, 18 Mar 2012 12:56:22 +0100 Subject: [PATCH] fixed output --- plugins/glassfish/glassfish_counters_ | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/glassfish/glassfish_counters_ b/plugins/glassfish/glassfish_counters_ index 1bd26d7d..a13fd68e 100644 --- a/plugins/glassfish/glassfish_counters_ +++ b/plugins/glassfish/glassfish_counters_ @@ -61,7 +61,7 @@ case $1 in config) check_link $MUN_AS_ADMIN get -t --monitor=true "${SUBTREE}.*" | \ - awk 'BEGIN{ FS="[ = ]" } + awk 'BEGIN{ FS="[ = ]"} /requestcount/ { next; } # IGNORE /dotted-name/ { myself = $NF print "graph_title GlassFish", myself @@ -72,13 +72,14 @@ case $1 in } /-name / { nwhat = split($1, what, ".") gsub(/-name/, "", what[nwhat]) - print what[nwhat] ".label=" $NF + print what[nwhat] ".label " $NF + print what[nwhat] ".type GAUGE" } /-description / { nwhat = split($1, what, ".") gsub(/-description/, "", what[nwhat]) $1 = ""; line = $0 gsub(/^ /,"", line) - print what[nwhat] ".info=" line + print what[nwhat] ".info " line } ' exit 0