1
0
Fork 0
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:
Steve Schnepp 2012-03-18 12:56:22 +01:00
parent dec087a5ce
commit 2580942ba2

View file

@ -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