Révision 2580942b
fixed output
| plugins/glassfish/glassfish_counters_ | ||
|---|---|---|
| 61 | 61 |
config) |
| 62 | 62 |
check_link |
| 63 | 63 |
$MUN_AS_ADMIN get -t --monitor=true "${SUBTREE}.*" | \
|
| 64 |
awk 'BEGIN{ FS="[ = ]" }
|
|
| 64 |
awk 'BEGIN{ FS="[ = ]"}
|
|
| 65 | 65 |
/requestcount/ { next; } # IGNORE
|
| 66 | 66 |
/dotted-name/ { myself = $NF
|
| 67 | 67 |
print "graph_title GlassFish", myself |
| ... | ... | |
| 72 | 72 |
} |
| 73 | 73 |
/-name / { nwhat = split($1, what, ".")
|
| 74 | 74 |
gsub(/-name/, "", what[nwhat]) |
| 75 |
print what[nwhat] ".label=" $NF |
|
| 75 |
print what[nwhat] ".label " $NF |
|
| 76 |
print what[nwhat] ".type GAUGE" |
|
| 76 | 77 |
} |
| 77 | 78 |
/-description / { nwhat = split($1, what, ".")
|
| 78 | 79 |
gsub(/-description/, "", what[nwhat]) |
| 79 | 80 |
$1 = ""; line = $0 |
| 80 | 81 |
gsub(/^ /,"", line) |
| 81 |
print what[nwhat] ".info=" line
|
|
| 82 |
print what[nwhat] ".info " line
|
|
| 82 | 83 |
} |
| 83 | 84 |
' |
| 84 | 85 |
exit 0 |
Formats disponibles : Unified diff