mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
fixed output
This commit is contained in:
parent
dec087a5ce
commit
2580942ba2
1 changed files with 4 additions and 3 deletions
|
@ -61,7 +61,7 @@ case $1 in
|
||||||
config)
|
config)
|
||||||
check_link
|
check_link
|
||||||
$MUN_AS_ADMIN get -t --monitor=true "${SUBTREE}.*" | \
|
$MUN_AS_ADMIN get -t --monitor=true "${SUBTREE}.*" | \
|
||||||
awk 'BEGIN{ FS="[ = ]" }
|
awk 'BEGIN{ FS="[ = ]"}
|
||||||
/requestcount/ { next; } # IGNORE
|
/requestcount/ { next; } # IGNORE
|
||||||
/dotted-name/ { myself = $NF
|
/dotted-name/ { myself = $NF
|
||||||
print "graph_title GlassFish", myself
|
print "graph_title GlassFish", myself
|
||||||
|
@ -72,13 +72,14 @@ case $1 in
|
||||||
}
|
}
|
||||||
/-name / { nwhat = split($1, what, ".")
|
/-name / { nwhat = split($1, what, ".")
|
||||||
gsub(/-name/, "", what[nwhat])
|
gsub(/-name/, "", what[nwhat])
|
||||||
print what[nwhat] ".label=" $NF
|
print what[nwhat] ".label " $NF
|
||||||
|
print what[nwhat] ".type GAUGE"
|
||||||
}
|
}
|
||||||
/-description / { nwhat = split($1, what, ".")
|
/-description / { nwhat = split($1, what, ".")
|
||||||
gsub(/-description/, "", what[nwhat])
|
gsub(/-description/, "", what[nwhat])
|
||||||
$1 = ""; line = $0
|
$1 = ""; line = $0
|
||||||
gsub(/^ /,"", line)
|
gsub(/^ /,"", line)
|
||||||
print what[nwhat] ".info=" line
|
print what[nwhat] ".info " line
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue